-
Notifications
You must be signed in to change notification settings - Fork 18k
runtime: time.Sleep() never returns on macOS Sierra beta2 #16382
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
Comments
Duplicate of #16272 |
Merged into #16354. |
Dup of #16272
|
This wasn't happening on my machine before I installed the macOS beta. Kind of regretting it now! 😁
go version go1.6.2 darwin/amd64
macOS Sierra beta2 (macOS 10.12 16A238m)
on amd64
Compiled and ran the following small program:
A practically infinite number of loop iterations.
Output for a few seconds, then nothing, because time.Sleep() fails to return after a few iterations of the loop.
Using a debugger (https://github.com/derekparker/delve), I'm able to interrupt the program and grab a stack trace when it freezes, and it's always exactly the same:
I get the same result if the for loop is moved into a separate goroutine, or if the sleep duration is varied.
The text was updated successfully, but these errors were encountered: