This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug symtab/11199] crash in quirk_gcc_member_function_pointer (dwarf2read.c)
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 21 Jan 2010 21:25:57 -0000
- Subject: [Bug symtab/11199] crash in quirk_gcc_member_function_pointer (dwarf2read.c)
- References: <20100120201357.11199.keiths@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From tromey at redhat dot com 2010-01-21 21:25 -------
On F11, a simpler reproducer:
gdb -readnow /usr/lib/debug/usr/lib/libmathview_frontend_libxml2.so.0.8.0.debug
The problem is that we somehow get a recursive call to
quirk_gcc_member_function_pointer. The inner call crashes because it find the
type of __pfn, but the function type's first argument does not yet have a type.
I was unable to make a simpler test case :(
The only fix I can think of is pretty ugly: change read_structure_type
to smash the resulting type to a pointer-to-member type after the fact.
That is, don't call the quirk function until the structure type has been
made.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at redhat dot com
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2010-01-21 21:25:57
date| |
http://sourceware.org/bugzilla/show_bug.cgi?id=11199
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.