-
Notifications
You must be signed in to change notification settings - Fork 18k
runtime: program with deadlock doesn't fail if use -race flag #20588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
Comments
This is a duplicate of a very old issue.
…On Tue, 6 Jun 2017, 19:47 Alexey Sharov ***@***.***> wrote:
Go version: 1.8.3
OS: Mac
Program:
package main
func main() {
ch1 := make(chan int)
<-ch1
}
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 finish
Is it expected behavior?
Does it make sense to improve deadlock detector to be aware about race
detector?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#20588>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAcA9LBqRRfW3ondEEt_49d96PuPzJ4ks5sBSAtgaJpZM4NxGoz>
.
|
Sorry, i didn't find it. Let's close then. |
Perhaps #5475? |
#5475 is slightly different, and is closed anyhow. I also think this was reported before, but I can't find the issue, so until it turns up lets make this one the issue for the problem. |
maruel
added a commit
to maruel/panicparse
that referenced
this issue
Jun 2, 2019
Tested on go1.12.5. This is a known issue. golang/go#20588
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
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: