Displaying 2 results from an estimated 2 matches for "r_load_x11_shlib".
2000 Jun 02
1
R.bin (1.1.0) gives segfault
...n/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
..........
2002 Feb 18
0
shared libraries on AIX (PR#1316)
...R almost works if I build on AIX without the R shared library (except for
crashing
on exit and a few other anomalies). I can't get it to do much at all if I
build
with --enable-R-shlib.
For example, it won't load the X11 driver. I ran R in a debugger and traced it
down to the point where R_load_X11_shlib successfully loads the R_X11.so
library
and calls R_init_X11. This calls R_setX11Routines in src/unix/X11.c. On entry
to this function, ptr_X11DeviceDriver = 0x2002eb20 and dev = 0x2014ba08. After
the statement
ptr_X11DeviceDriver = dev;
is executed, ptr_X11DeviceDriver remains unchanged...