This is the mail archive of the gdb-patches@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]

Re: [PATCH 1/2] avoid infinite loop with bad debuginfo


>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

Pedro> Hmm, I don't think that's the same issue.   I'm just talking about
Pedro> something like moving the frame_id_eq check to the end of
Pedro> get_prev_frame_1, after calling get_prev_frame_raw.  Something
Pedro> like:

Ok, I see now.

I think the issue is moot because your dwarf2_frame_cache-recursion
branch makes the problem disappear, and because the problem, as I
understand it, is that the DWARF unwinding code violates the unwinder
contract in a subtle way (this is what your patch fixes).

That said, even once your change is in, I think both of these patches
should go in.  Patch #1 still prevents an infinite loop -- I can
probably find another test case -- and patch #2 seems like a
straightforward correctness fix.

I'll fix up the tests and see what happens.

Tom


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