Open mrc0mmand opened 3 years ago
Can confirm this is also happening to me.
* Creating debug session for job '340c4875-6dda-4528-96cb-fce86bdd695d'
* Setting duration to 60 minutes
* Waiting for debug session to boot up ..............................
* Stopping debug session ..
* Session stopped
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x20 pc=0x1028d2538]
goroutine 1 [running]:
github.com/semaphoreci/cli/cmd/ssh.waitUntilJobIsRunning(0x0, 0x102a28728, 0x1028f2fc8, 0x28)
/home/semaphore/cli/cmd/ssh/session.go:99 +0x58
github.com/semaphoreci/cli/cmd/ssh.StartDebugSession(0x14000010100, 0x1028fc04b, 0xf0, 0x0, 0x0)
/home/semaphore/cli/cmd/ssh/session.go:46 +0xe8
github.com/semaphoreci/cli/cmd/ssh.StartDebugJobSession(0x140001aa2d0, 0x1028fc04b, 0xf0, 0x21, 0x14000221c98)
/home/semaphore/cli/cmd/ssh/session.go:18 +0x88
github.com/semaphoreci/cli/cmd.RunDebugJobCmd(0x14000228500, 0x140001973e0, 0x1, 0x1)
/home/semaphore/cli/cmd/debug_job.go:53 +0x254
github.com/spf13/cobra.(*Command).execute(0x14000228500, 0x140001973b0, 0x1, 0x1, 0x14000228500, 0x140001973b0)
/home/semaphore/go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:766 +0x1d0
github.com/spf13/cobra.(*Command).ExecuteC(0x102c673c0, 0x1400022e000, 0x6b, 0x14000230000)
/home/semaphore/go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:852 +0x21c
github.com/spf13/cobra.(*Command).Execute(...)
/home/semaphore/go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:800
github.com/semaphoreci/cli/cmd.Execute()
/home/semaphore/cli/cmd/root.go:37 +0x30
main.main()
/home/semaphore/cli/main.go:27 +0x230
sem version: 0.24.0, commit 4082ec9107fd5cdaccfc62329821926935bbd438, built at 2021-09-16T10:06:21Z
Hello,
For the past day all our systemd jobs keep failing and the logs are getting truncated, so I wanted to give it a try via the SSH debug feature. Unfortunately, all attempts to debug any of the failed jobs end up with a segfault:
I suspect this is caused by:
Environment:
sem version
: 0.21.0, commit e2866d25ce831675ac30b89dbc80446801357e32, built at 2020-12-01T13:31:24Z