platform_system_core/debuggerd
Josh Gao 48383c806a tombstoned: don't create tombstones for failed dumps.
Instead of creating tombstone FDs in place and passing them out to
crash_dump directly, create them as O_TMPFILEs and link them into place
when crash_dump reports success, to avoid creating empty tombstones
in cases like an aborting thread racing with another thread that
manages to cleanly exit_group before the dump finishes.

Bug: http://b/77729983
Test: debuggerd_test
Test: adb shell 'for x in `seq 0 50`; do crasher; done'
Change-Id: I31ce4fd4a524abf8bde57152450209483d9d0ba9
2018-04-19 14:33:18 -07:00
..
client crash_dump: lower THREAD_COUNT in debuggerd_client.race for low-speed devices 2017-06-23 08:59:22 +09:00
common/include tombstoned: allow intercepts for java traces. 2017-05-31 10:35:32 +01:00
crasher Change seccomp to the system filter 2017-12-22 14:35:28 -08:00
handler debuggerd_fallback: don't recursively abort. 2018-02-22 16:31:38 -08:00
include/debuggerd tombstoned: allow intercepts for java traces. 2017-05-31 10:35:32 +01:00
libdebuggerd debuggerd: remove maximum abort message length. 2018-04-13 17:34:20 -07:00
seccomp_policy debuggerd seccomp: explain why we define PROT_READ/WRITE. 2018-02-18 23:50:19 -08:00
tombstoned tombstoned: don't create tombstones for failed dumps. 2018-04-19 14:33:18 -07:00
.clang-format Remove extraneous .clang-format files 2017-03-14 14:06:31 -07:00
Android.bp bpfmt. 2018-02-16 17:58:14 -08:00
Android.mk Mark crash_dump.policy as not supported on mips 2018-02-27 15:35:11 -08:00
crash_dump.cpp crash_dump: fork a copy of the target's address space. 2017-12-15 14:11:12 -08:00
debuggerd.cpp Remove unnecessary SELinux dependencies 2017-07-01 07:41:48 -07:00
debuggerd_benchmark.cpp debuggerd: add pause time benchmark. 2017-12-19 16:36:04 -08:00
debuggerd_test.cpp debuggerd: remove maximum abort message length. 2018-04-13 17:34:20 -07:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
OWNERS Add OWNERS. 2017-12-07 13:30:03 -08:00
protocol.h crash_dump: fork a copy of the target's address space. 2017-12-15 14:11:12 -08:00
util.cpp crash_dump: fork a copy of the target's address space. 2017-12-15 14:11:12 -08:00
util.h crash_dump: fork a copy of the target's address space. 2017-12-15 14:11:12 -08:00