[R-SIG-Mac] segmentation fault

Simon de Bernard dbernard at noos.fr
Sat Apr 7 21:56:32 CEST 2007


Dear list,

I am having a segfault while working with large lists in R 2.4.1  
patched (64-bit compilation) on an apple xserve xeon with 16GB RAM

You will find below a simple somewhat reproducible (usually it  
crashes around 5.5GB of vsize, sometimes it gets into an infinite  
loop at that memory usage) exemple and the relevant sessionInfo.

I have sent a mail to R-devel and Luke Tierney was not able to  
reproduce the problem with a 16GB x86_64 linux machine so I'm now  
trying R-SIG-MAC...

Any idea?

best regards,

Simon.

 > l<-list(1)
 > while(1) { print(object.size(l)/1024/1024); l<-c(l,l,l) }

[1] 9.155273e-05
[1] 0.0002059937
[1] 0.0005722046
[1] 0.001480103
[1] 0.004364014
[1] 0.01301575
[1] 0.03897095
[1] 0.1168365
[1] 0.3504333
[1] 1.051224
[1] 3.153595
[1] 9.460709
[1] 28.38205
[1] 85.14607
[1] 255.4381
[1] 766.3143
[1] 2298.943

*** caught segfault ***
address 0x21000011, cause 'memory not mapped'


 > sessionInfo()

R version 2.4.1 Patched (2007-03-31 r41078)
x86_64-apple-darwin8.9.1

locale:
C

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

R was compiled with:
gcc  4.0.1 (apple build 5367)
gfortran 4.2.0 (from Simon Urbanek's site)

and: configure --prefix=/usr/local/lib64 CC='gcc -arch x86_64' CXX='g+ 
+ -arch x86_64' F77='gfortran -arch x86_64' FC='gfortran -arch  
x86_64' --with-blas='-framework vecLib' --with-lapack --with-system- 
zlib LDFLAGS='-L/usr/local/lib64/lib' CFLAGS='-O0 -g -I/usr/local/ 
lib64/include' CXXFLAGS='-O0 -g -I/usr/local/lib64/include' FFLAGS='- 
O0 -g' LDFLAGS='-L/usr/local/lib64/lib -L/usr/local/lib/x86_64 -L/usr/ 
local/lib' --x-includes=/usr/local/lib64/X11/include/X11 --x- 
libraries=/usr/local/lib64/X11/lib --build=x86_64-apple-darwin8.9.1



More information about the R-SIG-Mac mailing list