[Rd] bug.report("unused argument(s) crash R when options(error=quote (PR#663)

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
19 Sep 2000 14:40:31 +0200


zivan.karaman@limagrain.com writes:

> The instruction at "0x025571b8" uses the memory address "0x00000008". The memory
>  can't be "read". (This is my translation from French, but I guess it's
> something like that in English.)
> 
> Example:
> > ls(poq=3)
> Normally, one should get a message saying:
> Error in ls(poq = 3) : unused argument(s) (poq ...)
> 
> In my etc/Rprofile file I have added the following line:
> options(error=quote(dump.frames()))

Whoops. This also crashes on Linux (good - then we can debug it more
conveniently...) In the development version too:


> ls(poq=3)
Error in ls(poq = 3) : unused argument(s) (poq ...)

Program received signal SIGSEGV, Segmentation fault.
0x807e1c7 in Rf_findVarInFrame (rho=0xbffff4cc, symbol=0x83c7354)
    at ../../../R/src/main/envir.c:677
677             hashcode = HASHVALUE(c) % HASHSIZE(HASHTAB(rho));
(gdb) l
672             c = PRINTNAME(symbol);
673             if( !HASHASH(c) ) {
674                 SET_HASHVALUE(c, R_Newhashpjw(CHAR(c)));
675                 SET_HASHASH(c, 1);
676             }
677             hashcode = HASHVALUE(c) % HASHSIZE(HASHTAB(rho));

(I don't really have time to debug this further just now, the symbol is
"dump.frames" in case anyone wants to dig deeper)

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._