This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: info symbol can crash GDB
- From: Randolph Chung <tausq at debian dot org>
- To: gdb at sources dot redhat dot com
- Date: Wed, 01 Mar 2006 09:35:42 +0800
- Subject: Re: info symbol can crash GDB
- References: <17412.57628.765837.278704@kahikatea.snap.net.nz>
Nick Roberts wrote:
> In some cases if the argument to info symbol isn't a number, it causes a
> segmentation fault:
>
> (gdb) inf sym 0x8049bb8.
> Segmentation fault (core dumped)
Which version of gdb is this?
With gdb-6.3 from Debian:
(gdb) inf sym 0x8049bb8.
Invalid number "0x8049bb8.".
(gdb) inf sym 0x8049bb8
No symbol matches 0x8049bb8.
With GNU gdb 6.4.50.20060224-cvs:
(gdb) inf sym 0x8049bb8.
Unexpected type encountered for floating constant.
(gdb) info sym 0x8049bb8
No symbol matches 0x8049bb8.
Can you provide a backtrace on the corefile generated?
randolph