ramosian-glider / sanitizers

0 stars 0 forks source link

MemsetWildAddressTest fails on Android #113

Open ramosian-glider opened 9 years ago

ramosian-glider commented 9 years ago

Originally reported on Google Code with ID 112

MemsetWildAddressTest fails when ASan is built with Android NDK:

Death test: libc_memset((void*)((0) + kPageSize), 0, 100)
    Result: died but not with expected error.
  Expected: unknown-crash.*low shadow
Actual msg:
[  DEATH   ] =================================================================
[  DEATH   ] ==11531== ERROR: AddressSanitizer unknown-crash on address 0x00001000
at pc 0x40329bbc bp 0xbecd9828 sp 0xbecd9810
[  DEATH   ] WRITE of size 1 at 0x00001000 thread T0
[  DEATH   ]     #0 0x4032d7eb (/data/local/asan_test/libclang_rt.asan-arm-android.so+0xc7eb)
[  DEATH   ]     #1 0x4032fb17 (/data/local/asan_test/libclang_rt.asan-arm-android.so+0xeb17)
[  DEATH   ]     #2 0x40329bd7 (/data/local/asan_test/libclang_rt.asan-arm-android.so+0x8bd7)
[  DEATH   ] ==11531== AddressSanitizer CHECK failed: build/llvm/projects/compiler-rt/lib/asan/asan_report.cc:136
"((0 && "Address is not in memory and not in shadow?")) != (0)" (0x0, 0x0)
[  DEATH   ]     #0 0x4032d7eb (/data/local/asan_test/libclang_rt.asan-arm-android.so+0xc7eb)
[  DEATH   ]     #1 0x40330c77 (/data/local/asan_test/libclang_rt.asan-arm-android.so+0xfc77)
[  DEATH   ]     #2 0x4033296f (/data/local/asan_test/libclang_rt.asan-arm-android.so+0x1196f)
[  DEATH   ]     #3 0x4032f43f (/data/local/asan_test/libclang_rt.asan-arm-android.so+0xe43f)
[  DEATH   ]     #4 0x4032fb2b (/data/local/asan_test/libclang_rt.asan-arm-android.so+0xeb2b)
[  DEATH   ]     #5 0x40329bd7 (/data/local/asan_test/libclang_rt.asan-arm-android.so+0x8bd7)

Reported by eugenis@google.com on 2012-09-13 10:17:30

ramosian-glider commented 9 years ago

Reported by ramosian.glider on 2015-07-30 09:05:30

ramosian-glider commented 9 years ago
Adding Project:AddressSanitizer as part of GitHub migration.

Reported by ramosian.glider on 2015-07-30 09:06:55