Re: info symbol can crash GDB

Randolph Chung
2006-03-01T01:36:01Z

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