[lldb-dev] [PATCH] Fix NULL unwinder dereference in StackFrameList

Jason Molenda jmolenda at apple.com
Fri Nov 22 15:56:02 PST 2013


For what it's worth, the unwinder is picked in Thread::GetStackFrameStatus() - we have a "last resort" unwinder for Apple triples that tries to walk the stack by following a frame chain for i386 or x86_64.  Might be good to fall back to that even if the triple isn't -apple-.

(wouldn't have helped in this case where you didn't even have an architecture, let alone an OS, defined, but fwiw.)

On Nov 22, 2013, at 12:37 PM, Todd Fiala <tfiala at google.com> wrote:

> Hi all,
> 
> I'm attaching a proposed patch to fix an issue where lldb will seg fault if for some reason there is no unwinder when StackFrameList::GetFramesUpTo() is called.
> 
> The scenario where I'm hitting it is more fundamentally broken (the triple is unknown) - this small patch is just to stop lldb from crashing.
> 
> Thanks!
> 
> Sincerely,
> Todd Fiala
> <null_unwinder.diff>_______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev




More information about the lldb-dev mailing list