Public bug reported:

Binary package hint: gdb

gdb is crashing when i restart a segfaulted program and reach a
breakpoint. I'm debugging some simple data transforms via a test program
(i'll try to attach), which fails when run on itself(not the bug i'm
reporting). I set a breakpoint before the first run at line
data_transforms.c:156(middle of a for loop). When it reaches the break
for the first time in the new run, it segfaults.

I'm running 9.10 karmic, with uname -a:

Linux schrodingers-grue-box 2.6.31-16-generic #52-Ubuntu SMP Thu Dec 3
22:00:22 UTC 2009 i686 GNU/Linux

apt-cache reports gdb as: Architecture: i386 Version: 7.0-0ubuntu1

I attached gdb to gdb, caused the segfault again, and recieved the
following backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x08181de9 in check_typedef ()
(gdb) bt
#0  0x08181de9 in check_typedef ()
#1  0x08129be2 in allocate_value_lazy ()
#2  0x08129ca2 in allocate_value ()
#3  0x08129e73 in value_from_longest ()
#4  0x0812e10d in evaluate_subexp_standard ()
#5  0x081cb73e in ?? ()
#6  0x0812c1d7 in evaluate_subexp_standard ()
#7  0x081cb73e in ?? ()
#8  0x0812ad1e in evaluate_subexp_with_coercion ()
#9  0x0812cbc9 in evaluate_subexp_standard ()
#10 0x081cb73e in ?? ()
#11 0x0812aaff in evaluate_expression ()
#12 0x08141681 in ?? ()
#13 0x0814182f in do_displays ()
#14 0x0815e826 in normal_stop ()
#15 0x0815a9e7 in ?? ()
#16 0x080928e2 in execute_command ()
#17 0x0817094b in ?? ()
#18 0x081716a2 in ?? ()
#19 0x007fba32 in rl_callback_read_char () from /lib/libreadline.so.6
#20 0x08170a8b in ?? ()
#21 0x0816ff79 in ?? ()
#22 0x0816f7bb in ?? ()
---Type <return> to continue, or q <return> to quit---
#23 0x08170646 in gdb_do_one_event ()
#24 0x0816a983 in catch_errors ()
#25 0x080f4ab4 in ?? ()
#26 0x0816b053 in current_interp_command_loop ()
#27 0x080891bb in ?? ()
#28 0x0816a983 in catch_errors ()
#29 0x08089d84 in ?? ()
#30 0x0816a983 in catch_errors ()
#31 0x080890e2 in gdb_main ()
#32 0x080890a3 in main ()

** Affects: gdb (Ubuntu)
     Importance: Undecided
         Status: New

-- 
gdb segfaults after a program it is debugging segfaults, restarts, and reaches 
a break point
https://bugs.launchpad.net/bugs/495115
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to