https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275577

            Bug ID: 275577
           Summary: Thread sanitizer is not usable under FreeBSD 13.2 and
                    14.0
           Product: Base System
           Version: 14.0-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: [email protected]
          Reporter: [email protected]

Programs compiled under FreeBSD 13.2 or 14.0 (amd64) with -fsanitize=thread hit
a null pointer dereference and dump core very early upon startup.

Steps to reproduce:

printf '#include <stdio.h>\nint main() { printf("Hello, world\\n"); }\n' > t.c
cc -fsanitize=thread -o t t.c && ./t

Interestingly, running the binary under gdb works, which hints that gdb sets up
the process in a TSan-friendly way.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to