http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59410
Bug ID: 59410 Summary: Some tsan tests fail with 4GB RAM Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org On a Linux/x86-64 machine with 4GB RAM, I got failures like: FAIL: c-c++-common/tsan/atomic_stack.c -O0 output pattern test, is FATAL: ThreadSanitizer can not mmap the shadow memory (something is mapped at 0x555555554000 < 0x7cf000000000) FAIL: c-c++-common/tsan/atomic_stack.c -O1 output pattern test, is FATAL: ThreadSanitizer can not mmap the shadow memory (something is mapped at 0x555555554000 < 0x7cf000000000) FAIL: c-c++-common/tsan/atomic_stack.c -O2 output pattern test, is FATAL: ThreadSanitizer can not mmap the shadow memory (something is mapped at 0x555555554000 < 0x7cf000000000) FAIL: c-c++-common/tsan/atomic_stack.c -O3 -fomit-frame-pointer output pattern test, is FATAL: ThreadSanitizer can not mmap the shadow memory (something is mapped at 0x555555554000 < 0x7cf000000000) FAIL: c-c++-common/tsan/atomic_stack.c -O3 -g output pattern test, is FATAL: ThreadSanitizer can not mmap the shadow memory (something is mapped at 0x555555554000 < 0x7cf000000000) FAIL: c-c++-common/tsan/atomic_stack.c -Os output pattern test, is FATAL: ThreadSanitizer can not mmap the shadow memory (something is mapped at 0x555555554000 < 0x7cf000000000) FAIL: c-c++-common/tsan/atomic_stack.c -O2 -flto -fno-use-linker-plugin -flto-partition=none output pattern test, is FATAL: ThreadSanitizer can not mmap the shadow memory (something is mapped at 0x555555554000 < 0x7cf000000000) FAIL: c-c++-common/tsan/atomic_stack.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects output pattern test, is FATAL: ThreadSanitizer can not mmap the shadow memory (something is mapped at 0x555555554000 < 0x7cf000000000) FAIL: c-c++-common/tsan/fd_pipe_race.c -O0 output pattern test, is FATAL: ThreadSanitizer can not mmap the shadow memory (something is mapped at 0x555555554000 < 0x7cf000000000) FAIL: c-c++-common/tsan/fd_pipe_race.c -O1 output pattern test, is FATAL: ThreadSanitizer can not mmap the shadow memory (something is mapped at 0x555555554000 < 0x7cf000000000) FAIL: c-c++-common/tsan/fd_pipe_race.c -O2 output pattern test, is FATAL: ThreadSanitizer can not mmap the shadow memory (something is mapped at 0x555555554000 < 0x7cf000000000) I didn't get those on machines with >= 6GB RAM.