Re: GDB dumping stack frames by address incorrectly?

From: Sergey Zaharchenko <doublef-ctm_at_yandex.ru>
Date: Wed, 10 Jan 2007 09:36:39 +0300
Hello Roman!

Tue, Jan 09, 2007 at 09:35:02PM +0100 you wrote:

> there are more bugs.. try to attach to a running program.
> it kills the process and gdb itself crashes

Funny, but I can't reproduce this one:

: $ gdb generic_slave 3977
: GNU gdb 6.1.1 [FreeBSD]
[snip]
: 0x280fe638 in ?? () from /usr/local/lib/gcc-4.2.0/libstdc++.so.6
: (gdb) bt
: #0  0x280fe638 in ?? () from /usr/local/lib/gcc-4.2.0/libstdc++.so.6
: #1  0x2816bceb in operator delete ()
:    from /usr/local/lib/gcc-4.2.0/libstdc++.so.6
: #2  0x08057059 in path::addmark ()
: #3  0x08051ce2 in cell::accelerate ()
: #4  0x0804c8c1 in simulation::simstep ()
: #5  0x0804aa30 in call_server ()
: #6  0x0804b1d5 in main ()

No debugging symbols here, but I've tried a simple program with them too
and everything still works:

: $ gdb c 4505
: GNU gdb 6.1.1 [FreeBSD]
[snip]
: main () at c.c:4
: 4               while (1);
: (gdb)

Detaching is also correct. Something is probably wrong/different in your
setup, it works OK here.

HTH,

-- 
DoubleF
No virus detected in this message. Ehrm, wait a minute...
/kernel: pid 56921 (antivirus), uid 32000: exited on signal 9
Oh yes, no virus:)

Received on Wed Jan 10 2007 - 05:45:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:04 UTC