Skip to content
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

x/playground: Deadlock running context timeout on play.golang.org #41534

Closed
xeoncross opened this issue Sep 21, 2020 · 1 comment
Closed

x/playground: Deadlock running context timeout on play.golang.org #41534

xeoncross opened this issue Sep 21, 2020 · 1 comment

Comments

@xeoncross
Copy link

xeoncross commented Sep 21, 2020

The following context timeout deadlocks on play.golang.org but works fine using several recent versions of the Go compiler.

https://play.golang.org/p/7vqNz9WXa6o

ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond)
defer cancel()

<-ctx.Done()	
err := ctx.Err()

What did you expect to see?

net.Error: context.deadlineExceededError

What did you see instead?

timeout running program

Update Looks like #39016 is related. If we remove the dependency on "net" then the deadlock seems to resolve.

https://play.golang.org/p/NM3xC6_R1_Q

@cagedmantis cagedmantis changed the title Deadlock running context timeout on play.golang.org x/playground: Deadlock running context timeout on play.golang.org Sep 22, 2020
@gopherbot gopherbot added this to the Unreleased milestone Sep 22, 2020
@cagedmantis
Copy link
Contributor

@xeoncross This does seem similar to the bug reported in #39016. I'm going to close this issue since it seems to be a duplicate issue. Would you mind adding the sample case and description to the previous issue?

@golang golang locked and limited conversation to collaborators Sep 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants