platform_system_core/libbacktrace
Christopher Ferris 30c942cf10 Prevent crashes if a map cannot be created.
Under some conditions, /proc/<pid>/maps might return nothing. If we
try and unwind in this case, we'll crash. Check this case and fail
the unwind.

Add checks that no other functions try and use map_ without
checking for nullptr.

Add logging when an unwind fails so it's clear what happened.

Bug: 21162746
Change-Id: I56ce51dda0cfc9db20475a441f118108196aa07c
2015-05-14 17:56:41 -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
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
BacktraceCurrent.cpp Prevent crashes if a map cannot be created. 2015-05-14 17:56:41 -07:00
BacktraceCurrent.h Discards frames for code within library. 2015-04-01 15:58:20 -07:00
BacktraceLog.h Refactor the code. 2015-03-31 10:51:44 -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
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
ThreadEntry.cpp Refactor the code. 2015-03-31 10:51:44 -07:00
ThreadEntry.h Refactor the code. 2015-03-31 10:51:44 -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