I recently built R 1.6.2 on solaris 2.8 with gcc 3.2.
Things seem to run OK, but using graphics causes R to
core dump. (For instance, by using the plot() or
hist() functions.) Sometimes I can see the graphics
drawn before it actually core dumps. The core file
shows a crash in Rf_gpptr.
I'm quite new to R, so I don't know what info would be
helpful for diagnosis. I'm including the gdb dump of
the crash.
Thanks for any help!
B Jones
-------------------------------------------
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General
Public License, and you are
welcome to change it and/or distribute copies of it
under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show
warranty" for details.
This GDB was configured as "sparc-sun-solaris2.8"...
Core was generated by
`/export/deriv/tools/lib/R/bin/R.bin'.
Program terminated with signal 10, Bus error.
Reading symbols from
/export/deriv/tools/lib/libreadline.so.4...done.
Loaded symbols for
/export/deriv/tools/lib/libreadline.so.4
Reading symbols from /usr/lib/libdl.so.1...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/lib/libcurses.so.1...done.
Loaded symbols for /usr/lib/libcurses.so.1
Reading symbols from /usr/lib/libm.so.1...done.
Loaded symbols for /usr/lib/libm.so.1
Reading symbols from
/export/deriv/tools/lib/libpcre.so.0...done.
Loaded symbols for
/export/deriv/tools/lib/libpcre.so.0
Reading symbols from
/export/deriv/tools/lib/libz.so...done.
Loaded symbols for /export/deriv/tools/lib/libz.so
Reading symbols from /usr/lib/libnsl.so.1...done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/libsocket.so.1...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from
/export/deriv/tools/lib/libgcc_s.so.1...done.
Loaded symbols for
/export/deriv/tools/lib/libgcc_s.so.1
Reading symbols from /usr/lib/libmp.so.2...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from
/usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1...done.
Loaded symbols for
/usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1
Reading symbols from
/export/deriv/tools/lib/R/modules/R_X11.so...done.
Loaded symbols for
/export/deriv/tools/lib/R/modules/R_X11.so
Reading symbols from /usr/lib/libSM.so.6...done.
Loaded symbols for /usr/lib/libSM.so.6
Reading symbols from /usr/lib/libICE.so.6...done.
Loaded symbols for /usr/lib/libICE.so.6
Reading symbols from /usr/lib/libX11.so.4...done.
Loaded symbols for /usr/lib/libX11.so.4
Reading symbols from
/export/deriv/tools/lib/libjpeg.so.62...done.
Loaded symbols for
/export/deriv/tools/lib/libjpeg.so.62
Reading symbols from
/export/deriv/tools/lib/libpng.so.2...done.
Loaded symbols for /export/deriv/tools/lib/libpng.so.2
Reading symbols from /usr/lib/libXext.so.0...done.
Loaded symbols for /usr/lib/libXext.so.0
Reading symbols from
/usr/openwin/lib/libdga.so.1...done.
Loaded symbols for /usr/openwin/lib/libdga.so.1
Reading symbols from
/export/deriv/tools/lib/R/library/ctest/libs/ctest.so...
done.
Loaded symbols for
/export/deriv/tools/lib/R/library/ctest/libs/ctest.so
#0 Rf_gpptr (dd=0xd) at base.c:162
162 if (dd->newDevStruct)
(gdb) where
#0 Rf_gpptr (dd=0xd) at base.c:162
#1 0x00081bc8 in setClipRect (x1=0xffbec850,
y1=0xffbec848, x2=0xffbec840,
y2=0xffbec838, coords=0, dd=0xd) at
graphics.c:2389
#2 0x00083e20 in clipRectCode (x0=1.393025351641106,
y0=0.44224368861108854,
x1=1.4574378883093166, y1=5.294888903103388e-315,
coords=-2017264452,
dd=0xd) at graphics.c:3354
#3 0x000849ac in clipText (x=1.393025351641106,
y=0.44224368861108854,
str=0xa3d618 "2", rot=0, clipToDevice=1, hadj=0,
dd=0xa21758)
at graphics.c:3606
#4 0x00084e14 in Rf_GText (x=1.4252316199752113,
y=0.44224368861108854,
coords=1, str=0x0, xc=0.5, yc=0, rot=0,
dd=0xa21758) at graphics.c:3761
#5 0x000874a4 in Rf_GMtext (str=0x9ffcf0 "2", side=1,
line=1.8999999999999997, outer=0, at=2, las=0,
dd=0xa21758)
at graphics.c:4390
#6 0x000b01e8 in do_axis (call=0x2dd1c0, op=0x1d8eac,
args=0x1bab20, env=0x0)
at plot.c:1129
#7 0x00099e50 in do_internal (call=0x1807b4,
op=0x94da80, args=0x850598,
env=0x85011c) at names.c:1044
#8 0x00072444 in Rf_eval (e=0x2dd134, rho=0x85011c)
at eval.c:404
#9 0x0007350c in do_begin (call=0x2dcc34,
op=0x1cb37c, args=0x2dd118,
rho=0x85011c) at eval.c:891
#10 0x00072444 in Rf_eval (e=0x2dcc34, rho=0x85011c)
at eval.c:404
#11 0x0007279c in Rf_applyClosure (call=0x7d45bc,
op=0x2ddfd4,
arglist=0x850d1c, rho=0x86e670,
suppliedenv=0x1bab20) at eval.c:587
#12 0x00072274 in Rf_eval (e=0x7d45bc, rho=0x86e670)
at eval.c:439
#13 0x0007350c in do_begin (call=0x7d45a0,
op=0x1cb37c, args=0x7d4584,
rho=0x86e670) at eval.c:891
#14 0x00072444 in Rf_eval (e=0x7d45a0, rho=0x86e670)
at eval.c:404
#15 0x00072444 in Rf_eval (e=0x7d4434, rho=0x86e670)
at eval.c:404
#16 0x0007350c in do_begin (call=0x7d2e18,
op=0x1cb37c, args=0x7d4418,
rho=0x86e670) at eval.c:891
#17 0x00072444 in Rf_eval (e=0x7d2e18, rho=0x86e670)
at eval.c:404
#18 0x0007279c in Rf_applyClosure (call=0x86fc40,
op=0x7d3f48,
arglist=0x87015c, rho=0x8702ac,
suppliedenv=0x86fbd0) at eval.c:587
#19 0x0009a1a4 in applyMethod (call=0x86fc40,
op=0x7d3f48, args=0x87015c,
rho=0x8702ac, newrho=0x86fbd0) at objects.c:121
#20 0x0009a6f0 in Rf_usemethod (generic=0xffbed928
"plot", obj=0x9f61a8,
call=0xffbed6a8, args=0x1bab20, rho=0x8702ac,
callrho=0x1db408,
defrho=0x1db3b4, ans=0xffbed924) at objects.c:340
#21 0x0009ac00 in do_usemethod (call=0x7d12f4,
op=0x1d93c8, args=0x7d1310,
env=0x8702ac) at objects.c:409
#22 0x00072444 in Rf_eval (e=0x7d12f4, rho=0x8702ac)
at eval.c:404
#23 0x00072444 in Rf_eval (e=0x7d1284, rho=0x8702ac)
at eval.c:404
#24 0x0007350c in do_begin (call=0x7d1268,
op=0x1cb37c, args=0x7d124c,
rho=0x8702ac) at eval.c:891
#25 0x00072444 in Rf_eval (e=0x7d1268, rho=0x8702ac)
at eval.c:404
#26 0x0007279c in Rf_applyClosure (call=0x86ff64,
op=0x7d116c,
arglist=0x87015c, rho=0x1db408,
suppliedenv=0x1bab20) at eval.c:587
#27 0x00072274 in Rf_eval (e=0x86ff64, rho=0x1db408)
at eval.c:439
#28 0x0008c86c in Rf_ReplIteration (rho=0x1db408,
savestack=0, browselevel=0,
state=0xffbedfb8) at main.c:232
#29 0x0008ca10 in R_ReplConsole (rho=0x1db408,
savestack=0, browselevel=0)
at main.c:280
#30 0x0008d1cc in run_Rmainloop () at main.c:579
#31 0x000f66c0 in main (ac=0, av=0xffbee524) at
system.c:99