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 |
||
|---|---|---|
| .. | ||
| client | ||
| common/include | ||
| crasher | ||
| handler | ||
| include/debuggerd | ||
| libdebuggerd | ||
| seccomp_policy | ||
| tombstoned | ||
| .clang-format | ||
| Android.bp | ||
| Android.mk | ||
| crash_dump.cpp | ||
| debuggerd.cpp | ||
| debuggerd_benchmark.cpp | ||
| debuggerd_test.cpp | ||
| MODULE_LICENSE_APACHE2 | ||
| OWNERS | ||
| protocol.h | ||
| util.cpp | ||
| util.h | ||