info symbol can crash GDB

Randolph Chung tausq@debian.org
Wed Mar 1 01:36:00 GMT 2006


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



More information about the Gdb mailing list