[R] segfault during example(svm)

Claudia Beleites cbeleites at units.it
Fri Feb 18 23:20:57 CET 2011


Dear Jürgen,

> I just tried update.packages (checkBuilt = TRUE), it did not solved the
> issue.
Was just a guess.

> Nevertheless thanks,
Bitte, bitte.


In case that helps tracking down the problem:
it works with my normal R as well as with r-devel. In case it helps you, I also 
put the installation protocol for r-devel below (for the normal I had it already).

Claudia


 > sessionInfo()
R version 2.12.1 (2010-12-16)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
  [1] LC_CTYPE=en_US.utf8       LC_NUMERIC=C
  [3] LC_TIME=en_US.utf8        LC_COLLATE=en_US.utf8
  [5] LC_MONETARY=C             LC_MESSAGES=en_US.utf8
  [7] LC_PAPER=en_US.utf8       LC_NAME=C
  [9] LC_ADDRESS=C              LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.utf8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] e1071_1.5-24 class_7.3-3

loaded via a namespace (and not attached):
[1] tools_2.12.1

 > sessionInfo ()
R version 2.13.0 Under development (unstable) (2011-02-18 r54483)
Platform: x86_64-unknown-linux-gnu (64-bit)

locale:
  [1] LC_CTYPE=en_US.utf8       LC_NUMERIC=C
  [3] LC_TIME=en_US.utf8        LC_COLLATE=en_US.utf8
  [5] LC_MONETARY=C             LC_MESSAGES=en_US.utf8
  [7] LC_PAPER=en_US.utf8       LC_NAME=C
  [9] LC_ADDRESS=C              LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.utf8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] e1071_1.5-24 class_7.3-2

loaded via a namespace (and not attached):
[1] tools_2.13.0

trying URL 'http://cran.stat.unipd.it/src/contrib/e1071_1.5-24.tar.gz'
Content type 'application/octet-stream' length 312648 bytes (305 Kb)
opened URL
==================================================
downloaded 305 Kb

* installing *source* package ‘e1071’ ...
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
** libs
gcc -std=gnu99 -I/home/cb/r-devel/include  -I/usr/local/include    -fpic  -g -O2 
-c Rsvm.c -o Rsvm.o
gcc -std=gnu99 -I/home/cb/r-devel/include  -I/usr/local/include    -fpic  -g -O2 
-c cmeans.c -o cmeans.o
gcc -std=gnu99 -I/home/cb/r-devel/include  -I/usr/local/include    -fpic  -g -O2 
-c cshell.c -o cshell.o
gcc -std=gnu99 -I/home/cb/r-devel/include  -I/usr/local/include    -fpic  -g -O2 
-c floyd.c -o floyd.o
g++ -I/home/cb/r-devel/include  -I/usr/local/include    -fpic  -g -O2 -c svm.cpp 
-o svm.o
svm.cpp: In function ‘svm_model* svm_load_model(const char*)’:
svm.cpp:2712: warning: ignoring return value of ‘int fscanf(FILE*, const char*, 
...)’, declared with attribute warn_unused_result
svm.cpp:2716: warning: ignoring return value of ‘int fscanf(FILE*, const char*, 
...)’, declared with attribute warn_unused_result
svm.cpp:2738: warning: ignoring return value of ‘int fscanf(FILE*, const char*, 
...)’, declared with attribute warn_unused_result
svm.cpp:2759: warning: ignoring return value of ‘int fscanf(FILE*, const char*, 
...)’, declared with attribute warn_unused_result
svm.cpp:2761: warning: ignoring return value of ‘int fscanf(FILE*, const char*, 
...)’, declared with attribute warn_unused_result
svm.cpp:2763: warning: ignoring return value of ‘int fscanf(FILE*, const char*, 
...)’, declared with attribute warn_unused_result
svm.cpp:2765: warning: ignoring return value of ‘int fscanf(FILE*, const char*, 
...)’, declared with attribute warn_unused_result
svm.cpp:2767: warning: ignoring return value of ‘int fscanf(FILE*, const char*, 
...)’, declared with attribute warn_unused_result
svm.cpp:2773: warning: ignoring return value of ‘int fscanf(FILE*, const char*, 
...)’, declared with attribute warn_unused_result
svm.cpp:2780: warning: ignoring return value of ‘int fscanf(FILE*, const char*, 
...)’, declared with attribute warn_unused_result
svm.cpp:2787: warning: ignoring return value of ‘int fscanf(FILE*, const char*, 
...)’, declared with attribute warn_unused_result
svm.cpp:2794: warning: ignoring return value of ‘int fscanf(FILE*, const char*, 
...)’, declared with attribute warn_unused_result
svm.cpp:2801: warning: ignoring return value of ‘int fscanf(FILE*, const char*, 
...)’, declared with attribute warn_unused_result
svm.cpp:2862: warning: ignoring return value of ‘int fscanf(FILE*, const char*, 
...)’, declared with attribute warn_unused_result
svm.cpp:2871: warning: ignoring return value of ‘int fscanf(FILE*, const char*, 
...)’, declared with attribute warn_unused_result
g++ -shared -L/usr/local/lib64 -o e1071.so Rsvm.o cmeans.o cshell.o floyd.o svm.o
installing to /home/cb/r-devel/library/e1071/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded

* DONE (e1071)

The downloaded packages are in
	‘/tmp/RtmpRJM5aT/downloaded_packages’
Updating HTML index of packages in '.Library'
Making packages.html  ... done

-- 
Claudia Beleites
Dipartimento dei Materiali e delle Risorse Naturali
Università degli Studi di Trieste
Via Alfonso Valerio 6/a
I-34127 Trieste

phone: +39 0 40 5 58-37 68
email: cbeleites at units.it



More information about the R-help mailing list