[Bug sanitizer/80498] Simple program with address sanitizer and regex hangs
gcc at zutt dot org
gcc-bugzilla@gcc.gnu.org
Mon Apr 24 09:58:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80498
--- Comment #7 from jonne <gcc at zutt dot org> ---
I compiled with -S and looked at m.s.
I'm not sure, but my main function could be this (I found this code in m.s, by
searching for 'main', lines 4058 - 4095):
lC6:
.ascii "foo test 123\0"
.space 51
.text
.globl _main
_main:
LASANPC4457:
LFB4457:
.loc 20 19 0
pushq %rbp
LCFI156:
movq %rsp, %rbp
LCFI157:
pushq %rbx
subq $72, %rsp
LCFI158:
movl %edi, -68(%rbp)
movq %rsi, -80(%rbp)
LEHB2:
.loc 20 20 0
call __Z4testv
LEHE2:
.loc 20 21 0
leaq -49(%rbp), %rax
movq %rax, %rdi
call __ZNSaIcEC1Ev
leaq -49(%rbp), %rdx
leaq -48(%rbp), %rax
leaq lC6(%rip), %rsi
movq %rax, %rdi
LEHB3:
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EPKcRKS3_
LEHE3:
.loc 20 21 0 is_stmt 0
leaq -48(%rbp), %rax
movq %rax, %rdi
LEHB4:
call __Z1aRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
More information about the Gcc-bugs
mailing list