android_system_core/debuggerd
Andy McFadden 136dcc5ce6 Show maps near native fault address
This adds some additional output to native crashes.  For example, if
something tried to access a bit of mmap(/dev/zero) memory that had
been mprotect()ed, you might see output like this:

I DEBUG   : memory map around addr 4015a00c:
I DEBUG   : 40159000-4015a000 /system/lib/libstdc++.so
I DEBUG   : 4015a000-40162000 /dev/zero
I DEBUG   : b0001000-b0009000 /system/bin/linker

The idea is to see what's in and around the fault address to make it
easier to identify bus errors due to file truncation and segmentation
faults caused by buffer over/underruns.

No output is generated for accesses below 0x1000 (which are likely
NULL pointer dereferences) or for signals that don't set si_addr.

Also, suppress the fault address for signals that don't set si_addr:
I DEBUG   : signal 6 (SIGABRT), code 0 (?), fault addr --------

We still print "fault addr" followed by 8 characters for anything
that is parsing the contents.  The "address" shown for signals like
SIGABRT was meaningless and possibly confusing.

Bug 5358516

Change-Id: Icae8ef309ea2d89b129f68d30f96b2ca8a69cc6c
2011-10-13 12:35:55 -07:00
..
arm Show maps near native fault address 2011-10-13 12:35:55 -07:00
x86 Fix crash reporting on x86 platform. 2011-06-07 09:24:03 -07:00
Android.mk remove crasher and vfp-crasher from standard builds 2011-01-23 17:51:54 -08:00
crasher.c debuggerd: Reorganize to facilitate IA commit 2010-11-29 11:03:48 -08:00
debuggerd.c Show maps near native fault address 2011-10-13 12:35:55 -07:00
debuggerd.h debuggerd: IA version 2010-11-29 11:28:11 -08:00
getevent.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08: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
symbol_table.c debuggerd: Fix missing include. 2011-02-01 14:38:30 +01:00
symbol_table.h debuggerd: IA version 2010-11-29 11:28:11 -08:00
utility.c Show maps near native fault address 2011-10-13 12:35:55 -07:00
utility.h Show maps near native fault address 2011-10-13 12:35:55 -07:00
vfp-crasher.c Dump VFP registers and status word when native app crashes. 2009-12-17 12:53:06 -08:00
vfp.S Use arch flags instead of TARGET_ARCH_VARIANT, and add support for VFP_D16 2010-03-10 14:36:08 -08:00