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

Todd Fiala tfiala at google.com
Fri Nov 22 23:08:11 PST 2013


Thanks, Jason!  That's good to know how it works in other cases.

My unknown target situation should be going away shortly here once we move
over to something based on the lldb-debugserver feeding better info to lldb.


On Fri, Nov 22, 2013 at 3:56 PM, Jason Molenda <jmolenda at apple.com> wrote:

> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20131122/081dabad/attachment.html>


More information about the lldb-dev mailing list