History log of /system/core/debuggerd/libdebuggerd/tombstone.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bab3354ede1d651a6655457339a6f3d446eb90ab 26-Sep-2017 Elliott Hughes <enh@google.com> Show the number of VMAs in the tombstone.

Tombstones (especially ones with lots of VMAs) are regularly truncated.
We can at least show the number of VMAs, though, for anyone interested
in knowing whether they got close to the default 64Ki limit.

Bug: http://b/66911122
Bug: 64709603 (presubmit balking at the line above)
Test: ran crasher, examined tombstone

(cherry picked from commit 868d39a82fb2d9830d253409a1c28f0ae1fcac33)

Change-Id: I286db66f28f132307d573dbe5164efc969dc6ddc
/system/core/debuggerd/libdebuggerd/tombstone.cpp
0aeeda00244a31e13d6b9557c94b00ba9457ecb2 14-Sep-2017 Josh Gao <jmgao@google.com> debuggerd_fallback: print maps.

Bug: http://b/63400743
Bug: http://b/65590288
Bug: 64709603 (presubmit balking at the line above)
Test: killall -ABRT media.codec
Change-Id: I58e47dcd8e99ad7a5945604c27876dd01259e501
Merged-In: I58e47dcd8e99ad7a5945604c27876dd01259e501
(cherry picked from commit fdc95c967099d6cb963195abec9b42b3c64989fd)
/system/core/debuggerd/libdebuggerd/tombstone.cpp
96722b0fa48524e03659c0a3d579f8ef4f1641ba 19-Jul-2017 Christopher Ferris <cferris@google.com> Cleanup the libbacktrace interface a bit.

- Change the field name load_base to load_bias (which is what it really is).
- Add a rel_pc field so that callers do not need to compute it themselves.
- Remove the BacktraceMap::GetRelativePc() since nobody should need to
compute this themselves.

Bug: 23762183

Test: Compiles and unit tests pass (debuggerd, libbacktrace).
Change-Id: I2cb579767120adf08c407a58f3c487ee3f2b45fc
/system/core/debuggerd/libdebuggerd/tombstone.cpp
336a52e00cd270f4c0cab0e2b9b260f4f9132d6f 21-Jun-2017 Elliott Hughes <enh@google.com> Decode ptrace-induced SIGTRAP si_code values.

Example:

signal 5 (SIGTRAP), code -32763 (PTRACE_EVENT_STOP), fault addr 0x274e00005fb3

I'm tempted to say that %d isn't the best choice for si_code, but as long as
we're fully decoding all the values, I don't think it matters.

Bug: http://b/62856172
Test: manual debuggerd run
Change-Id: Ieeca690828e1e12f4162bbadece53f4aa7b9537a
/system/core/debuggerd/libdebuggerd/tombstone.cpp
62f5977d4a116addb80fe31c51e8b560a92ea6d7 08-May-2017 Josh Gao <jmgao@google.com> libdebuggerd: print the build fingerprint in fallback.

Bug: http://b/37798209
Test: killall -ABRT media.codec on internal
Change-Id: I0ff1fc5ca1e0bcec2c1b2553d6af7099deebfeda
/system/core/debuggerd/libdebuggerd/tombstone.cpp
77b00ed429a66d0943f0b6af0b57f08577816fe3 06-May-2017 Josh Gao <jmgao@google.com> libdebuggerd: implement fallback register dumping on arm/aarch64.

Bug: http://b/35439781
Test: killall -ABRT media.codec on internal
Change-Id: I7a23d3bfcf07ad584e677b2ef5fff28436ef0972
/system/core/debuggerd/libdebuggerd/tombstone.cpp
f5e568e653d0dd6bccc86d1a60db5a2573f75f0e 22-Mar-2017 Christopher Ferris <cferris@google.com> Do not access device maps.

It's possible that a device map has memory controlled by a single entry
device driver. Thus, you can deadlock if a process is touching that
device memory and we try to unwind it and also touch that device memory.
Simply skip any attempts to step through, or get function names from
device memory maps.

Bug: 36130325

Test: Ran new unit tests, ran bionic unit tests, ran art ThreadStress.
Change-Id: Ibc62d7ec8106c619ee08968f05e04aea55d7cbfa
/system/core/debuggerd/libdebuggerd/tombstone.cpp
57f58f8e4a143f1208593c8b397b9a17d055dad0 16-Mar-2017 Josh Gao <jmgao@google.com> crash_dump: fetch process/thread names before dropping privileges.

Processes that don't have dumpable set to 1 cannot have their
process/thread names read by processes that don't have all of their
capabilities. Fetch these names in crash_dump before dropping
privileges.

Bug: http://b/36237221
Test: debuggerd_test
Test: debuggerd -b `pidof android.hardware.bluetooth@1.0-service`
Change-Id: I174769e7b3c1ea9f11f9c8cbdff83028a4225783
/system/core/debuggerd/libdebuggerd/tombstone.cpp
e1aa0ca58a2a356039047ffcc8a98d85d1bce8ed 02-Mar-2017 Josh Gao <jmgao@google.com> debuggerd_handler: implement missing fallback functionality.

Allow the fallback implementation to dump traces and create tombstones
in seccomped processes.

Bug: http://b/35858739
Test: debuggerd -b `pidof media.codec`; killall -ABRT media.codec
Change-Id: I381b283de39a66d8900f1c320d32497d6f2b4ec4
/system/core/debuggerd/libdebuggerd/tombstone.cpp
12b71294064e6dc0a225e19ce179e702f481d6a6 03-Mar-2017 Elliott Hughes <enh@google.com> Small debuggerd improvements.

Include the ABI in seccomp causes.

Slightly improved command-line usage information.

Fix crasher for seccomp failures.

Bug: N/A
Test: crasher
Change-Id: Ie419ecfe72ee4f5ccf49c927be18350a58a66a90
/system/core/debuggerd/libdebuggerd/tombstone.cpp
e73c932373e59e4c0351cc7a8bd8cc5b8910d87e 09-Feb-2017 Josh Gao <jmgao@google.com> libdebuggerd_handler: in-process crash dumping for seccomped processes.

Do an in-process unwind for processes that have PR_SET_NO_NEW_PRIVS
enabled.

Bug: http://b/34684590
Test: debuggerd_test, killall -ABRT media.codec
Change-Id: I62562ec2c419d6643970100ab1cc0288982a1eed
/system/core/debuggerd/libdebuggerd/tombstone.cpp
0ba535976f1ee871fe4beb3f718e00293f4e0094 02-Feb-2017 Elliott Hughes <enh@google.com> Better seccomp/kuser_helper diagnostics from debuggerd.

Also switch to Android.bp for crasher.

Bug: http://b/34629282 (seccomp)
Bug: http://b/34705831 (seccomp)
Bug: http://b/34884086 (kuser_helpers)
Test: manual
Change-Id: I8ee79c635518faeba751742919af69a505b5e3e1
/system/core/debuggerd/libdebuggerd/tombstone.cpp
cbe70cb0a8cb0171f3802273050e851a47b090ed 19-Oct-2016 Josh Gao <jmgao@google.com> debuggerd: advance our amazing bet.

Remove debuggerd in favor of a helper process that gets execed by
crashing processes.

Bug: http://b/30705528
Test: debuggerd_test
Change-Id: I9906c69473989cbf7fe5ea6cccf9a9c563d75906
/system/core/debuggerd/libdebuggerd/tombstone.cpp