runtime: program with deadlock doesn't fail if use -race flag #20588
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
RaceDetector
Milestone
Go version: 1.8.3
OS: Mac
Program:
if run with
go run deadlock.go
see:fatal error: all goroutines are asleep - deadlock!
if run with
go run -race deadlock.go
program never finishIs it expected behavior?
Does it make sense to improve deadlock detector to be aware about race detector?
The text was updated successfully, but these errors were encountered: