You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running this script with go run main.go, if I hit ctrl+C, the program will sometimes hang on the db.Close() and more especially on the p.destructWG.Wait() line. It's pretty reliable, though you may want to try something like 10 times (go run + ctrl+c).
I couldn't debug it more :( I am on Linux go 1.19.
Edit: I noticed that if I hit ctrl+c quite early after the program started, there's a higher chance to reproduce the deadlock.
The text was updated successfully, but these errors were encountered:
When running this script with
go run main.go
, if I hit ctrl+C, the program will sometimes hang on thedb.Close()
and more especially on thep.destructWG.Wait()
line. It's pretty reliable, though you may want to try something like 10 times (go run + ctrl+c).I couldn't debug it more :( I am on Linux go 1.19.
Edit: I noticed that if I hit ctrl+c quite early after the program started, there's a higher chance to reproduce the deadlock.
The text was updated successfully, but these errors were encountered: