concurrent-programs icon indicating copy to clipboard operation
concurrent-programs copied to clipboard

ThreadSanitizer fails with GCC 10/12/13 but works with Clang on /mutex/example tests

Open charliechiou opened this issue 7 months ago • 0 comments

When building and running /mutex/example with ThreadSanitizer enabled under GCC 12 , GCC 13 or GCC 10, the program occasionally fails with the following fatal error:

FATAL: ThreadSanitizer: unexpected memory mapping 0x5fceda3d4000-0x5fceda3d5000

However, when compiling the same code with Clang , the program executes successfully with no sanitizer issues.

Environment:

  • OS : Ubuntu 24.04.2 LTS x86_64
  • Kernel : Linux 6.8.0-57-generic

charliechiou avatar Apr 22 '25 00:04 charliechiou