golang/go
View on GitHubruntime: externally linked programs don't detect deadlocks
Open
#29,322 opened on Dec 18, 2018
NeedsFixcompiler/runtimehelp wanted
Repository metrics
- Stars
- (133,883 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
What version of Go are you using (go version)?
Does this issue reproduce with the latest release?
Yes (also master as of last week)
What operating system and processor architecture are you using (go env)?
What did you do?
Did go run -buildmode=pie with this:
package main
func main() {
ch1 := make(chan string)
ch2 := make(chan string)
go func() {
<-ch1
ch2 <- "done"
}()
<-ch2
ch1 <- "done"
}
What did you expect to see?
Process dies with the "all goroutines are asleep" message.
What did you see instead?
Not dead but forever sleeping.