no symbols for loadable lib

Chuck Tuffli charles.tuffli@intel.com
Tue May 9 21:28:00 GMT 2000


I'm trying to debug a shared library and can't seem to get gdb to see
the library symbols. System info:

Linux xxx 2.2.12-20 #1 Mon Sep 27 10:40:35 EDT 1999 i686 unknown
GNU gdb 4.18
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
GNU ld version 2.9.1 (with BFD 2.9.1.0.24)

The app is glxsimple which links against libGL.so. This library 
dlopen's i81xgicd.so which in turn dlopen's i810gdev.so. After libGL.so
dlopen's i81xgicd.so, I can set break points in i81xgicd.so, but I can't
set break points in i810gdev.so after it is dlopen'ed.

If I run "gdb glxsimple" and wait for it to seg fault. "info shared"
lists
(gdb) info shared
>From       To          Syms Read   Shared Object Library
0x40013000  0x4006808c  Yes         /home/ctuffli/XF4/lib/libGL.so.1
0x4006a000  0x4012ce1c  Yes         /home/ctuffli/XF4/lib/libX11.so.6
0x40131000  0x402238dc  Yes         /lib/libc.so.6
0x40224000  0x40234e44  Yes         /lib/libpthread.so.0
0x40235000  0x4024197c  Yes         /home/ctuffli/XF4/lib/libXext.so.6
0x40242000  0x40244d0c  Yes         /lib/libdl.so.2
0x40000000  0x400126b0  Yes         /lib/ld-linux.so.2
0x40246000  0x4048ae08  Yes         /home/ctuffli/i81xgicd.so
0x00000000  0x404a6fd8  Yes         /lib/libm.so.6

but not i810gdev.so

If I let glxsimple segfault outside of gdb and run "gdb glxsimple core",
"info shared" lists
(gdb) info shared
>From       To          Syms Read   Shared Object Library
....
0x404a7000  0x40502d30  Yes         /home/ctuffli/XF4/lib/i810gdev.so

I wrote a trivial program that links against a.so which loads b.so which
loads c.so which worked just fine. How do I figure out what is wrong
with i810gdev.so (ie why gdb doesn't see the symbols or the stack).
Thanks!

---chuck

Not speaking for Intel



More information about the Gdb mailing list