mtchuyen / Golang-Tips

Tips in Golang programming
3 stars 2 forks source link

race detector #25

Open mtchuyen opened 2 years ago

mtchuyen commented 2 years ago

Ian Lance Taylor:

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.

https://groups.google.com/g/golang-nuts/c/OF2-5hVRouA