* Re: info symbol can crash GDB
[not found] <17412.57628.765837.278704@kahikatea.snap.net.nz>
@ 2006-03-01 1:36 ` Randolph Chung
2006-03-01 2:48 ` Nick Roberts
0 siblings, 1 reply; 2+ messages in thread
From: Randolph Chung @ 2006-03-01 1:36 UTC (permalink / raw)
To: 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: info symbol can crash GDB
2006-03-01 1:36 ` info symbol can crash GDB Randolph Chung
@ 2006-03-01 2:48 ` Nick Roberts
0 siblings, 0 replies; 2+ messages in thread
From: Nick Roberts @ 2006-03-01 2:48 UTC (permalink / raw)
To: Randolph Chung; +Cc: gdb
> > 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?
GNU gdb 6.4.50.20060228-cvs on Fedora Core 3
...
> Can you provide a backtrace on the corefile generated?
I think previously I followed execution into c_parse and had to preserve a
file like c-exp.y.tmp, but I lost the plot because I'm not familiar with
bison. Anyway the backtrace might have changed now.
Nick
#0 0x0813004b in check_typedef (type=0x0) at gdbtypes.c:1384
#1 0x080e8071 in allocate_value (type=0x0) at value.c:217
#2 0x080e9d90 in value_from_double (type=0x0, num=<invalid float value>) at value.c:1560
#3 0x080eada2 in evaluate_subexp_standard (expect_type=0x0, exp=0x9454410, pos=0xfefc8654, noside=EVAL_NORMAL) at eval.c:447
#4 0x080ea09f in evaluate_subexp (expect_type=0x0, exp=0x9454410, pos=0xfefc8654, noside=EVAL_NORMAL) at eval.c:72
#5 0x080ea284 in evaluate_expression (exp=0x9454410) at eval.c:162
#6 0x080ea0dd in parse_and_eval_address (exp=0x93c09a8 "0x8049bb8.") at eval.c:87
#7 0x080fb357 in sym_info (arg=0x93c09a8 "0x8049bb8.", from_tty=1) at .././gdb/printcmd.c:1021
#8 0x080b4f4f in do_cfunc (c=0x93d82f8, args=0x93c09a8 "0x8049bb8.", from_tty=1) at .././gdb/cli/cli-decode.c:57
#9 0x080b6f84 in cmd_func (cmd=0x93d82f8, args=0x93c09a8 "0x8049bb8.", from_tty=1) at .././gdb/cli/cli-decode.c:1631
#10 0x080824c5 in execute_command (p=0x93c09b1 ".", from_tty=1) at top.c:448
#11 0x081231ba in command_handler (command=0x93c09a0 "inf sym 0x8049bb8.") at event-top.c:512
#12 0x081239c8 in command_line_handler (rl=0x93fa9d0 "inf sym 0x8049bb8.") at event-top.c:797
#13 0x081de933 in rl_callback_read_char () at callback.c:123
#14 0x081228c3 in rl_callback_read_char_wrapper (client_data=0x0) at event-top.c:178
#15 0x0812307f in stdin_event_handler (error=0, client_data=0x0) at event-top.c:428
#16 0x08121fc2 in handle_file_event (event_file_desc=0) at event-loop.c:730
#17 0x081218c6 in process_event () at event-loop.c:343
#18 0x08121912 in gdb_do_one_event (data=0x0) at event-loop.c:380
#19 0x0811ee1a in catch_errors (func=0x81218de <gdb_do_one_event>, func_args=0x0, errstring=0x827623e "", mask=6) at exceptions.c:515
#20 0x080c4e43 in tui_command_loop (data=0x0) at .././gdb/tui/tui-interp.c:151
#21 0x0811f309 in current_interp_command_loop () at interps.c:278
#22 0x0807c81f in captured_command_loop (data=0x0) at .././gdb/main.c:101
#23 0x0811ee1a in catch_errors (func=0x807c814 <captured_command_loop>, func_args=0x0, errstring=0x826181d "", mask=6) at exceptions.c:515
#24 0x0807d6e6 in captured_main (data=0xfefc8b90) at .././gdb/main.c:834
#25 0x0811ee1a in catch_errors (func=0x807c852 <captured_main>, func_args=0xfefc8b90, errstring=0x826181d "", mask=6) at exceptions.c:515
#26 0x0807d710 in gdb_main (args=0xfefc8b90) at .././gdb/main.c:843
#27 0x0807c80d in main (argc=2, argv=0xfefc8c34) at gdb.c:35
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-03-01 2:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <17412.57628.765837.278704@kahikatea.snap.net.nz>
2006-03-01 1:36 ` info symbol can crash GDB Randolph Chung
2006-03-01 2:48 ` Nick Roberts
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).