zivan.karaman@limagrain.com
2000-Sep-19 11:53 UTC
[Rd] bug.report("unused argument(s) crash R when options(error=quote (PR#663)
# Your mailer is set to "none" (default on Windows), # hence we cannot send the bug report directly from R. # Please copy the bug report (after finishing it) to # your favorite email program and send it to # # r-bugs@biostat.ku.dk # ###################################################### Hello! I have observed a curious problem with the Windows version of R.> version_ platform Windows arch x86 os Win32 system x86, Win32 status major 1 minor 1.1 year 2000 month August day 15 language R> win.version()[1] "Windows NT 4.0 (build 1381) Service Pack 5" When I mistype an argument in a function call (like in the example below), Rgui crashes with the message: 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())) When I comment this line out, Rgui works OK (i.e. I get the message "Error in ls(poq = 3) : unused argument(s) (poq ...)"). This happens for any other typo that should normally cause the message "unused argument(s)", like "matrix(1:15, nrow=5, byrox=TRUE)", or anything else. The same happens with Rterm, except that you see the error message before Rterm dies, and the message is little bit different: The instruction at "0x02556678" uses the memory address "0xec83e591". The memory can't be "read". It happens on both my desktop and my laptop, but since both are running the same OS version (NT4 SP5), it's not so surprising. Also, I have the same behaviour with the previous version of R> version_ platform Windows arch x86 os Win32 system x86, Win32 status major 1 minor 1.0 year 2000 month June day 15 language R Did I do anything wrong, or is it a problem with R.dll? It is not a big problem, but I just wanted let you know about it. Best regards Zivan --please do not edit the information below-- Version: platform = Windows arch = x86 os = Win32 system = x86, Win32 status major = 1 minor = 1.1 year = 2000 month = August day = 15 language = R Windows NT 4.0 (build 1381) Service Pack 5 Search Path: .GlobalEnv, Autoloads, package:base -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Peter Dalgaard BSA
2000-Sep-19 12:40 UTC
[Rd] bug.report("unused argument(s) crash R when options(error=quote (PR#663)
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._