The Go race detector is implemented using the same technology as the C sanitizers. You can't use multiple sanitizers in the same program. Using -race with Go is not compatible with using -fsanitize=<anything> in C.
Similarly, in C you can't use both -fsanitize=thread and -fsanitize=address together.
Ian Lance Taylor:
https://groups.google.com/g/golang-nuts/c/OF2-5hVRouA