This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug symtab/11199] crash in quirk_gcc_member_function_pointer (dwarf2read.c)


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]