[R] R and glibc-2.1.1

ernst.molitor@uni-bonn.de
Mon, 07 Jun 1999 20:26:27 -0000

Hi,

I'm using R (currently, the development version dated May 25th, 1999)
under Linux, with glibc-2.1.1 (compiled by a recent snapshot of the
egcs compiler, and a similarly recent version of the binary utilities
package). Both the standalone and the GNOME version work fine.

As to the gdb output, please note that /usr/local/bin/R is a shell
script used to start the "real" binary, which usually lives in
/usr/local/lib/R/bin/R.binary.  It is the latter file that should be
handed to gdb (together with the core dump, if you so desired).

On my transitions to glibc-2.0, glibc-2.1 and, lately, glibc-2.1.1
(with kind help of Ulrich Drepper - many thanks to him), I have come
across some surprising core dumps. In many cases, a mix of shared
libraries linked into a program were the cause, so the suggestion I'd
have to offer is to do a ldd on the binary and check the resulting
list of shared libraries. After all, to allow for continued use of old
binaries, most systems keep old libraries around at one place or
another...

On my box,

 ldd /usr/local/lib/R/bin/R.binary

returns

	libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x4001e000)
	libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40026000)
	libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4003a000)
	libdl.so.2 => /usr/local/lib/libdl.so.2 (0x400d2000)
	libncurses.so.4 => /usr/local/lib/libncurses.so.4 (0x400d5000)
	libm.so.6 => /usr/local/lib/libm.so.6 (0x40115000)
	libc.so.6 => /usr/local/lib/libc.so.6 (0x40132000)

Regards,

Ernst