HWASan 보고서 이해하기
Android 사이트 참고
HWASan 보고서 이해하기
예시 보고서
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/flame_hwasan/flame:Tiramisu/MASTER/7956676:userdebug/dev-keys'
Revision: 'DVT1.0'
ABI: 'arm64'
Timestamp: 2019-04-24 01:13:22+0000
pid: 11154, tid: 11154, name: [email protected] >>> /vendor/bin/hw/[email protected] <<<
signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
Abort message: '
#0 0x7240450c68 (/system/lib64/vndk-sp-R/libcutils.so+0x8c68)
#1 0x723dffd490 (/vendor/lib64/sensors.ssc.so+0x34490)
#2 0x723e0126e0 (/vendor/lib64/sensors.ssc.so+0x496e0)
[...]
[0x00433ae20040,0x00433ae20060) is a small unallocated heap chunk; size: 32 offset: 5
freed by thread T0 here:
#0 0x72404d1b18 (/system/lib64/libclang_rt.hwasan-aarch64-android.so+0x10b18)
#1 0x723af23040 (/vendor/lib64/libgralloccore.so+0x5040)
#2 0x723af23fa4 (/vendor/lib64/libgralloccore.so+0x5fa4)
[...]
previously allocated here:
#0 0x72404ce554 (/system/lib64/libclang_rt.hwasan-aarch64-android.so+0xd554)
#1 0x7240115654 (/apex/com.android.runtime/lib64/bionic/libc.so+0x43654)
#2 0x7240450ac8 (/system/lib64/vndk-sp-R/libcutils.so+0x8ac8)
[...]
hwasan_dev_note_heap_rb_distance: 1 1023
hwasan_dev_note_num_matching_addrs: 0
hwasan_dev_note_num_matching_addrs_4b: 0
Thread: T0 0x006a00002000 stack: [0x007fc1064000,0x007fc1864000) sz: 8388608 tls: [0x00737702ffc0,0x007377033000)
Memory tags around the buggy address (one tag corresponds to 16 bytes):
0x006f33ae1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x006f33ae1f90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x006f33ae1fa0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x006f33ae1fb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x006f33ae1fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x006f33ae1fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x006f33ae1fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x006f33ae1ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x006f33ae2000: 08 00 08 00 [83] 00 00 00 00 00 00 00 00 00 00 00
0x006f33ae2010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x006f33ae2020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x006f33ae2030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x006f33ae2040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x006f33ae2050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x006f33ae2060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x006f33ae2070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x006f33ae2080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Tags for short granules around the buggy address (one tag corresponds to 16 bytes):
0x006f33ae1ff0: .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
=>0x006f33ae2000: 72 .. d0 .. [..] .. .. .. .. .. .. .. .. .. .. ..
0x006f33ae2010: .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
See https://clang.llvm.org/docs/HardwareAssistedAddressSanitizerDesign.html#short-granules for a description of short granule tags
Registers where the failure occurred (pc 0x00623ae2a9cc):
x0 0000007fc18623ec x1 5b0000433ae20045 x2 0000000000000013 x3 ffffffffffffffff
x4 ffffffffffffffff x5 0000007fc1861da3 x6 6f7420676e696f47 x7 45522061206f6420
x8 0000000000000000 x9 0200006b00000000 x10 00000007fc18623f x11 5b0000433ae20040
x12 6f64206f7420676e x13 0a44414552206120 x14 0000000000000010 x15 ffffffffffffffff
x16 000000737169ac94 x17 0000000000000007 x18 0000007377bd8000 x19 0000007fc1862498
x20 0200006b00000000 x21 0000007fc18624a8 x22 0000000000000001 x23 0000000000000000
x24 0000000000000000 x25 0000000000000000 x26 0000000000000000 x27 0000000000000000
x28 0000000000000000 x29 0000007fc1862410 x30 000000623ae2a9d0 sp 0000007fc18623d0
SUMMARY: HWAddressSanitizer: tag-mismatch (/system/lib64/vndk-sp-R/libcutils.so+0x8c68)
[ … regular crash dump follows …]섹션
액세스 오류
액세스 스택 트레이스
원인
메모리 정보
버그 유형
원인
보고서 형식
할당 해제 스택 트레이스
할당 스택 트레이스
고급 디버깅 정보
메모리 태그 덤프
레지스터 덤프
기호화
최초 설정: llvm-symbolizer 설치
기호 파일 가져오기
기호화
스택 보고서 이해하기
문제 해결
'HWAddressSanitizer can not describe address in more detail.'
'nested bug in the same thread'
출처 : 바로가기
Last updated
