Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Feb 2005 11:28:53 -0500
From:      Gerard Samuel <fbsd-questions@trini0.org>
To:        Miguel Mendez <flynn@energyhq.es.eu.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Generating Backtrace on FBSD 5.3
Message-ID:  <4208E8C5.7060307@trini0.org>
In-Reply-To: <20050208163936.6c2877b2.flynn@energyhq.es.eu.org>
References:  <4208D71C.7000207@trini0.org> <20050208163936.6c2877b2.flynn@energyhq.es.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Miguel Mendez wrote:

>On Tue, 08 Feb 2005 10:13:32 -0500
>Gerard Samuel <fbsd-questions@trini0.org> 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.
>
I'll give that a shot.  Thanks



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