Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
charliechiou opened this issue Apr 22, 2025 · 0 comments

Comments

@charliechiou
Copy link
Contributor

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant