libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libunwind-devel] Crash while running a cpu profiling tool with libu


From: Arun Sharma
Subject: Re: [Libunwind-devel] Crash while running a cpu profiling tool with libunwind 1.0.1
Date: Thu, 26 Jan 2012 17:47:26 -0800

On Thu, Jan 26, 2012 at 5:03 PM, Siddharth Bhojnagarwala
<address@hidden> wrote:

>
> Why does libunwind choke if a signal to do profiling fires in middle of
> pthread_mutex_lock?  I am also not clear on the solution that gperf offers,
> can someone please advise me further on that?

src/mips/Gis_signal_frame.c is not implemented. You'll need to
implement it along the lines of x86.

This could be done by looking for specific instructions on the stack
(eg: ARM) or by recognizing dwarf unwind information (x86). The latter
is a better method - but doesn't work on old glibcs with missing
annotation.

Also see dwarf/Gfde.c where dci->signal_frame is computed.

 -Arun



reply via email to

[Prev in Thread] Current Thread [Next in Thread]