Stack: Fix tool for long stacks
To make the comparison meaningful, better compare integrals rather than strings. Test: ./stack_core.py Change-Id: Ie24bea75d7c0bc57a1b7683b91e62fafead70341
This commit is contained in:
@@ -199,3 +199,32 @@ libmemunreachable = """
|
||||
#00 pc 000076ae /system/lib/libcutils.so (set_process_name+45)
|
||||
#01 pc 000989d6 /system/lib/libandroid_runtime.so (android_os_Process_setArgV0(_JNIEnv*, _jobject*, _jstring*)+125)
|
||||
"""
|
||||
|
||||
# This is a long crash in ASAN format, which does not pad frame numbers. This should be used
|
||||
# in a test to ensure that the stack is not split into two (see stack_core's test_long_asan_crash).
|
||||
long_asan_crash = """
|
||||
Build fingerprint: 'Android/aosp_arm/generic_arm:4.4.3.43.43.43/AOSP/enh06302258:eng/test-keys'
|
||||
ABI: 'arm'
|
||||
|
||||
#0 0x727d4dfdaf (/system/lib/libclang_rt.asan-arm-android.so+0x31daf)
|
||||
|
||||
#1 0x727d4e00af (/system/lib/libclang_rt.asan-arm-android.so+0x320af)
|
||||
|
||||
#2 0x72778db0cf (/data/lib/libc.so+0x740cf)
|
||||
|
||||
#3 0x725688a66f (/does/not/matter/a.so+0x1066f)
|
||||
|
||||
#4 0x72568a02af (/does/not/matter/a.so+0x262af)
|
||||
|
||||
#5 0x725689e313 (/does/not/matter/a.so+0x24313)
|
||||
|
||||
#6 0x72568a95eb (/does/not/matter/a.so+0x2f5eb)
|
||||
|
||||
#7 0x725688de6f (/does/not/matter/a.so+0x13e6f)
|
||||
|
||||
#8 0x72778ceeff (/does/not/matter/a.so+0x67eff)
|
||||
|
||||
#9 0x7277884983 (/does/not/matter/a.so+0x1d983)
|
||||
|
||||
#10 0x7277884983 (/does/not/matter/a.so+0x1d983)
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user