Skip to content

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

@charliechiou

Description

@charliechiou

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions