[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Libunwind-devel] getting backtraces from all threads
From: |
Arun Sharma |
Subject: |
Re: [Libunwind-devel] getting backtraces from all threads |
Date: |
Thu, 22 Jul 2010 12:22:46 -0700 |
On Thu, Jul 22, 2010 at 12:12 PM, Sven Neumann <address@hidden> wrote:
> Hello,
>
> How would I go about getting backtraces for all the threads in an
> application? I understand how to do this for the current thread using
> unw_init_local(). But how can I access the instruction pointers of the
> other threads?
>
This is orthogonal to libunwind. One strategy is to send a signal to
every thread in the process and have that thread report its own stack
trace.
Trying to stop and access another thread in the same process is full
of traps that lead to deadlocks in one form or another.
-Arun