This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug shlibs/15058] New: crash invoking "file" when solibs present
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 23 Jan 2013 14:35:39 +0000
- Subject: [Bug shlibs/15058] New: crash invoking "file" when solibs present
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=15058
Bug #: 15058
Summary: crash invoking "file" when solibs present
Product: gdb
Version: unknown
Status: NEW
Severity: normal
Priority: P2
Component: shlibs
AssignedTo: unassigned@sourceware.org
ReportedBy: tromey@redhat.com
Classification: Unclassified
While debugging a patch on HPPA, I noticed a pre-existing
crash in py-block.exp.
The crash occurs because invoking "file" with no arguments
calls:
#0 set_target_gdbarch (new_gdbarch=0x402059f0)
at ../../archer/gdb/gdbarch.c:4647
#1 0x002baad0 in set_gdbarch_from_file (abfd=0x0)
at ../../archer/gdb/arch-utils.c:559
#2 0x002f1944 in exec_file_attach (filename=0x0, from_tty=1)
at ../../archer/gdb/exec.c:204
#3 0x002f1e88 in exec_file_command (args=0x0, from_tty=1)
at ../../archer/gdb/exec.c:344
#4 0x002f1eec in file_command (arg=0x0, from_tty=1)
at ../../archer/gdb/exec.c:356
On this machine, this changes the target_gdbarch.
Then, later, free_so is called to destroy an solib.
However, it now gets the wrong 'ops' vector.
This proceeds to treat the lm_info as an object of the wrong
type -- it calls solib_target_free_so rather than
som_free_so
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.