I’ve accidentally created what I believe is a deadlock, and I was expecting to get the “all goroutines are asleep” error, but instead it just hangs indefinitedly. I thought it could be because I have another goroutine running, but it seems that’s not the case (
1 just before the supposed deadlock).
I’d really appreciate some help debugging the app, a very small condensed version is in this reproduction repo: https://gitlab.com/aryzing/repro-go-deadlock
Other things I’ve tried include
- Making sure that none of the dependencies start goroutines that may be running in the background, playground
- Setting up
with-profilingbranch in the repo above, but can’t get any output into either
Note: I know how to fix the issue. That’s not what I’m asking here. I’m asking why the go runtime does not report a deadlock.