Bug 466901 - gdb aborts printing stack trace
Summary: gdb aborts printing stack trace
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gdb
Version: 9
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jan Kratochvil
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-10-14 12:49 UTC by Michal Babej
Modified: 2013-07-31 23:12 UTC (History)
3 users (show)

Fixed In Version: gdb-6.8-27.fc10
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-11-06 22:20:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Fix. (686 bytes, patch)
2008-10-14 12:51 UTC, Jan Kratochvil
no flags Details | Diff
Recovery from similiar errors. (2.81 KB, patch)
2008-10-14 12:51 UTC, Jan Kratochvil
no flags Details | Diff

Description Michal Babej 2008-10-14 12:49:54 UTC
Description of problem:
"bt" lists 9 calls, while "bt full" stops after printing 2nd call.

(gdb) bt
#0  0x0000003266e30215 in raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x0000003266e31cc0 in abort () at abort.c:88
#2  0x0000003266e6a7fb in __libc_message (do_abort=<value optimized out>, fmt=<value optimized out>) at ../sysdeps/unix/sysv/linux/libc_fatal.c:170
#3  0x0000003266e71ce2 in _int_free (av=<value optimized out>, mem=<value optimized out>) at malloc.c:5902
#4  0x0000003266e7590c in __libc_free (mem=<value optimized out>) at malloc.c:3591
#5  0x000000000040a23d in sys_getdents (tcp=0x41121e0) at file.c:2454
#6  0x0000000000405000 in trace_syscall (tcp=0x41121e0) at syscall.c:2332
#7  0x000000000040354c in trace () at strace.c:2475
#8  0x0000000000404371 in main (argc=3, argv=0x7fff978f3f28) at strace.c:879

(gdb) bt full
#0  0x0000003266e30215 in raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
        pid = <value optimized out>
        selftid = <value optimized out>
#1  0x0000003266e31cc0 in abort () at abort.c:88
        act = Could not find the frame base for "abort".

Comment 1 Jan Kratochvil 2008-10-14 12:51:20 UTC
Created attachment 320291 [details]
Fix.

Missing a testcase.

Comment 2 Jan Kratochvil 2008-10-14 12:51:56 UTC
Created attachment 320292 [details]
Recovery from similiar errors.

Missing a testcase.

Comment 3 Jan Kratochvil 2008-11-06 22:20:12 UTC
Committed to Rawhide:
* Thu Nov  6 2008 Jan Kratochvil <jan.kratochvil> - 6.8-27
- Fix resolving of variables at locations lists in prelinked libs (BZ 466901),
  bugreported by Michal Babej.
- Never terminate `bt full' on a problem of variable resolving (for BZ 466901).

Testcase provided only for the first patch.


Note You need to log in before you can comment on or make changes to this bug.