From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7241 invoked by alias); 21 Jan 2010 21:25:57 -0000 Received: (qmail 7224 invoked by uid 48); 21 Jan 2010 21:25:57 -0000 Date: Thu, 21 Jan 2010 21:25:00 -0000 Message-ID: <20100121212557.7223.qmail@sourceware.org> From: "tromey at redhat dot com" To: gdb-prs@sourceware.org In-Reply-To: <20100120201357.11199.keiths@redhat.com> References: <20100120201357.11199.keiths@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug symtab/11199] crash in quirk_gcc_member_function_pointer (dwarf2read.c) X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2010-q1/txt/msg00074.txt.bz2 ------- 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.