<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>You are right, it does work - sorry for false alarm.<br><br><div>> From: labath@google.com<br>> Date: Mon, 16 Nov 2015 11:26:10 +0000<br>> Subject: Re: [lldb-dev] Is there a way to inspect signaled stack?<br>> To: eugenebi@hotmail.com<br>> CC: lldb-dev@lists.llvm.org<br>> <br>> Hi Eugene,<br>> <br>> the libc signal trampoline should have .eh_frame unwind info (I am<br>> assuming this is x86_64 btw), and last time I looked at it, it seemed<br>> that it should be able to handle sigaltstack(). However, I have never<br>> tested this, so it's quite possible there is still some bug hidden<br>> there. Could you file a bug with a small repro case and attach the<br>> output of (thread backtrace) with logging enabled (log enable lldb<br>> unwind). We'll try to look at it.<br>> <br>> thanks,<br>> pl<br>> <br>> <br>> On 13 November 2015 at 19:22, Eugene Birukov via lldb-dev<br>> <lldb-dev@lists.llvm.org> wrote:<br>> > Hi,<br>> ><br>> > I am running on Ubuntu Linux. I am using a custom debugger built upon LLDB<br>> > C++ API using version 3.7.<br>> ><br>> > The target program issues a lot of "legitimate" SIGSEGV signals that it<br>> > handles itself. Its signal handler runs on a separate stack (it uses<br>> > sigaltstack() and SA_ONSTACK). Now, sometimes a bug in the program causes<br>> > SIGSEGV that the handler cannot deal with and it crashes. Now, when I load<br>> > the core, I see stack frames for the signal handler stack, but what I really<br>> > need are frames for the signaled stack.<br>> ><br>> > Of course, I have access to siginfo_t and ucontext_t, so I can try to use<br>> > some unwind library, but that approach is far from ideal - the LLDB already<br>> > has the unwinder. So, what should I do to get the set of SBFrame's that I<br>> > can query about local variables, etc.? I mean, something like .cxr command<br>> > in Windbg would be really handy...<br>> ><br>> > Thanks,<br>> > Eugene<br>> ><br>> > _______________________________________________<br>> > lldb-dev mailing list<br>> > lldb-dev@lists.llvm.org<br>> > http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev<br>> ><br></div>                                     </div></body>
</html>