From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29553 invoked by alias); 23 Jun 2011 19:48:29 -0000 Received: (qmail 29530 invoked by uid 22791); 23 Jun 2011 19:48:29 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_GM X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 23 Jun 2011 19:48:15 +0000 From: "fawzi at gmx dot ch" To: gdb-prs@sourceware.org Subject: [Bug shlibs/11488] fsf gdb x86_64-apple-darwin crashes when loading libraries due to an endless loop X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: shlibs X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fawzi at gmx dot ch X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Thu, 23 Jun 2011 19:48:00 -0000 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: 2011-q2/txt/msg00475.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=11488 --- Comment #16 from Fawzi Mohamed 2011-06-23 19:48:14 UTC --- Created attachment 5817 --> http://sourceware.org/bugzilla/attachment.cgi?id=5817 ensures that the cie ptr of a fde is really a cie patch against the 7.2 branch that checks that the CIE pointer in an FDE is a CIE and not an FDE, otherwise when a for example an FDE points to itself you have a recursive call that exhausts the stack (the fde tries to decode its cie, as it is not in the table, which being a fde tries to decode its cie....). This was what happened in libobjc.A.dylib. There are various ways to detect this, I implemented one, but I think that in some form the check should go in gdb, as it makes it more robust. -- 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.