This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: gdb/1900: arm-elf sim segfaults on "load" under host x86_64
- From: Janne Hellsten <jjhellst at gmail dot com>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 24 Mar 2005 15:08:07 -0000
- Subject: Re: gdb/1900: arm-elf sim segfaults on "load" under host x86_64
- Reply-to: Janne Hellsten <jjhellst at gmail dot com>
The following reply was made to PR gdb/1900; it has been noted by GNATS.
From: Janne Hellsten <jjhellst@gmail.com>
To: gdb-gnats@sources.redhat.com
Cc:
Subject: Re: gdb/1900: arm-elf sim segfaults on "load" under host x86_64
Date: Thu, 24 Mar 2005 17:03:13 +0200
Also tried with a new snapshot (GNU gdb 6.3.50.20050324), and got this:
Starting program: /opt/gcc/arm-elf/bin/arm-elf-gdb
GNU gdb 6.3.50.20050324
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=x86_64-unknown-linux-gnu --target=arm-elf".
(gdb) file test
Reading symbols from /home/janne/test/test...done.
(gdb) target sim
Connected to the simulator.
(gdb) load
Loading section .init, size 0x1c vma 0x8000
Loading section .text, size 0x230c vma 0x801c
Program received signal SIGSEGV, Segmentation fault.
sim_load_file (sd=0x1, myname=0x826f50 "gdbsim", callback=0x79dae0,
prog=0x7d9700 "/home/janne/test/test", prog_bfd=0x0,
verbose_p=1, lma_p=0, do_write=0x523720 <sim_write>) at
../../../gdb-6.3.50.20050324/sim/arm/../common/sim-load.c:111
111 if (s->flags & SEC_LOAD)
(gdb) bt
#0 sim_load_file (sd=0x1, myname=0x826f50 "gdbsim",
callback=0x79dae0, prog=0x7d9700 "/home/janne/test/test",
prog_bfd=0x0, verbose_p=1, lma_p=0, do_write=0x523720 <sim_write>)
at ../../../gdb-6.3.50.20050324/sim/arm/../common/sim-load.c:111
#1 0x0000000000524181 in sim_load (sd=0x3d3cb2e620, prog=0x8b5000
<Address 0x8b5000 out of bounds>, abfd=0x0,
from_tty=0) at ../../../gdb-6.3.50.20050324/sim/arm/wrapper.c:886
#2 0x00000000004329f2 in gdbsim_load (prog=0x7d9700
"/home/janne/test/test", fromtty=1)
at ../../gdb-6.3.50.20050324/gdb/remote-sim.c:409
#3 0x000000000047a0ef in load_command (arg=0x3d3cb2e620 "",
from_tty=1) at ../../gdb-6.3.50.20050324/gdb/symfile.c:1371
#4 0x000000000040f1cd in execute_command (p=0x7c1104 "", from_tty=1)
at ../../gdb-6.3.50.20050324/gdb/top.c:442
#5 0x0000000000495495 in command_handler (command=0x7c1100 "load") at
../../gdb-6.3.50.20050324/gdb/event-top.c:508
#6 0x0000000000495a4d in command_line_handler (rl=0x818c70 " \232}")
at ../../gdb-6.3.50.20050324/gdb/event-top.c:799
#7 0x0000000000559ae1 in rl_callback_read_char () at
../../gdb-6.3.50.20050324/readline/callback.c:123
#8 0x0000000000494d99 in rl_callback_read_char_wrapper
(client_data=0x3d3cb2e620)
at ../../gdb-6.3.50.20050324/gdb/event-top.c:174
#9 0x0000000000493d3d in process_event () at
../../gdb-6.3.50.20050324/gdb/event-loop.c:335
#10 0x00000000004948d8 in gdb_do_one_event (data=0x3d3cb2e620) at
../../gdb-6.3.50.20050324/gdb/event-loop.c:372
#11 0x000000000049171b in catch_errors (func=0x494500
<gdb_do_one_event>, func_args=0x0, errstring=0x5b5c1a "", mask=0)
at ../../gdb-6.3.50.20050324/gdb/exceptions.c:515
#12 0x00000000004433e6 in tui_command_loop (data=0x3d3cb2e620) at
../../gdb-6.3.50.20050324/gdb/tui/tui-interp.c:151
#13 0x00000000004053a9 in captured_command_loop (data=0x3d3cb2e620) at
../../gdb-6.3.50.20050324/gdb/main.c:92
#14 0x000000000049171b in catch_errors (func=0x4053a0
<captured_command_loop>, func_args=0x0, errstring=0x5b5c1a "",
mask=0) at ../../gdb-6.3.50.20050324/gdb/exceptions.c:515
#15 0x0000000000405a56 in captured_main (data=0x7fbffff6f0) at
../../gdb-6.3.50.20050324/gdb/main.c:800
#16 0x000000000049171b in catch_errors (func=0x4053e0 <captured_main>,
func_args=0x7fbffff820, errstring=0x5b5c1a "",
mask=0) at ../../gdb-6.3.50.20050324/gdb/exceptions.c:515
#17 0x0000000000406174 in gdb_main (args=0x3d3cb2e620) at
../../gdb-6.3.50.20050324/gdb/main.c:809
#18 0x0000000000405397 in main (argc=68464, argv=0x8b5000) at
../../gdb-6.3.50.20050324/gdb/gdb.c:35
(gdb) Quit
Best regards,
Janne