* debugging gdb
@ 2009-06-22 18:48 Maik Beckmann
2009-06-22 18:53 ` Daniel Jacobowitz
0 siblings, 1 reply; 3+ messages in thread
From: Maik Beckmann @ 2009-06-22 18:48 UTC (permalink / raw)
To: gdb
Hello,
gdb-archer segfaults on me at a certain point in my source code. To give a
proper bug report I did wanted to get a backtrace. So I did
ulimit -c unlimited
to get a core dump.
However, I all I get by running my systems gdb-6.8 on the core file
gdb --core=core
is
{{{
$ gdb --core=core
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
(no debugging symbols found)
Core was generated by `/home/maik/abs/gdb-archer/src/gdb-archer/build/gdb/gdb
--annotate=3 pong'.
Program terminated with signal 11, Segmentation fault.
[New process 21841]
#0 0x0000000000633ff4 in ?? ()
(gdb) bt
#0 0x0000000000633ff4 in ?? ()
(gdb)
}}}
Can you guys give me a hand on how to move forward from here?
Thanks,
-- Maik
PS: I configured archer with
{{{
export CFLAGS=" -g -O1 "
export CXXFLAGS=" -g -O1 "
../configure --enable-debug \
--prefix=/usr \
--disable-nls \
--mandir=/usr/share/man \
--disable-werror \
--infodir=/usr/share/info
}}}
ran make but didn't install it.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: debugging gdb
2009-06-22 18:48 debugging gdb Maik Beckmann
@ 2009-06-22 18:53 ` Daniel Jacobowitz
2009-06-22 19:03 ` Maik Beckmann
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2009-06-22 18:53 UTC (permalink / raw)
To: Maik Beckmann; +Cc: gdb
On Mon, Jun 22, 2009 at 08:48:01PM +0200, Maik Beckmann wrote:
> Hello,
>
> gdb-archer segfaults on me at a certain point in my source code. To give a
> proper bug report I did wanted to get a backtrace. So I did
> ulimit -c unlimited
> to get a core dump.
>
> However, I all I get by running my systems gdb-6.8 on the core file
> gdb --core=core
Give GDB a binary, in addition to a core file. It'll do much better.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: debugging gdb
2009-06-22 18:53 ` Daniel Jacobowitz
@ 2009-06-22 19:03 ` Maik Beckmann
0 siblings, 0 replies; 3+ messages in thread
From: Maik Beckmann @ 2009-06-22 19:03 UTC (permalink / raw)
To: gdb
Daniel Jacobowitz schrieb am Montag 22 Juni 2009 um 20:53:
> On Mon, Jun 22, 2009 at 08:48:01PM +0200, Maik Beckmann wrote:
> >
> > However, I all I get by running my systems gdb-6.8 on the core file
> > gdb --core=core
>
> Give GDB a binary, in addition to a core file. It'll do much better.
Oh boy, sorry for being stupid.
Thank you,
--Maik
PS: output
Core was generated by `/home/maik/abs/gdb-archer/src/gdb-archer/build/gdb/gdb
./pong'.
Program terminated with signal 11, Segmentation fault.
[New process 24461]
#0 0x0000000000633eaf in d_print_comp (dpi=0x7fff1e3310b0, dc=0x2734c28) at
../../libiberty/cp-demangle.c:3271
3271 d_append_buffer (dpi, dc->u.s_name.s, dc->u.s_name.len);
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-06-22 19:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-22 18:48 debugging gdb Maik Beckmann
2009-06-22 18:53 ` Daniel Jacobowitz
2009-06-22 19:03 ` Maik Beckmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox