Bug 65885 - linux-gate.so.1 symbols and gdb
Summary: linux-gate.so.1 symbols and gdb
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: CPP Debugger (show other bugs)
Version: git master
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-11 21:38 UTC by Jon Smirl
Modified: 2003-12-17 19:56 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Smirl 2003-10-11 21:38:04 UTC
Version:           CVS (using KDE Devel)
Installed from:    Compiled sources

I'm not 100% sure of what is going on here but I think the kernel vsyscall library has changed names to linux-gate.so.1. This virtual DSO doesn't really exists so gdb can't read symbols from it. The result of this is that you need to type 'CONT' into the gdb window three times when you start an app.

The change appeared in glibc-2.3.2-98

Is this change supposed to be handled by gdb or gideon?

gdb /home/newtree/work/src/glx/mini/./drmtest -fullname -nx -quiet
(gdb) set edit off 
(gdb) set confirm off 
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(gdb) (gdb) 
(gdb) set print static-members off 
(gdb) tty /dev/pts/0 
(gdb) set width 0 
(gdb) set height 0 
(gdb) set stop-on 1 
(gdb) handle SIG32 pass nostop noprint 
(gdb) handle SIG43 pass nostop noprint 
(gdb) set print asm-demangle on 
(gdb) cd /home/newtree/work/src/glx/mini 
(gdb) run 
Error while mapping shared library sections:
linux-gate.so.1: Success.
Error while reading shared library symbols:
linux-gate.so.1: No such file or directory.
(gdb) backtrace 
Stopped due to shared library event
#0  0x4000ce30 in _dl_debug_state_internal () from /lib/ld-linux.so.2
#1  0x40001d12 in dl_main () from /lib/ld-linux.so.2
#2  0x4000f61a in _dl_sysdep_start () from /lib/ld-linux.so.2
#3  0x000000e0 in ?? ()
#4  0xbfffdac4 in ?? ()
#5  0x2d000000 in ?? ()
#6  0x00000003 in ?? ()
#7  0xbfffdb4a in ?? ()
#8  0xffffe400 in ?? ()
#9  0xffffffff in ?? ()
(gdb) frame 0 
#0  0x4000ce30 in _dl_debug_state_internal () from /lib/ld-linux.so.2
(gdb) cont 
Stopped due to shared library event
Error while reading shared library symbols:
linux-gate.so.1: No such file or directory.
(gdb) cont 
Stopped due to shared library event
(gdb) backtrace 
Error while reading shared library symbols:
linux-gate.so.1: No such file or directory.
#0  0x4000ce30 in _dl_debug_state_internal () from /lib/ld-linux.so.2
#1  0x4000c88b in _dl_init_internal () from /lib/ld-linux.so.2
#2  0x40000c85 in _dl_start_user () from /lib/ld-linux.so.2
(gdb) frame 0 
#0  0x4000ce30 in _dl_debug_state_internal () from /lib/ld-linux.so.2
(gdb) cont 

Program exited normally.
Comment 1 Thiago Macieira 2003-10-11 22:08:13 UTC
Looks like a bug in gdb. 
Comment 2 Jon Smirl 2003-12-17 19:56:54 UTC
This has been fixed in gdb