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 shlibs/11488] fsf gdb x86_64-apple-darwin crashes when loadinglibraries due to an endless loop


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.


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