Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* arm-elf-gdb crash in get_frame_pc
@ 2005-12-21 17:23 Shaun Jackman
  2005-12-21 17:31 ` Shaun Jackman
  0 siblings, 1 reply; 4+ messages in thread
From: Shaun Jackman @ 2005-12-21 17:23 UTC (permalink / raw)
  To: gdb

I was single stepping through an arm-elf program when this crash occurred.

Cheers,
Shaun

$ arm-elf-gdb _build/kernel/kernel
GNU gdb 6.3.50.20051114-cvs
...
(arm-elf-gdb) s
Segmentation fault (core dumped)
$ gdb ~/bin/arm-elf-gdb core
...
Core was generated by `arm-elf-gdb _build/kernel/kernel'.
Program terminated with signal 11, Segmentation fault.
...
(gdb) f
#0  0x08143e19 in get_frame_pc (frame=0x0) at ../../gdb/frame.c:1321
1321      gdb_assert (frame->next != NULL);
(gdb) bt
#0  0x08143e19 in get_frame_pc (frame=0x0) at ../../gdb/frame.c:1321
#1  0x080c2a2c in insert_step_resume_breakpoint_at_frame (return_frame=0x0)
    at ../../gdb/infrun.c:2754
#2  0x080c58ed in handle_inferior_event (ecs=0xffffd1bc)
    at ../../gdb/infrun.c:2525
#3  0x080c607d in wait_for_inferior () at ../../gdb/infrun.c:1001
#4  0x080c6221 in proceed (addr=4294967295, siggnal=TARGET_SIGNAL_DEFAULT,
    step=1) at ../../gdb/infrun.c:826
#5  0x080bfe8c in step_1 (skip_subroutines=0, single_inst=0, count_string=0x0)
    at ../../gdb/infcmd.c:717
#6  0x08050a07 in execute_command (p=0x82ab991 "", from_tty=1)
    at ../../gdb/top.c:451
#7  0x080d16cf in command_handler (command=0x82ab990 "s")
    at ../../gdb/event-top.c:508
#8  0x080d1baf in command_line_handler (rl=0x836fd60 "")
    at ../../gdb/event-top.c:799
#9  0x081a7af5 in rl_callback_read_char () at ../../readline/callback.c:123
#10 0x080d102b in rl_callback_read_char_wrapper (client_data=0x0)
    at ../../gdb/event-top.c:174
#11 0x080d0852 in handle_file_event (event_file_desc=0)
    at ../../gdb/event-loop.c:728
#12 0x080d02f7 in process_event () at ../../gdb/event-loop.c:341
#13 0x080d0bd1 in gdb_do_one_event (data=0x0) at ../../gdb/event-loop.c:378
#14 0x080cde73 in catch_errors (func=0x80d0a50 <gdb_do_one_event>,
    func_args=0x0, errstring=0x8204fcd "", mask=6)
    at ../../gdb/exceptions.c:515
#15 0x08081883 in tui_command_loop (data=0x0) at ../../gdb/tui/tui-interp.c:151
#16 0x080ce14d in current_interp_command_loop () at ../../gdb/interps.c:278
#17 0x0804bb9b in captured_command_loop (data=0x0) at ../../gdb/main.c:101
#18 0x080cde73 in catch_errors (func=0x804bb90 <captured_command_loop>,
    func_args=0x0, errstring=0x8204fcd "", mask=6)
    at ../../gdb/exceptions.c:515
#19 0x0804c2b3 in captured_main (data=0xffffd8a6) at ../../gdb/main.c:834
#20 0x080cde73 in catch_errors (func=0x804bc00 <captured_main>,
    func_args=0xffffd6b8, errstring=0x8204fcd "", mask=6)
    at ../../gdb/exceptions.c:515
#21 0x0804bbf3 in gdb_main (args=0x0) at ../../gdb/main.c:843
#22 0x0804bb7f in main (argc=0, argv=0x0) at ../../gdb/gdb.c:35


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: arm-elf-gdb crash in get_frame_pc
  2005-12-21 17:23 arm-elf-gdb crash in get_frame_pc Shaun Jackman
@ 2005-12-21 17:31 ` Shaun Jackman
  2005-12-21 18:18   ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Shaun Jackman @ 2005-12-21 17:31 UTC (permalink / raw)
  To: gdb

2005/12/21, Shaun Jackman <sjackman@gmail.com>:
> I was single stepping through an arm-elf program when this crash occurred.
>
> Cheers,
> Shaun

This crash also occurs with gdb 6.4.50.20051221-cvs.

Cheers,
Shaun

$ arm-elf-gdb _build/kernel/kernel
GNU gdb 6.4.50.20051221-cvs
...
(arm-elf-gdb) s
Segmentation fault (core dumped)
$ gdb ~/bin/arm-elf-gdb core
GNU gdb 6.3-debian
...
Core was generated by `arm-elf-gdb _build/kernel/kernel'.
Program terminated with signal 11, Segmentation fault.
...
(gdb) f
#0  0x08144209 in get_frame_pc (frame=0x0) at ../../gdb/frame.c:1321
1321      gdb_assert (frame->next != NULL);
(gdb) bt
#0  0x08144209 in get_frame_pc (frame=0x0) at ../../gdb/frame.c:1321
#1  0x080c2bbc in insert_step_resume_breakpoint_at_frame (return_frame=0x0)
    at ../../gdb/infrun.c:2754
#2  0x080c5a7d in handle_inferior_event (ecs=0xffffd1bc)
    at ../../gdb/infrun.c:2525
#3  0x080c620d in wait_for_inferior () at ../../gdb/infrun.c:1001
#4  0x080c63b1 in proceed (addr=4294967295, siggnal=TARGET_SIGNAL_DEFAULT,
    step=1) at ../../gdb/infrun.c:826
#5  0x080c001c in step_1 (skip_subroutines=0, single_inst=0, count_string=0x0)
    at ../../gdb/infcmd.c:717
#6  0x08050a37 in execute_command (p=0x82ac991 "", from_tty=1)
    at ../../gdb/top.c:451
#7  0x080d185f in command_handler (command=0x82ac990 "s")
    at ../../gdb/event-top.c:508
#8  0x080d1d3f in command_line_handler (rl=0x8387800 "")
    at ../../gdb/event-top.c:799
#9  0x081a77e5 in rl_callback_read_char () at ../../readline/callback.c:123
#10 0x080d11bb in rl_callback_read_char_wrapper (client_data=0x0)
    at ../../gdb/event-top.c:174
#11 0x080d09e2 in handle_file_event (event_file_desc=0)
    at ../../gdb/event-loop.c:728
#12 0x080d0487 in process_event () at ../../gdb/event-loop.c:341
#13 0x080d0d61 in gdb_do_one_event (data=0x0) at ../../gdb/event-loop.c:378
#14 0x080ce003 in catch_errors (func=0x80d0be0 <gdb_do_one_event>,
    func_args=0x0, errstring=0x8204c6d "", mask=6)
    at ../../gdb/exceptions.c:515
#15 0x08081933 in tui_command_loop (data=0x0) at ../../gdb/tui/tui-interp.c:151
#16 0x080ce2dd in current_interp_command_loop () at ../../gdb/interps.c:278
#17 0x0804bbcb in captured_command_loop (data=0x0) at ../../gdb/main.c:101
#18 0x080ce003 in catch_errors (func=0x804bbc0 <captured_command_loop>,
    func_args=0x0, errstring=0x8204c6d "", mask=6)
    at ../../gdb/exceptions.c:515
#19 0x0804c2e3 in captured_main (data=0xffffd8a6) at ../../gdb/main.c:834
#20 0x080ce003 in catch_errors (func=0x804bc30 <captured_main>,
    func_args=0xffffd6b8, errstring=0x8204c6d "", mask=6)
    at ../../gdb/exceptions.c:515
#21 0x0804bc23 in gdb_main (args=0x0) at ../../gdb/main.c:843
#22 0x0804bbaf in main (argc=0, argv=0x0) at ../../gdb/gdb.c:35


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: arm-elf-gdb crash in get_frame_pc
  2005-12-21 17:31 ` Shaun Jackman
@ 2005-12-21 18:18   ` Daniel Jacobowitz
  2005-12-21 20:21     ` Shaun Jackman
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2005-12-21 18:18 UTC (permalink / raw)
  To: Shaun Jackman; +Cc: gdb

On Wed, Dec 21, 2005 at 10:31:32AM -0700, Shaun Jackman wrote:
> 2005/12/21, Shaun Jackman <sjackman@gmail.com>:
> > I was single stepping through an arm-elf program when this crash occurred.
> >
> > Cheers,
> > Shaun
> 
> This crash also occurs with gdb 6.4.50.20051221-cvs.

Since you can obviously reproduce it, how about creating a testcase
- preferably one suitable for the testsuite, but at least one for
anyone to debug it?

Though it's fairly apparent what must have gone wrong.


-- 
Daniel Jacobowitz
CodeSourcery, LLC


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: arm-elf-gdb crash in get_frame_pc
  2005-12-21 18:18   ` Daniel Jacobowitz
@ 2005-12-21 20:21     ` Shaun Jackman
  0 siblings, 0 replies; 4+ messages in thread
From: Shaun Jackman @ 2005-12-21 20:21 UTC (permalink / raw)
  To: gdb

2005/12/21, Daniel Jacobowitz <drow@false.org>:
> On Wed, Dec 21, 2005 at 10:31:32AM -0700, Shaun Jackman wrote:
> > 2005/12/21, Shaun Jackman <sjackman@gmail.com>:
> > > I was single stepping through an arm-elf program when this crash occurred.
> > >
> > > Cheers,
> > > Shaun
> >
> > This crash also occurs with gdb 6.4.50.20051221-cvs.
>
> Since you can obviously reproduce it, how about creating a testcase
> - preferably one suitable for the testsuite, but at least one for
> anyone to debug it?
>
> Though it's fairly apparent what must have gone wrong.

I am uncertain what portion of triggering this crash depends on the
debugger I'm using (a BDI2000 by Abatron) or the target hardware (a
custom ARM7 based board). Perhaps this bug could be triggered using
the ARM simulator. I think I'd have a better chance of fixing the bug
itself than writing a test case.

Cheers,
Shaun


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-12-21 20:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-21 17:23 arm-elf-gdb crash in get_frame_pc Shaun Jackman
2005-12-21 17:31 ` Shaun Jackman
2005-12-21 18:18   ` Daniel Jacobowitz
2005-12-21 20:21     ` Shaun Jackman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox