[R] failure in make check

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Thu May 31 23:53:31 CEST 2001


Don MacQueen <macq at llnl.gov> writes:

> I have a failure in 'make check' and I would appreciate assistance 
> regarding what to do about it.
> Thanks
>    -Don
> 
> Installing R-1.2.3 on
>     build[99]% uname -sr
>     SunOS 5.8
> (for those who may recall my previous request for help, I have 
> updated GCC to 2.95.3, and configured with gcc, GCC's c++, and f77 
> [not g77])
> 
...
> I'm using Sun's make, but INSTALL indicates this is ok for SunOS 5.8.
> 
> Near the beginning of no-segfault.Rout is this:
> >
> >  ##  !  :
> >  f <- get("!", pos = 4)
> >  f()
> Error: binary operations require two arguments
> >  f(NULL)
> Error in f(NULL) : invalid argument type
> 
> Followed by more expressions and more error messages. There are many, 
> many Errors reported in this (very long) file.

Yes. The purpose of that check is to try a whole lot of illegal
commands in a systematic fashion (e.g. log(list()) ), so you're
supposed to get a whole lot of Errors, but no segfault.

> Near the end, the last comment indicating, if I understand correctly, 
> what's being tested, I find
> >
> >  ##  loess.control  :
> >  f <- get("loess.control", pos = 2)
> 
> ... lines that look ok omitted ...
> 

.....
> [1] 0.2
> 
> $iterations
> [1] 4
> 
> The file ends at this point, so apparently it didn't run the rest of 
> the input file. That is, no-segfault.R continues with
>    ##  loess.smooth  :
> but this doesn't appear in no-segfault.Rout.

Unfortunately, a fatal error will often crash R before writing the
very last bit of output. The way to figure it out would be to go to
the tests directory and run 

../bin/R --vanilla < no-segfault.R

i.e. just what the makefile does but omitting the output file so that
output goes unbuffered to the screen. To debug further, use

../bin/R -d gdb

and inside gdb, exec

run --vanilla < no-segfault.R

(although it might be better first to see whether the offending
command also crashes R when executed by itself and then use that for
debugging) 

> I haven't found a file named no-segfault.Rout.save to tell me what 
> the Rout should look like.

Not sure that would be of much use...
-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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