This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
pending/2442: gdb gnats Problem Report: 2353
- From: "Doug Toppin" <dougtoppin at gmail dot com>
- To: gdb-gnats at sources dot redhat dot com, nobody at sources dot redhat dot com, ajvincent at gmail dot com, gdb-prs at sources dot redhat dot com
- Date: Thu, 3 Apr 2008 13:19:02 -0400
- Subject: pending/2442: gdb gnats Problem Report: 2353
>Number: 2442
>Category: pending
>Synopsis: gdb gnats Problem Report: 2353
>Confidential: yes
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: unknown
>Arrival-Date: Thu Apr 03 17:28:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:
>Release:
>Organization:
>Environment:
>Description:
i built gdb-6.8 last night and cored it while debugging something this
morning. i checked gnats and found what appears to be the same
issue( Problem Report: 2353) but with a different cause. i was able
to reproduce it and the cause appears to be adding a variable name to
the frame command as such 'f 2 variable'. i think that the
'(gdb) f 2 prr_p
#0 0x00000002 in ?? ()' in the below output indicates the issue
where the variable is in the current frame but but doesn't exist in
the frame being referenced.
i just wanted to pass this info along in case it was useful. i may
try to look at the gdb source this weekend to see if i can identify
what's happening.
doug
the commands i entered (output deleted) were:
$ gdb xxxxx
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) attach 8913
Attaching to program: xxxxxx, process 8913
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /lib/libnss_dns.so.2...done.
Loaded symbols for /lib/libnss_dns.so.2
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
0xb75395be in poll () from /lib/libc.so.6
(gdb) cont
Continuing.
Program received signal SIGINT, Interrupt.
0xb75395be in poll () from /lib/libc.so.6
(gdb) break xxxxxxxxxx
Breakpoint 1 at 0x808e0af: file xxxxx, line xxx.
(gdb) cont
Continuing.
Breakpoint 1, xxxxxxxxxxxx
856 xxxxxxx
(gdb) bt
#0
#1
#2
#3
#4
#5
#6
#7
#8
#9
#10
#11
#12
#13
(gdb) f 2
#2 xxxxxx
xxxxxxxxx
(gdb) f 2 prr_p
#0 0x00000002 in ?? ()
(gdb) info f 2
Stack frame at 0xbfffc920:
eip = 0x808d78e in xxxxxx; saved eip 0x80a42fd
called by frame at 0xbfffc960, caller of frame at 0xbfffc8c0
source language c.
Arglist at 0xbfffc918, args: zdb_p=0xc959290, prr_p=0xb1c6bab0
Locals at 0xbfffc918, Previous frame's sp is 0xbfffc920
Saved registers:
ebx at 0xbfffc914, ebp at 0xbfffc918, eip at 0xbfffc91c
(gdb) help info f
All about selected stack frame, or frame at ADDR.
(gdb) info frame
Stack level 0, frame at 0x2:
eip = 0x2; saved eip
dwarf2-frame.c:860: internal-error: dwarf2_frame_cache: Assertion `fde
!= NULL' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) y
dwarf2-frame.c:860: internal-error: dwarf2_frame_cache: Assertion `fde
!= NULL' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) y
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: