platform_system_core/libbacktrace
Christopher Ferris eb19e76632 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
(cherry picked from commit 30c942cf10)
2015-05-15 11:32:53 -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-13 13:44:47 -07:00
Backtrace.cpp Prevent crashes if a map cannot be created. 2015-05-15 11:32:53 -07:00
backtrace_test.cpp Add tests for elf unwinding in memory. 2015-05-13 13:44: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-15 11:32:53 -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 Refactor the code. 2015-03-31 10:51:44 -07:00
BacktracePtrace.cpp Fix small ptrace reads. 2015-05-06 19:08:52 -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-05-13 13:44:34 -07:00
thread_utils.h Remove libbacktrace definition of gettid. 2015-05-13 13:44:34 -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 16:35:50 -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-15 11:32:53 -07:00
UnwindPtrace.h Refactor the code. 2015-03-31 10:51:44 -07:00