Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
runtime: bad "deadlock" fatal error when there are pending finalizers #41362
This program usually succeeds, but sometimes it fails with "fatal error: all goroutines are asleep - deadlock!":
Adding an extra
I think the program should reliably succeed, even if all
I don't know of any real-world programs this affects, so maybe this isn't a high priority if it's difficult to address completely. But it would make writing robust compiler test cases somewhat easier (e.g., see golang.org/cl/254401).