Hello,
Our server had been running for a week and then suddenly crashed with the following error:
runtime: goroutine stack exceeds 1000000000-byte limit
runtime: sp=0xc03ab42388 stack=[0xc03ab42000, 0xc05ab42000]
fatal error: stack overflow
runtime stack:
runtime.throw({0x22b5da2?, 0x7ffcd6c77a88?})
runtime/panic.go:1067 +0x48 fp=0x7ffcd6c77a48 sp=0x7ffcd6c77a18 pc=0xc8c6e8
runtime.newstack()
runtime/stack.go:1117 +0x5bd fp=0x7ffcd6c77b88 sp=0x7ffcd6c77a48 pc=0xc6e1fd
runtime.morestack()
runtime/asm_amd64.s:621 +0x7a fp=0x7ffcd6c77b90 sp=0x7ffcd6c77b88 pc=0xc9397a
Then it’s just a bunch of stack trace. If you need any other logs please let me know.
Hello @MinatoTW,
The error would indicate some sort of infinite loop - yes if you could provide the full stack, as well as what’s the server version and the runtime being used it could be helpful.
Best.
error.log.txt (93.4 KB)
Hello @sesposito, here’s the log. I’m not sure how the loop is originating but it happened again today.
Runtime version: 1.35
Server version: 3.25
The logs seem to indicate you’re using the JS runtime - you likely have an unbounded recursive call or a loop in your custom code.
Due to the nature of the JS runtime the logs may not provide a lot of insight on where root cause may be in your code. I suggest you add some tracing logs to try to find out what codepath is triggering the issue when it happens and then try to reproduce it.
Best.