platform_system_core/debuggerd
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
..
arm Add missing arm64 registers. 2014-07-14 18:56:53 -07:00
arm64 Add missing arm64 registers. 2014-07-14 18:56:53 -07:00
mips Remove the pt_regs_mips_t structure. 2015-01-26 13:52:35 -08:00
mips64 Add backtrace support for mips64. 2015-03-09 18:43:10 -07:00
x86 Updated non-ARM archs to reflect logging changes. 2014-06-19 11:33:38 -07:00
x86_64 Updated non-ARM archs to reflect logging changes. 2014-06-19 11:33:38 -07:00
Android.mk Print the build id of shared libraries if present. 2015-03-17 15:13:35 -07:00
backtrace.cpp Prevent crashes if a map cannot be created. 2015-05-14 17:56:41 -07:00
backtrace.h Changing how debuggerd filters log messages to different locations. 2014-06-16 14:41:21 -07:00
crasher.c Make crasher smash-stack work. 2014-12-11 17:49:12 -08:00
debuggerd.cpp Move 32 bit/64 bit check into debuggerd. 2015-01-20 17:22:07 -08:00
elf_utils.cpp Fix alignment when reading note segment. 2015-04-14 10:27:54 -07:00
elf_utils.h Print the build id of shared libraries if present. 2015-03-17 15:13:35 -07:00
getevent.cpp Next phase of the move, reformat use C++ features. 2014-01-13 14:21:52 -08:00
getevent.h Use libcorkscrew in debuggerd. 2011-10-22 16:43:00 -07:00
machine.h Changing how debuggerd filters log messages to different locations. 2014-06-16 14:41:21 -07:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
NOTICE auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
tombstone.cpp Prevent crashes if a map cannot be created. 2015-05-14 17:56:41 -07:00
tombstone.h Removed log.quiet and log = NULL cases from debuggerd. 2014-06-19 10:59:01 -07:00
utility.cpp All debuggerd log output marked fatal. 2015-05-05 13:27:41 -07:00
utility.h Add backtrace support for mips64. 2015-03-09 18:43:10 -07:00