[Bug sanitizer/78294] -fsanitize=thread broken
trippels at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Nov 11 08:11:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78294
--- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(gdb) up
#3 __tsan::Initialize (thr=thr@entry=0x7ffff6277780) at
../../../../gcc/libsanitizer/tsan/tsan_rtl.cc:331
331 ScopedIgnoreInterceptors ignore;
(gdb) disass
Dump of assembler code for function __tsan::Initialize(__tsan::ThreadState*):
0x00007ffff6f8afd0 <+0>: cmpb $0x0,0x278ff5(%rip) #
0x7ffff7203fcc <_ZZN6__tsan10InitializeEPNS_11ThreadStateEE14is_initialized>
0x00007ffff6f8afd7 <+7>: je 0x7ffff6f8afe0
<__tsan::Initialize(__tsan::ThreadState*)+16>
0x00007ffff6f8afd9 <+9>: repz retq
0x00007ffff6f8afdb <+11>: nopl 0x0(%rax,%rax,1)
0x00007ffff6f8afe0 <+16>: push %r15
0x00007ffff6f8afe2 <+18>: push %r14
0x00007ffff6f8afe4 <+20>: push %r13
0x00007ffff6f8afe6 <+22>: push %r12
0x00007ffff6f8afe8 <+24>: push %rbp
0x00007ffff6f8afe9 <+25>: push %rbx
0x00007ffff6f8afea <+26>: sub $0x48,%rsp
0x00007ffff6f8afee <+30>: movb $0x1,0x278fd7(%rip) #
0x7ffff7203fcc <_ZZN6__tsan10InitializeEPNS_11ThreadStateEE14is_initialized>
0x00007ffff6f8aff5 <+37>: mov %rdi,0x18(%rsp)
0x00007ffff6f8affa <+42>: data16 lea 0x6cf66(%rip),%rdi #
0x7ffff6ff7f68
0x00007ffff6f8b002 <+50>: data16 data16 callq 0x7ffff6f3ed20
<__tls_get_addr@plt>
=> 0x00007ffff6f8b00a <+58>: lea 0xce6f(%rip),%rdi #
0x7ffff6f97e80 <__tsan::TsanCheckFailed(char const*, int, char const*, unsigned
long long, unsigned long long)>
0x00007ffff6f8b011 <+65>: lea 0x3df3b(%rip),%rcx #
0x7ffff6fc8f53
0x00007ffff6f8b018 <+72>: addl $0x1,0x20298(%rax)
0x00007ffff6f8b01f <+79>: lea 0x6f4b2(%rip),%rax #
0x7ffff6ffa4d8 <_ZN11__sanitizer17SanitizerToolNameE>
0x00007ffff6f8b026 <+86>: mov %rcx,(%rax)
More information about the Gcc-bugs
mailing list