Gentoo Archives: gentoo-user

From: Nikos Chantziaras <realnc@×××××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: How to get a backtrace from a core dump?
Date: Wed, 27 Jan 2010 16:40:06
Message-Id: hjpq64$q6m$1@ger.gmane.org
In Reply to: Re: [gentoo-user] How to get a backtrace from a core dump? by Steffen Loos
1 On 01/27/2010 04:58 PM, Steffen Loos wrote:
2 > Nikos Chantziaras schrieb:
3 >> I need to get a backtrace from a core dump file. I followed the
4 >> instructions here:
5 >>
6 >> http://www.gentoo.org/proj/en/qa/backtraces.xml
7 >>
8 >> I added -g to CFLAGS and splitdebug to FEATURES and built the
9 >> application with those new setting (that would be media-sound/lmms in
10 >> this case.) I then did "ulimit -c unlimited" and started the
11 >> application from that shell. I reproduced the crash and a core file
12 >> was successfully produced. But, when trying to get a backtrace, I get:
13 >>
14 >> --------
15 >> gdb --core core --batch --quiet -ex "thread apply all bt full" -ex "quit"
16 > Add the binary:
17 > /> gdb $(which lmms) [--core] core [...]
18
19 Ah, thanks. Works now.