Closed tsachiherman closed 3 years ago
In the above change, you introduce a bug :
Instead of getting the callers for the goroutine which was calling the lock, you exchanged that with the monitoring goroutine. i.e. this is wrong :
fmt.Fprintf(Opts.LogBuf, "goroutine %v lock %p\n", goid.Get(), ptr) printStack(Opts.LogBuf, callers(2))
https://github.com/sasha-s/go-deadlock/commit/00ee193ea4a32e0dea6c837f4fa6416c12242cc8
In the above change, you introduce a bug :
Instead of getting the callers for the goroutine which was calling the lock, you exchanged that with the monitoring goroutine. i.e. this is wrong :