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 87mips = """ 88Build fingerprint: 'Android/aosp_mips/generic_mips:4.4.3.43.43.43/AOSP/enh06302258:eng/test-keys' 89Revision: '0' 90ABI: 'mips' 91pid: 958, tid: 960, name: crasher >>> crasher <<< 92signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 93 zr 00000000 at 802babc0 v0 00000000 v1 77b99dd0 94 a0 000003be a1 000003c0 a2 00000006 a3 00000000 95 t0 00000000 t1 9e7f5440 t2 00000020 t3 ffffff18 96 t4 77a9c000 t5 00000001 t6 00000000 t7 00000000 97 s0 000003c0 s1 77b99dd8 s2 00000000 s3 00000006 98 s4 77db2028 s5 000003be s6 77c39fa8 s7 77b99dd0 99 t8 00000000 t9 77c89e80 k0 00000000 k1 00000000 100 gp 77cce350 sp 77b99c78 s8 77db2020 ra 77c3b48c 101 hi 00000000 lo 00000008 bva 7fff7008 epc 77c89e94 102 103backtrace: 104 #00 pc 00067e94 /system/lib/libc.so (tgkill+20) 105 #01 pc 0001948c /system/lib/libc.so (pthread_kill+244) 106 #02 pc 0001b0e8 /system/lib/libc.so (raise+60) 107 #03 pc 00012908 /system/lib/libc.so (abort+104) 108 #04 pc 000012a4 /system/xbin/crasher 109 #05 pc 00018008 /system/lib/libc.so (__pthread_start(void*)+96) 110 #06 pc 00013198 /system/lib/libc.so (__start_thread+36) 111""" 112 113mips64 = """ 114Build fingerprint: 'Android/aosp_mips64/generic_mips64:5.1.51/AOSP/agampe05040015:userdebug/test-keys' 115Revision: '1' 116ABI: 'mips64' 117pid: 342, tid: 342, name: crasher64 >>> crasher64 <<< 118signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 119 zr 0000000000000000 at 0000000000000001 v0 0000000000000000 v1 000000ffec1c6528 120 a0 0000000000000156 a1 0000000000000156 a2 0000000000000006 a3 0000000000000000 121 a4 000000000000ffff a5 fffffffffffffffc a6 0000000000000000 a7 0000000000000001 122 t0 0000000000000001 t1 0000000000000000 t2 0000000000000001 t3 0000000000000001 123 s0 0000000000000002 s1 000000ffec1c6538 s2 000000ffec1c6478 s3 0000000000000006 124 s4 0000000000100000 s5 000000fff1d44f98 s6 000000fff186c488 s7 0000000000000000 125 t8 ffffffffffff0000 t9 000000ffec01c2a0 k0 0000000000000000 k1 0000000000000000 126 gp 000000ffec0a6680 sp 000000ffff8c7150 s8 0000000000100206 ra 000000ffec016684 127 hi 0000000000000000 lo 0000000000000000 bva 000000ffffffe010 epc 000000ffec01c2a8 128 129backtrace: 130 #00 pc 00000000000832a8 /system/lib64/libc.so (tgkill+8) 131 #01 pc 000000000007d684 /system/lib64/libc.so (pthread_kill+116) 132 #02 pc 000000000002dd78 /system/lib64/libc.so (raise+56) 133 #03 pc 000000000002684c /system/lib64/libc.so (abort+92) 134 #04 pc 000000000000199c /system/xbin/crasher64 135 #05 pc 000000000002595c /system/lib64/libc.so (__libc_init+140) 136 #06 pc 0000000000000fd4 /system/xbin/crasher64 137 #07 pc 0000000000000f80 /system/xbin/crasher64 138""" 139 140x86 = """ 141Build fingerprint: 'Android/aosp_x86_64/generic_x86_64:4.4.3.43.43.43/AOSP/enh06302258:eng/test-keys' 142Revision: '0' 143ABI: 'x86' 144pid: 1566, tid: 1568, name: crasher >>> crasher <<< 145signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 146 eax 00000000 ebx 0000061e ecx 00000620 edx 00000006 147 esi f7679dd8 edi 00000000 148 xcs 00000023 xds 0000002b xes 0000002b xfs 00000003 xss 0000002b 149 eip f7758ea6 ebp 00000620 esp f7679c60 flags 00000282 150 151backtrace: 152 #00 pc 00076ea6 /system/lib/libc.so (tgkill+22) 153 #01 pc 0001dc8b /system/lib/libc.so (pthread_kill+155) 154 #02 pc 0001f294 /system/lib/libc.so (raise+36) 155 #03 pc 00017a04 /system/lib/libc.so (abort+84) 156 #04 pc 00001099 /system/xbin/crasher 157 #05 pc 0001cd58 /system/lib/libc.so (__pthread_start(void*)+56) 158 #06 pc 00018169 /system/lib/libc.so (__start_thread+25) 159 #07 pc 0000ed76 /system/lib/libc.so (__bionic_clone+70) 160""" 161 162x86_64 = """ 163Build fingerprint: 'Android/aosp_x86_64/generic_x86_64:4.4.3.43.43.43/AOSP/enh06302258:eng/test-keys' 164Revision: '0' 165ABI: 'x86_64' 166pid: 1608, tid: 1610, name: crasher64 >>> crasher64 <<< 167signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 168 rax 0000000000000000 rbx 000000000000064a rcx ffffffffffffffff rdx 0000000000000006 169 rsi 000000000000064a rdi 0000000000000648 170 r8 0000000000000001 r9 00007fe218110c98 r10 0000000000000008 r11 0000000000000206 171 r12 0000000000000000 r13 0000000000000006 r14 00007fe218111ba0 r15 0000000000000648 172 cs 0000000000000033 ss 000000000000002b 173 rip 00007fe218201807 rbp 00007fe218111bb0 rsp 00007fe218111a18 eflags 0000000000000206 174 175backtrace: 176 #00 pc 0000000000077807 /system/lib64/libc.so (tgkill+7) 177 #01 pc 000000000002243f /system/lib64/libc.so (pthread_kill+143) 178 #02 pc 0000000000023551 /system/lib64/libc.so (raise+17) 179 #03 pc 000000000001ce6d /system/lib64/libc.so (abort+61) 180 #04 pc 0000000000001385 /system/xbin/crasher64 181 #05 pc 00000000000014a8 /system/xbin/crasher64 182 #06 pc 00000000000215ae /system/lib64/libc.so (__pthread_start(void*)+46) 183 #07 pc 000000000001d3eb /system/lib64/libc.so (__start_thread+11) 184 #08 pc 00000000000138f5 /system/lib64/libc.so (__bionic_clone+53) 185""" 186 187libmemunreachable = """ 188 Unreachable memory 189 48 bytes in 2 unreachable allocations 190 ABI: 'arm' 191 192 24 bytes unreachable at a11e6748 193 and 24 similar unreachable bytes in 1 allocation 194 contents: 195 a11e6748: 63 6f 6d 2e 61 6e 64 72 6f 69 64 2e 73 79 73 74 com.android.syst 196 a11e6758: 65 6d 75 69 00 00 00 00 emui.... 197 #00 pc 000076ae /system/lib/libcutils.so (set_process_name+45) 198 #01 pc 000989d6 /system/lib/libandroid_runtime.so (android_os_Process_setArgV0(_JNIEnv*, _jobject*, _jstring*)+125) 199""" 200 201# This is a long crash in ASAN format, which does not pad frame numbers. This should be used 202# in a test to ensure that the stack is not split into two (see stack_core's test_long_asan_crash). 203long_asan_crash = """ 204Build fingerprint: 'Android/aosp_arm/generic_arm:4.4.3.43.43.43/AOSP/enh06302258:eng/test-keys' 205ABI: 'arm' 206 207 #0 0x727d4dfdaf (/system/lib/libclang_rt.asan-arm-android.so+0x31daf) 208 209 #1 0x727d4e00af (/system/lib/libclang_rt.asan-arm-android.so+0x320af) 210 211 #2 0x72778db0cf (/data/lib/libc.so+0x740cf) 212 213 #3 0x725688a66f (/does/not/matter/a.so+0x1066f) 214 215 #4 0x72568a02af (/does/not/matter/a.so+0x262af) 216 217 #5 0x725689e313 (/does/not/matter/a.so+0x24313) 218 219 #6 0x72568a95eb (/does/not/matter/a.so+0x2f5eb) 220 221 #7 0x725688de6f (/does/not/matter/a.so+0x13e6f) 222 223 #8 0x72778ceeff (/does/not/matter/a.so+0x67eff) 224 225 #9 0x7277884983 (/does/not/matter/a.so+0x1d983) 226 227 #10 0x7277884983 (/does/not/matter/a.so+0x1d983) 228""" 229