3 ms·
The new data race detector looks great. I have a script I run daily that panics maybe once a month. I've never been able to figure out where the problem is. One
by eridius 14y ago
The new data race detector looks great. I have a script I run daily that panics maybe once a month. I've never been able to figure out where the problem is. One run after building with -race and I now have a juicy data race report. Awesome!
- eridius 14y agoTurns out exec runs two goroutines, one for Stdout and one for Stderr, and if I run both into the same bytes.Buffer, that's a data race. No wonder I couldn't find it, I was looking in my own code for the goroutines. Thanks go1.1beta1!