platform_system_core/libbacktrace
Christopher Ferris 2d09171758 Modify the code to avoid potential deadlocks.
If the signal to dump a thread is never delivered, then it's
possible for a deadlock. The signal handler is responsible for
unlocking and deleting the ThreadEntry created for the pid/tid
combination. This means if the signal is lost, the ThreadEntry
gets stuck locked and never deleted. If a second attempt to get
a backtrace of this thread occurs, there is a deadlock.

Also, decrease the timeout from 10 seconds to 5 seconds. The original
10 seconds was because the unwind was actually done in the signal
handler. Now the signal handler does nothing but copy the ucontext
structure and let the caller do the unwind.

Bug: 21086132
Change-Id: Idc735dbf6147ec879d35bd4f034c5d227e26a98d
2015-06-01 13:51:51 -07:00
..
Android.build.mk Merge "Refactor the code." 2015-03-31 21:11:36 +00:00
Android.mk Add tests for elf unwinding in memory. 2015-05-12 16:11:47 -07:00
Backtrace.cpp Prevent crashes if a map cannot be created. 2015-05-14 17:56:41 -07:00
BacktraceCurrent.cpp Modify the code to avoid potential deadlocks. 2015-06-01 13:51:51 -07:00
BacktraceCurrent.h Discards frames for code within library. 2015-04-01 15:58:20 -07:00
BacktraceLog.h Modify the code to avoid potential deadlocks. 2015-06-01 13:51:51 -07:00
BacktraceMap.cpp Fix unused argument error on darwin 2015-04-30 15:11:34 -07:00
BacktracePtrace.cpp Fix small ptrace reads. 2015-05-06 16:39:17 -07:00
BacktracePtrace.h Refactor the code. 2015-03-31 10:51:44 -07:00
GetPss.cpp Refactor the code. 2015-03-31 10:51:44 -07:00
GetPss.h Create an UnwindMapLocal object. 2014-04-03 14:19:24 -07:00
ThreadEntry.cpp Modify the code to avoid potential deadlocks. 2015-06-01 13:51:51 -07:00
ThreadEntry.h Modify the code to avoid potential deadlocks. 2015-06-01 13:51:51 -07:00
UnwindCurrent.cpp Discards frames for code within library. 2015-04-01 15:58:20 -07:00
UnwindCurrent.h Refactor the code. 2015-03-31 10:51:44 -07:00
UnwindMap.cpp Add offset to map data. 2015-05-06 12:50:09 -07:00
UnwindMap.h Refactor the code. 2015-03-31 10:51:44 -07:00
UnwindPtrace.cpp Prevent crashes if a map cannot be created. 2015-05-14 17:56:41 -07:00
UnwindPtrace.h Refactor the code. 2015-03-31 10:51:44 -07:00
backtrace_test.cpp Add tests for elf unwinding in memory. 2015-05-12 16:11:47 -07:00
backtrace_testlib.c Rewrite libbacktrace using C++. 2013-10-28 17:55:25 -07:00
map_info.c Rewrite libbacktrace to be all C++. 2014-01-16 16:12:29 -08:00
thread_utils.c Remove libbacktrace definition of gettid. 2015-04-30 12:52:21 -07:00
thread_utils.h Remove libbacktrace definition of gettid. 2015-04-30 12:52:21 -07:00