This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug shlibs/11488] fsf gdb x86_64-apple-darwin crashes when loadinglibraries due to an endless loop
- From: "fawzi at gmx dot ch" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 23 Jun 2011 19:48:15 +0000
- Subject: [Bug shlibs/11488] fsf gdb x86_64-apple-darwin crashes when loadinglibraries due to an endless loop
- Auto-submitted: auto-generated
- References: <bug-11488-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=11488
--- Comment #16 from Fawzi Mohamed <fawzi at gmx dot ch> 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.