How to diagnose a stuck program

79 views
Skip to first unread message

cpu...@gmail.com

unread,
Nov 6, 2021, 5:59:26 AM11/6/21
to golang-nuts
Developing https://github.com/evcc-io/evcc I've recently had a bug report of unresponsive application. Logfile shows, that the program still has alive go routines but the main loop doesn't show up in the logs any more, to it seems stuck.

This may be more a Unix than a Go question: can I connect to the running program and figure out where it's stuck. Any answers or pointers to external ressources appreciated.

Thanks,
Andi

Andreas Götz

unread,
Nov 6, 2021, 6:07:41 AM11/6/21
to golang-nuts
Sorry if the question was stupid. Happened to find https://stackoverflow.com/questions/42238695/goroutine-in-io-wait-state-for-long-time and looking at pprof profile right now.
Reply all
Reply to author
Forward
0 new messages