Bug 17446

Summary: gdb --batch broken since 7.8
Product: gdb Reporter: Martin Sandsmark <martin.sandsmark>
Component: backtraceAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED FIXED    
Severity: normal CC: bhush94, naesten, pedro, xdje42
Priority: P2    
Version: 7.8   
Target Milestone: ---   
See Also: https://sourceware.org/bugzilla/show_bug.cgi?id=17347
Host: Target:
Build: Last reconfirmed:

Description Martin Sandsmark 2014-09-30 12:44:08 UTC
gdb after 7.8 just prints two garbage frames when in batch mode. confirmed on ubuntu and archlinux.

# How to reproduce
echo "thread apply all bt" > /tmp/instr
gdb --batch -x /tmp/instr -p `pidof kate` /usr/bin/kate

|
|
v

Thread 1 (process 23159):
#0 0x00007ff7ffafb39d in ?? ()
#1 0x0000000000000000 in ?? ()

this breaks the crash handler/reporter used for all KDE applications.

ubuntu launchpad bug: https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1371043
Comment 1 Martin Sandsmark 2014-09-30 12:48:11 UTC
KDE bug: https://bugs.kde.org/show_bug.cgi?id=339476
Comment 2 Doug Evans 2014-10-03 08:11:10 UTC
Data point: This could be a dupe of 17347.
The fix for that is in the 7.8 branch and will be in 7.8.1.
Comment 3 Pedro Alves 2014-10-24 18:53:41 UTC
> Data point: This could be a dupe of 17347.

Yeah, this is fixed in mainline, and bisecting pointed at the fix for 17347.

Closing as fixed then.