This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: info symbol can crash GDB


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]