[R] randomForest() segfaults under Solaris(SPARC) 2.7

Liaw, Andy andy_liaw at merck.com
Mon Apr 8 22:22:44 CEST 2002


As the package maintainer, I'd like to find out what's wrong.
Unfortunately I do not have access to a suitable Solaris box
to try it.  Can anyone with similar platform help?

I already found one (unrelated) bug in the predict.randomForest
function.  The randomForest.default function accepts matrix
or data frame, but predict.randomForest assumes data frame.
If a matrix is passed to the predict method, error will occur.
As a temporary fix, coerce matrix to data frame before handing
it to the predict method.

Regards,
Andy

> -----Original Message-----
> From: Steve Shiboski [mailto:steve at biostat.ucsf.edu]
> Sent: Friday, April 05, 2002 3:24 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] randomForest() segfaults under Solaris(SPARC) 2.7
> 
> 
> Invocation of randomForest() using the iris example in the help
> file crashes R with a segmentation fault. This happens on
> all of our ultraSPARC machines running Solaris 2.7.
> 
> We're using R-1.4.1, compiled using Sun cc and f77 and
> the flags:
> 
> CC=cc
> CFLAGS="-xO5 -xlibmil -dalign"
> FC=f77
> FFLAGS="-xO5 -xlibmil -dalign"
> 
> "make check" runs withour errors, and R has been working
> well for all other applications/installations.
> 
> Incidentally, randomForest() runs fine on one of our 
> ultraSPARC machines 
> running Solaris 2.6 and R-1.4.1 compiled using the same 
> compilers and flags.
> It also reportedly works if gcc/g77 are used.
> 
> Any suggestions appreciated.
> 
> -- 
> Stephen Shiboski  -------------------  steve at biostat.ucsf.edu
> Division of Biostatistics                 voice: 415-476-0533
> University of California, San Francisco     fax: 415-476-6014
> 500 Parnassus Avenue, MU 420-W;  San Francisco, CA 94143-0560
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
> -.-.-.-.-.-.-.-.-
> r-help mailing list -- Read 
> http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: 
> r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
> _._._._._._._._._
> 

------------------------------------------------------------------------------
Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (Whitehouse Station, New Jersey, USA) that may be confidential, proprietary copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named on this message.  If you are not the intended recipient, and have received this message in error, please immediately return this by e-mail and then delete it.

==============================================================================

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list