platform_system_core/debuggerd
Christopher Ferris b999b82eb7 Dump threads in tombstone fallback path.
When dumping a tombstone using the fallback path, only the main
thread was showing up. Modify the code to dump the threads using
a slightly different path for the tombstone generation code.

In addition, while looking at this code, two MTE variables were
not set in the tombstone fallback code. Added those variables
so MTE devices will work properly in this fallback path.

Modified the tombstone unit tests for seccomp to have
multiple threads and verify those threads show up in the tombstone.

Bug: 208933016

Test: Ran unit tests.
Test: Ran debuggerd <PID> on a privileged process and verified
Test: all threads dumped. Also verified that the tagged_addr_ctrl
Test: variable is present on the raven device.
Change-Id: I16eadb0cc2c37a7dbc5cac16af9b5051008b5127
2022-02-16 15:02:38 -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 Ignore deliberate free() of non-heap memory 2021-03-16 18:16:15 -07:00
handler Dump threads in tombstone fallback path. 2022-02-16 15:02:38 -08:00
include/debuggerd Teach debuggerd to pass the secondary ring buffer to __scudo_get_error_info(). 2021-02-12 12:30:52 -08:00
libdebuggerd Dump threads in tombstone fallback path. 2022-02-16 15:02:38 -08:00
proto debuggerd: add the PAC keys to the tombstones. 2022-01-13 15:03:19 -08:00
seccomp_policy Dump threads in tombstone fallback path. 2022-02-16 15:02:38 -08:00
tombstoned Remove double check of fd value. 2021-09-01 13:36:03 -07:00
.clang-format
Android.bp Make crash_dump.policy a dependency of crash_dump. 2022-02-02 17:02:50 -08:00
crash_dump.cpp debuggerd: add the PAC keys to the tombstones. 2022-01-13 15:03:19 -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 Dump threads in tombstone fallback path. 2022-02-16 15:02:38 -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 Teach debuggerd to pass the secondary ring buffer to __scudo_get_error_info(). 2021-02-12 12:30:52 -08:00
TEST_MAPPING Split up the system/core/ TEST_MAPPING. 2021-08-16 16:37:10 -07:00
util.cpp Dump threads in tombstone fallback path. 2022-02-16 15:02:38 -08:00
util.h Dump threads in tombstone fallback path. 2022-02-16 15:02:38 -08:00