From owner-freebsd-questions@FreeBSD.ORG Tue Feb 8 15:40:16 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 35E5616A4F8 for ; Tue, 8 Feb 2005 15:40:16 +0000 (GMT) Received: from mindfields.energyhq.es.eu.org (73.Red-213-97-200.pooles.rima-tde.net [213.97.200.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62A5143D39 for ; Tue, 8 Feb 2005 15:40:15 +0000 (GMT) (envelope-from flynn@energyhq.es.eu.org) Received: from scienide.energyhq.es.eu.org (scienide.energyhq.es.eu.org [192.168.100.1]) by mindfields.energyhq.es.eu.org (Postfix) with SMTP id C86003560F; Tue, 8 Feb 2005 16:40:14 +0100 (CET) Date: Tue, 8 Feb 2005 16:39:36 +0100 From: Miguel Mendez To: Gerard Samuel Message-Id: <20050208163936.6c2877b2.flynn@energyhq.es.eu.org> In-Reply-To: <4208D71C.7000207@trini0.org> References: <4208D71C.7000207@trini0.org> X-Mailer: Sylpheed version 1.0.0-gtk2-20041224 (GTK+ 2.4.14; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="Signature=_Tue__8_Feb_2005_16_39_36_+0100_0NXXEoXrInp0FIpF" cc: freebsd-questions@freebsd.org Subject: Re: Generating Backtrace on FBSD 5.3 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Feb 2005 15:40:16 -0000 --Signature=_Tue__8_Feb_2005_16_39_36_+0100_0NXXEoXrInp0FIpF Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit On Tue, 08 Feb 2005 10:13:32 -0500 Gerard Samuel wrote: > Im trying to figure out how to generate a > backtrace from a core dump of subversion, to send > to subversion developers. > What tools are available to read a core dump file, > to generate this backtrace on FreeBSD 5.3? > I'm trying to understand gdb, but Im not sure if > this is what I'm looking for. > $ gdb -c svn.core gdb /path/to/svn svn.core is what you want. But for that to be useful you need a svn executable built with debugging info. This can be done by building the port with CFLAGS having the '-g' option and STRIP set to null, so you don't lose that info while installing. (deinstall svn first) e.g.: cd /usr/ports/devel/subversion && env CFLAGS="-g" STRIP="" make install Then try to reproduce the error and run gdb. Once in gdb use the command 'bt' to get a backtrace. Cheers, -- Miguel Mendez http://www.energyhq.es.eu.org PGP Key: 0xDC8514F1 --Signature=_Tue__8_Feb_2005_16_39_36_+0100_0NXXEoXrInp0FIpF Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCCN07nLctrNyFFPERArgAAJ4i7SlRpin1dBd2ceeZJsvZfe4XkwCdGBuQ pkh7kpcsE8sUpk4gX1P+Sao= =QGzO -----END PGP SIGNATURE----- --Signature=_Tue__8_Feb_2005_16_39_36_+0100_0NXXEoXrInp0FIpF--