[go-nuts] Re: Endless Running Goroutine Terminates Without Panic

2023-01-27 Thread Howard C. Shaw III
Ctrl-\ in a Linux terminal sends the SIGQUIT signal. You can also send this signal with kill. Sending SIGQUIT to a golang application (unless it traps it and changes the behavior) will cause it to print all of its goroutine's stack traces and then exit. Perhaps you could use this to confirm th

[go-nuts] Re: Endless Running Goroutine Terminates Without Panic

2023-01-26 Thread Brian Candler
On Thursday, 26 January 2023 at 15:38:28 UTC Brian Candler wrote: > As a goroutine may terminate if panic occurs If that happens, it will crash the entire program (go isn't python :-) https://go.dev/play/p/YD3lQ-xWe29 ... although other goroutines may continue for a very short time afterwards.

[go-nuts] Re: Endless Running Goroutine Terminates Without Panic

2023-01-26 Thread Brian Candler
> As a goroutine may terminate if panic occurs If that happens, it will crash the entire program (go isn't python :-) https://go.dev/play/p/YD3lQ-xWe29 > I used recover() to log the error and the monitoring thread is re-created. But this doesn't help either. I noticed that the goroutine has bee