[Rd] R.bin (1.1.0) gives segfault

Albrecht Gebhardt albrecht.gebhardt@uni-klu.ac.at
Fri, 2 Jun 2000 23:36:55 +0200 (MET DST)


During testing with R-devel on the alpha I just noticed (after misspelling
"bin/R" as "bin/R.bin") that R.bin segfaults. It accesses the empty R_HOME
variable and should better give an error instead of a crash:

a gdb output snippet:
...
Program received signal SIGSEGV, Segmentation fault.
0x3ff800d6a10 in strcpy ()
(gdb) backtrace
#0  0x3ff800d6a10 in strcpy ()
#1  0x1200efda0 in R_load_X11_shlib () at dynload.c:454
#2  0x1200ecc88 in main (ac=1, av=0x11fffef28) at system.c:160
(gdb) up
#1  0x1200efda0 in R_load_X11_shlib () at dynload.c:454
454         strcpy(X11_DLL, getenv("R_HOME"));

some test for getenv returning NULL followed by exit(1) would be
better. 


Albrecht

......................................................................
| Albrecht Gebhardt          Tel.: (++43 463) 2700/832               |
| Institut fuer Mathematik   Fax : (++43 463) 2700/834               |
| Universitaet Klagenfurt    mailto:albrecht.gebhardt@uni-klu.ac.at  |
| Villacher Str. 161         http://www-stat.uni-klu.ac.at/~agebhard |
| A-9020 Klagenfurt, Austria                                         |
`--------------------------------------------------------------------'

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._