[Bug sanitizer/56393] SIGSEGV when -fsanitize=address and dynamic lib with global objects

kcc at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 19 14:11:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56393

--- Comment #3 from Kostya Serebryany <kcc at gcc dot gnu.org> 2013-02-19 14:11:32 UTC ---
Looks like __asan_init is not called early enough. 
To confirm, run 
  ASAN_OPTIONS=verbosity=1 ./a.out
if __asan_init is called it should print something like this: 

==9255== Parsed ASAN_OPTIONS: verbosity=1
==9255== AddressSanitizer: libc interceptors initialized
|| `[0x200000000000, 0x7fffffffffff]` || HighMem    ||
...

If you don't see this, the crash happens before __asan_init. 

Does this happen with clang? 

(Or, can you give the exact instructions on how to install boost 1.53?)



More information about the Gcc-bugs mailing list