Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悶 github.com/dagger/dagger/dagql/idtui.CollectSpan invalid memory address or nil pointer dereference #7192

Open
gerhard opened this issue Apr 25, 2024 · 2 comments
Labels
kind/bug Something isn't working

Comments

@gerhard
Copy link
Member

gerhard commented Apr 25, 2024

What is the issue?

We've hit this error a few times in https://github.com/dagger/dagger/actions/runs/8821414426/job/24217223788?pr=7082, part of:

2024-04-24T18:36:16.3979153Z 锟絒95m117: 锟絒0mDONE 1325 tests, 3 skipped, 2 failures in 605.184s
2024-04-24T18:36:16.3979462Z 
2024-04-24T18:36:16.3979728Z panic: runtime error: invalid memory address or nil pointer dereference
2024-04-24T18:36:16.3980302Z [signal SIGSEGV: segmentation violation code=0x1 addr=0x4b pc=0xf4363d]
2024-04-24T18:36:16.3980649Z 
2024-04-24T18:36:16.3980743Z goroutine 1 [running]:
2024-04-24T18:36:16.3981331Z github.com/dagger/dagger/dagql/idtui.CollectSpans(0xc0003e0120, {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...})
2024-04-24T18:36:16.3981982Z 	/app/dagql/idtui/types.go:52 +0x41d
2024-04-24T18:36:16.3982474Z github.com/dagger/dagger/dagql/idtui.(*Frontend).recalculateView(0xc0003e20d0)
2024-04-24T18:36:16.3983016Z 	/app/dagql/idtui/frontend.go:395 +0x33
2024-04-24T18:36:16.3983493Z github.com/dagger/dagger/dagql/idtui.(*Frontend).finalRender(0xc0003e20d0)
2024-04-24T18:36:16.3983984Z 	/app/dagql/idtui/frontend.go:217 +0xa5
2024-04-24T18:36:16.3984563Z github.com/dagger/dagger/dagql/idtui.(*Frontend).Run(0xc0003e20d0, {0x1419d10, 0x1d6d6c0}, 0x12e4450)
2024-04-24T18:36:16.3985182Z 	/app/dagql/idtui/frontend.go:131 +0xe5
2024-04-24T18:36:16.3985471Z main.main()
2024-04-24T18:36:16.3985706Z 	/app/cmd/dagger/main.go:212 +0xac
2024-04-24T18:36:16.4731230Z Error: exit status 2
2024-04-24T18:36:16.4748865Z exit status 1

Just in case those logs become unavailable, I am attaching them as zip: logs_23113975550.zip

cc @vito

Dagger version

dagger v0.11.1 (registry.dagger.io/engine) linux/amd64

Steps to reproduce

No response

Log output

No response

@gerhard gerhard added the kind/bug Something isn't working label Apr 25, 2024
@jedevc
Copy link
Member

jedevc commented May 1, 2024

x-linking to #7227 - this should at least stop the panic.

@gerhard
Copy link
Member Author

gerhard commented May 7, 2024

Just hit this on v0.11.2 here https://github.com/dagger/dagger/actions/runs/8986651161/job/24683291279#step:4:68

dagger call lint stdout
...

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x4b pc=0xf436bd]

goroutine 1 [running]:
github.com/dagger/dagger/dagql/idtui.CollectSpans(0xc0004660c0, {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...})
	/app/dagql/idtui/types.go:52 +0x41d
github.com/dagger/dagger/dagql/idtui.(*Frontend).recalculateView(0xc000468000)
	/app/dagql/idtui/frontend.go:[39](https://github.com/dagger/dagger/actions/runs/8986651161/job/24683291279#step:4:40)5 +0x33
github.com/dagger/dagger/dagql/idtui.(*Frontend).finalRender(0xc000468000)
	/app/dagql/idtui/frontend.go:217 +0xa5
github.com/dagger/dagger/dagql/idtui.(*Frontend).Run(0xc000468000, {0x1[41](https://github.com/dagger/dagger/actions/runs/8986651161/job/24683291279#step:4:42)98b0, 0x1d6d680}, 0x12e3fd8)
	/app/dagql/idtui/frontend.go:131 +0xe5
main.main()
	/app/cmd/dagger/main.go:225 +0xac
Error: exit status 2
exit status 1

For now, just re-running.

Looking forward to trying out #7227 when v0.11.3 becomes available.

cc @matipan

This was referenced May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants