[Rd] error during list allocation

Wacek Kusnierczyk Waclaw.Marcin.Kusnierczyk at idi.ntnu.no
Tue Nov 11 21:40:52 CET 2008


platform       i686-pc-linux-gnu          
arch           i686                       
os             linux-gnu                  
system         i686, linux-gnu            
status                                    
major          2                          
minor          8.0                        
year           2008                       
month          10                         
day            20                         
svn rev        46754                      
language       R                          
version.string R version 2.8.0 (2008-10-20)


when i try to allocate a large list, i get the following error:

Error: vector memory exhausted (limit reached?)

the process uses over 80% memory, and cannot be stopped from within r
(it responds to whatever input with the same message as above); i need
to kill the process to release resources.

i think it would be practical to have the error reported *and* resources
freed when allocation fails.
the following should make a reproducible example:

x = 1:(10^9)
# Error: cannot allocate vector of size 3.7 Gb
# no problem otherwise

x = as.list(1:(10^8))
# Error: vector memory exhausted (limit reached?)
quit()
# Error: vector memory exhausted (limit reached?)
1
# Error: vector memory exhausted (limit reached?)

vQ



More information about the R-devel mailing list