i386 ABI mandates that exported functions setup pointer to GOT table in EBX
register before calling any external symbols from PLT. Otherwise calls to these
functions from other shared objects are likely to fail (because they will use
pointers to invalid GOTs which will likely cause a segfault).
I suggest to setup EBX right before __asan_report_store1@PLT to avoid slowing
down the fast path.
What steps will reproduce the problem?
1. call __sanitizer_sanitize_store1 from DSO
What is the expected output? What do you see instead?
==26920==ERROR: AddressSanitizer: SEGV on unknown address 0x00000000 (pc
0x00000000 sp 0xffffb69c bp 0xffffb6b4 T0)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV ??:0 ??
==26920==ABORTING
Original issue reported on code.google.com by tetra2...@gmail.com on 31 Mar 2014 at 3:36
Original issue reported on code.google.com by
tetra2...@gmail.com
on 31 Mar 2014 at 3:36