The problem is simple : whatever the way, gdb segfaults when running strace in it. Here are examples of gdb debugging itself when producing the bug : http://pastebin.archlinux.fr/427135 : very simple cases http://pastebin.archlinux.fr/427133 : gdb debugging gdb with backtrace Real debuggings failing (in gdb so we can have a backtrace, it's the same) : http://pastebin.archlinux.fr/427127 (a program with debug symbols) http://pastebin.archlinux.fr/427130 (just bash) I use Arch Linux with GCC 4.5.1
Does this occur when you use the strace command with arguments? gdb crashes on my system when I run strace with no arguments, but gdb's strace command seems to work correctly otherwise. Since you said the strace command always produces a segfault, I figured my bug was different from this one, and I reported it at: https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/691814 (I haven't reported it here yet.) But then I examined your examples in detail and saw that you're running strace with no arguments. If strace works for you when invoked with arguments, then my bug is probably a reproduction of yours.
Yes, it indeed is the same bug ! Confirmed then.
Excellent. I have annotated my Launchpad bug report to indicate that it is a duplicate of this.
Already fixed. See PR12217. *** This bug has been marked as a duplicate of bug 12217 ***