With Linux 4.1 and gcc 4.9 or 5.2 I get this error:
$ echo 'void main(void){}' | gcc -pie -fPIE -fsanitize=thread -xc - && ./a.out
FATAL: ThreadSanitizer: unexpected memory mapping 0x55d400945000-0x55d40094600
It seems that this commit (thanks to Ben Hutchings for finding it) is change is
the root of the problem:
https://git.kernel.org/linus/d1fd836dcf00d2028c700c7e44d2c23404062c90
Related: http://bugs.debian.org/796246
Original issue reported on code.google.com by jrobert....@gmail.com on 21 Aug 2015 at 12:33
Original issue reported on code.google.com by
jrobert....@gmail.com
on 21 Aug 2015 at 12:33