platform_system_core/debuggerd
Mitch Phillips 70aa219034 [gwp-asan] fix tests under clang coverage, and extend invariants
1. Fixes this test under clang coverage, which is run under presubmit
   for TEST_MAPPING files. When we spawn under a minijail, and the
   process exited normally (which is the case for recoverable), clang
   coverage would use atexit handlers to dump some stuff using banned
   prctl's and other syscalls. Instead of allow-listing them all which
   sounds like a huge pain, call _exit() which skips those handlers.

2. Extends the invariant testing to make sure that recoverable GWP-ASan
   recovers both the first time, and a second time in a different slot.

Bug: N/A
Test: CLANG_COVERAGE=true NATIVE_COVERAGE_PATHS="*" atest debuggerd_test
Change-Id: I6059e21db4c2898b1c9777a00d2a54497d80ef79
2023-02-22 12:27:37 -08:00
..
client debuggerd_client: also log errors to the dump file. 2021-06-29 11:59:14 -07:00
common/include Reland protobuf tombstones. 2021-01-26 17:55:17 -08:00
crasher Suppress clang-tidy on crasher.cpp 2022-12-05 11:28:40 -08:00
handler Recoverable GWP-ASan: Don't tell ActivityManager 2023-02-07 17:06:32 -08:00
include/debuggerd Recoverable GWP-ASan: Don't tell ActivityManager 2023-02-07 17:06:32 -08:00
libdebuggerd Display offset in backtraces if necessary. 2023-01-31 17:53:45 -08:00
proto Add tomstone proto support for riscv64 2022-10-12 22:31:45 +00:00
rust/tombstoned_client Make some debuggerd libraries available in apex com.android.virt 2022-04-05 15:55:16 +00:00
seccomp_policy Add seccomp policy for riscv64 crash_dump 2022-10-12 22:31:39 +00:00
test_permissive_mte Disable clang-tidy on crash test. 2023-01-03 15:58:29 -08:00
tombstoned Switch to tombstoned.microdroid 2022-10-24 15:56:33 +00:00
.clang-format
Android.bp Add recoverable GWP-ASan. 2023-02-01 15:25:29 -08:00
crash_dump.cpp Recoverable GWP-ASan: Don't tell ActivityManager 2023-02-07 17:06:32 -08:00
crash_test.cpp Add a test to verify the dex_pc is correct. 2021-09-15 22:14:28 +00:00
crash_test.h Add a test to verify the dex_pc is correct. 2021-09-15 22:14:28 +00:00
debuggerd.cpp Always use main thread pid for manual dumping. 2021-07-30 14:08:03 -07:00
debuggerd_benchmark.cpp
debuggerd_test.cpp [gwp-asan] fix tests under clang coverage, and extend invariants 2023-02-22 12:27:37 -08:00
MODULE_LICENSE_APACHE2
OWNERS Remove jmgao from OWNERS files. 2021-08-10 21:42:14 -07:00
pbtombstone.cpp Reland protobuf tombstones. 2021-01-26 17:55:17 -08:00
protocol.h Recoverable GWP-ASan: Don't tell ActivityManager 2023-02-07 17:06:32 -08:00
TEST_MAPPING Add hwasan presubmit for debuggerd. 2022-04-18 20:27:52 +00:00
util.cpp Fix fallback paths for dumping threads. 2022-05-27 13:05:56 -07:00
util.h Dump threads in tombstone fallback path. 2022-02-16 15:02:38 -08:00