1# Copyright (C) 2014 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15arm = """ 16Build fingerprint: 'Android/aosp_arm/generic_arm:4.4.3.43.43.43/AOSP/enh06302258:eng/test-keys' 17Revision: '0' 18ABI: 'arm' 19signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 20 r0 00000000 r1 00002dd9 r2 00000006 r3 00000000 21 r4 f710edd8 r5 00000006 r6 00000000 r7 0000010c 22 r8 f71b9df4 r9 ab0b5028 sl f7175695 fp f710edd0 23 ip 00002dd9 sp f710ed18 lr f7175ef1 pc f719a4e0 cpsr 60070010 24 d0 ffffffffffffffff d1 0000000000000031 25 d2 0000000000000037 d3 0000000000000033 26 d4 0000000000000000 d5 0000000000000000 27 d6 0000000000000000 d7 0000000000000000 28 d8 0000000000000000 d9 0000000000000000 29 d10 0000000000000000 d11 0000000000000000 30 d12 0000000000000000 d13 0000000000000000 31 d14 0000000000000000 d15 0000000000000000 32 d16 0000000000000000 d17 0000000000000fff 33 d18 0000000000000000 d19 0000000000000000 34 d20 0000000000000000 d21 0000000000000000 35 d22 0000000000000000 d23 0000000000000000 36 d24 0000000000000000 d25 0000000000000000 37 d26 0000000000000000 d27 0000000000000000 38 d28 0000000000000000 d29 0000000000000000 39 d30 0000000000000000 d31 0000000000000000 40 scr 00000000 41 42backtrace: 43 #00 pc 000374e0 /system/lib/libc.so (tgkill+12) 44 #01 pc 00012eed /system/lib/libc.so (pthread_kill+52) 45 #02 pc 00013997 /system/lib/libc.so (raise+10) 46 #03 pc 0001047d /system/lib/libc.so (__libc_android_abort+36) 47 #04 pc 0000eb1c /system/lib/libc.so (abort+4) 48 #05 pc 00000c6f /system/xbin/crasher 49 #06 pc 000126b3 /system/lib/libc.so (__pthread_start(void*)+30) 50 #07 pc 000107fb /system/lib/libc.so (__start_thread+6) 51""" 52 53arm64 = """ 54Build fingerprint: 'Android/aosp_arm64/generic_arm64:4.4.3.43.43.43/AOSP/enh06302258:eng/test-keys' 55Revision: '0' 56ABI: 'arm64' 57signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 58 x0 0000000000000000 x1 0000000000002df1 x2 0000000000000006 x3 000000559dc73040 59 x4 ffffffffffffffff x5 0000000000000005 x6 0000000000000001 x7 0000000000000020 60 x8 0000000000000083 x9 0000005563d21000 x10 0101010101010101 x11 0000000000000001 61 x12 0000000000000001 x13 0000005563d21000 x14 0000005563d21000 x15 0000000000000000 62 x16 0000005563d32f20 x17 0000000000000001 x18 0000000000000000 x19 000000559dc73040 63 x20 0000007f844dcbb0 x21 0000007f84639000 x22 0000000000000000 x23 0000000000000006 64 x24 0000007f845b2000 x25 0000007ff8f33bc0 x26 0000007f843df000 x27 000000559dc730c0 65 x28 0000007f84639788 x29 0000007f844dc9c0 x30 0000007f845b38c4 66 sp 0000007f844dc9c0 pc 0000007f845f28e0 67 v0 2f2f2f2f2f2f2f2f v1 5f6474656e62696c v2 000000000000006f v3 0000000000000000 68 v4 8020080280200800 v5 0000000000000000 v6 0000000000000000 v7 8020080280200802 69 v8 0000000000000000 v9 0000000000000000 v10 0000000000000000 v11 0000000000000000 70 v12 0000000000000000 v13 0000000000000000 v14 0000000000000000 v15 0000000000000000 71 v16 4010040140100401 v17 0000aaa800000000 v18 8020080280200800 v19 0000000000000000 72 v20 0000000000000000 v21 0000000000000000 v22 0000000000000000 v23 0000000000000000 73 v24 0000000000000000 v25 0000000000000000 v26 0000000000000000 v27 0000000000000000 74 v28 0000000000000000 v29 0000000000000000 v30 0000000000000000 v31 0000000000000000 75 76backtrace: 77 #00 pc 00000000000588e0 /system/lib64/libc.so (tgkill+8) 78 #01 pc 00000000000198c0 /system/lib64/libc.so (pthread_kill+160) 79 #02 pc 000000000001ab34 /system/lib64/libc.so (raise+28) 80 #03 pc 00000000000148bc /system/lib64/libc.so (abort+60) 81 #04 pc 00000000000016e0 /system/xbin/crasher64 82 #05 pc 00000000000017f0 /system/xbin/crasher64 83 #06 pc 0000000000018958 /system/lib64/libc.so (__pthread_start(void*)+52) 84 #07 pc 0000000000014e90 /system/lib64/libc.so (__start_thread+16) 85""" 86 87x86 = """ 88Build fingerprint: 'Android/aosp_x86_64/generic_x86_64:4.4.3.43.43.43/AOSP/enh06302258:eng/test-keys' 89Revision: '0' 90ABI: 'x86' 91pid: 1566, tid: 1568, name: crasher >>> crasher <<< 92signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 93 eax 00000000 ebx 0000061e ecx 00000620 edx 00000006 94 esi f7679dd8 edi 00000000 95 xcs 00000023 xds 0000002b xes 0000002b xfs 00000003 xss 0000002b 96 eip f7758ea6 ebp 00000620 esp f7679c60 flags 00000282 97 98backtrace: 99 #00 pc 00076ea6 /system/lib/libc.so (tgkill+22) 100 #01 pc 0001dc8b /system/lib/libc.so (pthread_kill+155) 101 #02 pc 0001f294 /system/lib/libc.so (raise+36) 102 #03 pc 00017a04 /system/lib/libc.so (abort+84) 103 #04 pc 00001099 /system/xbin/crasher 104 #05 pc 0001cd58 /system/lib/libc.so (__pthread_start(void*)+56) 105 #06 pc 00018169 /system/lib/libc.so (__start_thread+25) 106 #07 pc 0000ed76 /system/lib/libc.so (__bionic_clone+70) 107""" 108 109x86_64 = """ 110Build fingerprint: 'Android/aosp_x86_64/generic_x86_64:4.4.3.43.43.43/AOSP/enh06302258:eng/test-keys' 111Revision: '0' 112ABI: 'x86_64' 113pid: 1608, tid: 1610, name: crasher64 >>> crasher64 <<< 114signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 115 rax 0000000000000000 rbx 000000000000064a rcx ffffffffffffffff rdx 0000000000000006 116 rsi 000000000000064a rdi 0000000000000648 117 r8 0000000000000001 r9 00007fe218110c98 r10 0000000000000008 r11 0000000000000206 118 r12 0000000000000000 r13 0000000000000006 r14 00007fe218111ba0 r15 0000000000000648 119 cs 0000000000000033 ss 000000000000002b 120 rip 00007fe218201807 rbp 00007fe218111bb0 rsp 00007fe218111a18 eflags 0000000000000206 121 122backtrace: 123 #00 pc 0000000000077807 /system/lib64/libc.so (tgkill+7) 124 #01 pc 000000000002243f /system/lib64/libc.so (pthread_kill+143) 125 #02 pc 0000000000023551 /system/lib64/libc.so (raise+17) 126 #03 pc 000000000001ce6d /system/lib64/libc.so (abort+61) 127 #04 pc 0000000000001385 /system/xbin/crasher64 128 #05 pc 00000000000014a8 /system/xbin/crasher64 129 #06 pc 00000000000215ae /system/lib64/libc.so (__pthread_start(void*)+46) 130 #07 pc 000000000001d3eb /system/lib64/libc.so (__start_thread+11) 131 #08 pc 00000000000138f5 /system/lib64/libc.so (__bionic_clone+53) 132""" 133 134riscv64 = """ 135Build fingerprint: 'generic/aosp_riscv64/vsoc_riscv64:4.4.3.43.43.43/AOSP/eng.prasha.20230307.172954:eng/test-keys' 136Revision: '0' 137ABI: 'riscv64' 138pid: 794, tid: 794, name: crasher64 >>> crasher64 <<< 139signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr -------- 140 gp ffffffff81dabe60 tp 00ffffff1aae0050 t0 000000000002ba76 t1 00ffffff140d598c 141 t2 00000000d82989b1 t3 00ffffff1407e570 t4 00ffffff1ac2d000 t5 0000000000000018 142 t6 0000000000000018 s0 000000000000031a s1 000000000000031a s2 ffffffffffffffff 143 s3 00ffffffca72dd20 s4 0000000000000000 s5 00fffff499ead378 s6 00fffff469ea7b90 144 s7 00aaaaaba6d2b2c8 s8 00fffff5fa3a1588 s9 0000000000000000 s10 0000000000000000 145 s11 0000000000000000 a0 0000000000000000 a1 000000000000031a a2 0000000000000006 146 a3 00ffffffca72da00 a4 0000000000000000 a5 000000007fffffff a6 000000007fffffff 147 a7 00000000000000f0 148 pc 00ffffff1407e582 ra 00ffffff140811d2 sp 00ffffffca72d9d0 149 150backtrace: 151 #00 pc 0000000000049582 /apex/com.android.runtime/lib64/bionic/libc.so (syscall+18) 152 #01 pc 000000000004c1ce /apex/com.android.runtime/lib64/bionic/libc.so (abort+98) 153 #02 pc 0000000000004012 /system/bin/crasher64 (maybe_abort+40) 154 #03 pc 000000000000457c /system/bin/crasher64 (do_action+966) 155 #04 pc 0000000000005528 /system/bin/crasher64 (main+78) 156 #05 pc 0000000000047cd4 /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+80) 157""" 158 159libmemunreachable = """ 160 Unreachable memory 161 48 bytes in 2 unreachable allocations 162 ABI: 'arm' 163 164 24 bytes unreachable at a11e6748 165 and 24 similar unreachable bytes in 1 allocation 166 contents: 167 a11e6748: 63 6f 6d 2e 61 6e 64 72 6f 69 64 2e 73 79 73 74 com.android.syst 168 a11e6758: 65 6d 75 69 00 00 00 00 emui.... 169 #00 pc 000076ae /system/lib/libcutils.so (set_process_name+45) 170 #01 pc 000989d6 /system/lib/libandroid_runtime.so (android_os_Process_setArgV0(_JNIEnv*, _jobject*, _jstring*)+125) 171""" 172 173# This is a long crash in ASAN format, which does not pad frame numbers. This should be used 174# in a test to ensure that the stack is not split into two (see stack_core's test_long_asan_crash). 175long_asan_crash = """ 176Build fingerprint: 'Android/aosp_arm/generic_arm:4.4.3.43.43.43/AOSP/enh06302258:eng/test-keys' 177ABI: 'arm' 178 179 #0 0x727d4dfdaf (/system/lib/libclang_rt.asan-arm-android.so+0x31daf) 180 181 #1 0x727d4e00af (/system/lib/libclang_rt.asan-arm-android.so+0x320af) 182 183 #2 0x72778db0cf (/data/lib/libc.so+0x740cf) 184 185 #3 0x725688a66f (/does/not/matter/a.so+0x1066f) 186 187 #4 0x72568a02af (/does/not/matter/a.so+0x262af) 188 189 #5 0x725689e313 (/does/not/matter/a.so+0x24313) 190 191 #6 0x72568a95eb (/does/not/matter/a.so+0x2f5eb) 192 193 #7 0x725688de6f (/does/not/matter/a.so+0x13e6f) 194 195 #8 0x72778ceeff (/does/not/matter/a.so+0x67eff) 196 197 #9 0x7277884983 (/does/not/matter/a.so+0x1d983) 198 199 #10 0x7277884983 (/does/not/matter/a.so+0x1d983) 200""" 201