Bug 101940

Summary: symbol lookup broken in 5.3.90-0.20030710.5
Product: [Retired] Red Hat Raw Hide Reporter: Alexander Larsson <alexl>
Component: gdbAssignee: Elena Zannoni <ezannoni>
Status: CLOSED RAWHIDE QA Contact: Jay Turner <jturner>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-08-21 13:42:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 100643    

Description Alexander Larsson 2003-08-08 12:14:43 UTC
There seems to be a problem with function symbol lookup in gdb 5.3.90-0.20030710.5.

With glib2 and gtk2 debuginfo installed, running gtk-demo i get this backtrace:
(gdb) bt
#0  0xbf600446 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0xbefdb95c in poll () from /lib/tls/libc.so.6
#2  0xbf082e16 in g_main_loop_get_context () from /usr/lib/libglib-2.0.so.0
#3  0xbf082246 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#4  0xbf08299f in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#5  0xbf3e59ef in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#6  0x08058f64 in main (argc=1, argv=0xbffd6714) at main.c:878

The address of the functions in libraries are right, but its not resolved to the
right line.

Mapping address -> symbol seems ok:

(gdb) disassemble 0xbf082e16
Dump of assembler code for function g_main_loop_get_context:
0xbf082cf0 <g_main_loop_get_context+0>: push   %ebp
0xbf082cf1 <g_main_loop_get_context+1>: mov    %esp,%ebp
0xbf082cf3 <g_main_loop_get_context+3>: sub    $0x28,%esp

however, mapping symbol -> address doesn't seem right:
(gdb) p g_main_loop_get_context
$1 = {GMainContext *(GMainLoop *)} 0x23cf0 <g_main_loop_get_context>

With gdb 5.3post-1.20021129.37 everything works fine.

Comment 1 Bill Nottingham 2003-08-08 17:02:21 UTC
*** Bug 101941 has been marked as a duplicate of this bug. ***

Comment 2 Bill Nottingham 2003-08-08 17:02:29 UTC
*** Bug 101942 has been marked as a duplicate of this bug. ***

Comment 3 Bill Nottingham 2003-08-08 17:02:39 UTC
*** Bug 101943 has been marked as a duplicate of this bug. ***

Comment 4 Bill Nottingham 2003-08-08 17:02:47 UTC
*** Bug 101945 has been marked as a duplicate of this bug. ***

Comment 5 Bill Nottingham 2003-08-08 17:03:23 UTC
*** Bug 101948 has been marked as a duplicate of this bug. ***

Comment 6 Bill Nottingham 2003-08-08 17:03:28 UTC
*** Bug 101949 has been marked as a duplicate of this bug. ***

Comment 7 Elena Zannoni 2003-08-20 23:41:30 UTC
Alex, can you try a new gdb snapshot? like .18 or .19
I added a patch that should fix this.

Comment 8 Alexander Larsson 2003-08-21 13:25:30 UTC
.19 works for me.