Issue 96 in thread-sanitizer: Linux 4.1: FATAL: ThreadSanitizer: unexpected memory mapping

493 views
Skip to first unread message

thread-s...@googlecode.com

unread,
Aug 21, 2015, 8:34:03 AM8/21/15
to thread-s...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 96 by jrobert....@gmail.com: Linux 4.1: FATAL: ThreadSanitizer:
unexpected memory mapping
https://code.google.com/p/thread-sanitizer/issues/detail?id=96

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

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

thread-s...@googlecode.com

unread,
Aug 21, 2015, 3:03:29 PM8/21/15
to thread-s...@googlegroups.com
Updates:
Owner: dvyu...@google.com

Comment #2 on issue 96 by euge...@google.com: Linux 4.1: FATAL:
ThreadSanitizer: unexpected memory mapping
https://code.google.com/p/thread-sanitizer/issues/detail?id=96

The same bug for MSan:
https://llvm.org/bugs/show_bug.cgi?id=24155

I thought TSan would not be affected by this. Is that a GCC vs Clang
difference?

thread-s...@googlecode.com

unread,
Aug 22, 2015, 10:36:52 AM8/22/15
to thread-s...@googlegroups.com

Comment #3 on issue 96 by jeromero...@gmail.com: Linux 4.1: FATAL:
ThreadSanitizer: unexpected memory mapping
https://code.google.com/p/thread-sanitizer/issues/detail?id=96

This bug in the gcc bugtracker:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67308

thread-s...@googlecode.com

unread,
Aug 22, 2015, 10:38:12 AM8/22/15
to thread-s...@googlegroups.com

Comment #4 on issue 96 by jrobert....@gmail.com: Linux 4.1: FATAL:
ThreadSanitizer: unexpected memory mapping
https://code.google.com/p/thread-sanitizer/issues/detail?id=96

This bug in the GCC bugtracker:

thread-s...@googlecode.com

unread,
Aug 24, 2015, 2:08:58 AM8/24/15
to thread-s...@googlegroups.com

Comment #5 on issue 96 by tetra20...@gmail.com: Linux 4.1: FATAL:
ThreadSanitizer: unexpected memory mapping
https://code.google.com/p/thread-sanitizer/issues/detail?id=96

May also be relevant for ASan.
Reply all
Reply to author
Forward
0 new messages