[R] R Crashes when using "large" matrices (Ubuntu 11.04)

Matias Salibian-Barrera msalibian at yahoo.ca
Sat Jun 4 02:03:18 CEST 2011


Hello,

This simple SVD calculation (commands are copied immediately below) crashes on my Ubuntu machine (R 2.13.0). However it works fine on my Windows 7 machine, so I suspect there's a problem with (my?) Ubuntu and / or R. Can anybody else reproduce it (with Ubuntu 11.04)? Thanks in advance.

p <- 500
n <- 300
set.seed(1234)
x <- matrix(rnorm(n*p), n, p)
sih <- var(x)
b <- svd(sih)

produces:

 *** caught illegal operation ***
address 0x42b8c9, cause 'illegal operand'

Traceback:
 1: .Call("La_svd", jobu, jobv, x, double(min(n, p)), u, v, "dgsedd",     PACKAGE = "base")
 2: La.svd(x, nu, nv)
 3: svd(sih)

I'm using Ubuntu 11.04 and 
> version
               _                            
platform       i686-pc-linux-gnu            
arch           i686                         
os             linux-gnu                    
system         i686, linux-gnu              
status                                      
major          2                            
minor          13.0                         
year           2011                         
month          04                           
day            13                           
svn rev        55427                        
language       R                            
version.string R version 2.13.0 (2011-04-13)

Thanks,

Matias



More information about the R-help mailing list