From owner-freebsd-current@FreeBSD.ORG Wed Jan 10 06:45:25 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 80DA716A416 for ; Wed, 10 Jan 2007 06:45:25 +0000 (UTC) (envelope-from doublef-ctm@yandex.ru) Received: from smtp4.yandex.ru (smtp4.yandex.ru [213.180.223.136]) by mx1.freebsd.org (Postfix) with ESMTP id C801B13C465 for ; Wed, 10 Jan 2007 06:45:24 +0000 (UTC) (envelope-from doublef-ctm@yandex.ru) Received: from [83.239.189.195] ([83.239.189.195]:33734 "EHLO shark" smtp-auth: "doublef-ctm" TLS-CIPHER: TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S7768063AbXAJGgl (ORCPT ); Wed, 10 Jan 2007 09:36:41 +0300 X-Comment: RFC 2476 MSA function at smtp4.yandex.ru logged sender identity as: doublef-ctm Received: by shark (Postfix, from userid 1000) id ADD2017348; Wed, 10 Jan 2007 09:36:39 +0300 (MSK) Date: Wed, 10 Jan 2007 09:36:39 +0300 From: Sergey Zaharchenko To: Divacky Roman Message-ID: <20070110063639.GA3669@shark.localdomain> References: <20070109164522.GA8445@shark.localdomain> <20070109203502.GA32517@stud.fit.vutbr.cz> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ew6BAiZeqk4r7MaW" Content-Disposition: inline In-Reply-To: <20070109203502.GA32517@stud.fit.vutbr.cz> X-Listening-To: Silence User-Agent: Mutt/1.5.11 Cc: current@freebsd.org Subject: Re: GDB dumping stack frames by address incorrectly? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jan 2007 06:45:25 -0000 --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--