[go-nuts] How to diagnose a stuck program

2021-11-06 Thread cpu...@gmail.com
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

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/b75cb767-e911-4dcc-a215-e4a1024ab270n%40googlegroups.com.


[go-nuts] Re: How to diagnose a stuck program

2021-11-06 Thread Andreas Götz
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.

On Saturday, November 6, 2021 at 10:59:26 AM UTC+1 cpu...@gmail.com wrote:

> 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
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/a5d8c231-fe68-4a2d-9b01-189b5a7ab45bn%40googlegroups.com.