Data race found but it does not print a report


(cinematik) #1

When the race detector finds a data race in the program should it prints a report?
My program executes succesfully without any lugs, but when exiting, only pritns

Found 1 data race(s)
exit status 66

Can it show me at which place of the code it happens?


(Sean Killian) #2

Hi, @cinematik, Check out the article about the data race detector here: https://golang.org/doc/articles/race_detector.html

It shows how to run the detector and get traces.