brook icon indicating copy to clipboard operation
brook copied to clipboard

panic: runtime error: invalid memory address or nil pointer

Open kukeer opened this issue 10 months ago • 1 comments

[root@VM-8-6-opencloudos lighthouse]# brook server -l :9999 -p hello & [4] 91808 [root@VM-8-6-opencloudos lighthouse]# panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xd92896]

goroutine 5 [running]: github.com/txthinking/runnergroup.(*RunnerGroup).Done(...) github.com/txthinking/[email protected]/runnergroup.go:109 golang.txthinking.com/brook.(*Server).Shutdown(...) golang.txthinking.com/brook/server.go:145 main.main.func4.3() golang.txthinking.com/brook/cli/brook/main.go:266 +0x16 github.com/txthinking/runnergroup.(*RunnerGroup).Wait.func1.1(0x0, 0x0?) github.com/txthinking/[email protected]/runnergroup.go:49 +0x59 created by github.com/txthinking/runnergroup.(*RunnerGroup).Wait.func1 in goroutine 22 github.com/txthinking/[email protected]/runnergroup.go:47 +0x5e

kukeer avatar Feb 26 '25 10:02 kukeer

This is usually because the port is occupied or the value of a parameter is incorrect.

It should not panic, but print the error reason. It will be fixed in the next version.

txthinking avatar Feb 26 '25 12:02 txthinking

v20250808

txthinking avatar Aug 02 '25 13:08 txthinking