[Bug sanitizer/80498] Simple program with address sanitizer and regex hangs
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Apr 24 09:19:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80498
--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
My constructor for main looks as follows:
_GLOBAL__sub_I_00099_1_main:
.LFB7137:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
call __asan_init
call __asan_version_mismatch_check_v6
movl $218, %esi
movl $.LASAN0, %edi
call __asan_register_globals
popq %rbp
.cfi_def_cfa 7, 8
ret
.cfi_endproc
Please take a look in gdb where are you in the function (you need to use 'up'
and then either 'layout asm' or 'display/i $pc1: x/i $pc').
Do you build GCC with debugging symbols. It's strange as you should see call to
libasan library, as seen here:
#0 0x00007ffff6f0ad80 in __asan_init () from /usr/lib64/libasan.so.3
#1 0x0000000000404500 in _GLOBAL__sub_I_00099_1_main () at pr80498.cpp:11
More information about the Gcc-bugs
mailing list