Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jan 2007 09:36:39 +0300
From:      Sergey Zaharchenko <doublef-ctm@yandex.ru>
To:        Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Cc:        current@freebsd.org
Subject:   Re: GDB dumping stack frames by address incorrectly?
Message-ID:  <20070110063639.GA3669@shark.localdomain>
In-Reply-To: <20070109203502.GA32517@stud.fit.vutbr.cz>
References:  <20070109164522.GA8445@shark.localdomain> <20070109203502.GA32517@stud.fit.vutbr.cz>

next in thread | previous in thread | raw e-mail | index | archive | help

--ew6BAiZeqk4r7MaW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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,

--=20
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:)

--ew6BAiZeqk4r7MaW
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.1 (FreeBSD)

iD8DBQFFpIl2wo7hT/9lVdwRAjZYAJ49eCCvnfVPX9EpaIAvwni5nklk3gCZAWhd
Sen5mFgGbN5z5wxTD8fjO1A=
=yfiN
-----END PGP SIGNATURE-----

--ew6BAiZeqk4r7MaW--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070110063639.GA3669>