platform_system_core/debuggerd
Christopher Ferris 2038cc7633 Add a test to verify the dex_pc is correct.
The libunwindstack code will attempt to dlopen the libdexfile.so
when a dex pc is found. Unfortunately, this failed since that
library was not properly listed as a runtime library. To make
sure this doesn't happen again, add an end to end test that
will create a dex pc frame, and will verify the correct
dex function name is in that frame.

Bug: 199043576

Test: Unit test passes on arm/aarch64/x86/x86_64.
Test: Removed the runtime_libs of libdexfile from libunwindstack
Test: and verified the new test fails.
Change-Id: I3a11f9ee44e06e37a547d193b04f7fbb90ccfe0a
2021-09-15 22:14:28 +00: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 Always use main thread pid for manual dumping. 2021-07-30 14:08:03 -07: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 Add fault address marker in proto to tombstone. 2021-08-23 16:25:13 -07:00
proto [MTE] Add a HWASan-style tag dump to tombstones. 2021-06-28 15:53:10 -07:00
seccomp_policy Allow another prctl call. 2021-04-16 13:35:16 -07:00
tombstoned Remove double check of fd value. 2021-09-01 13:36:03 -07:00
.clang-format Remove extraneous .clang-format files 2017-03-14 14:06:31 -07:00
Android.bp Add libdexfile runtime dependency of libdexfile_support (reland). 2021-09-01 13:27:48 +01:00
crash_dump.cpp crash_dump: avoid misleading error messages. 2021-06-21 12:39:40 -07: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: add pause time benchmark. 2017-12-19 16:36:04 -08:00
debuggerd_test.cpp Add a test to verify the dex_pc is correct. 2021-09-15 22:14:28 +00:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
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 debuggerd: store commandline instead of process name. 2021-03-30 12:15:56 -07:00
util.h debuggerd: store commandline instead of process name. 2021-03-30 12:15:56 -07:00