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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic when .local/bin does not exist #368

Closed
taukakao opened this issue Jun 24, 2024 · 0 comments · Fixed by #369
Closed

panic when .local/bin does not exist #368

taukakao opened this issue Jun 24, 2024 · 0 comments · Fixed by #369
Labels
bug Something isn't working
Milestone

Comments

@taukakao
Copy link
Member

Whenever .local/bin doesn't exist, apx will panic with this:

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

goroutine 1 [running]:
github.com/vanilla-os/apx/v2/core.findExportedBinaries.func1({0x8f3a30, 0x1}, {0x0?, 0x0?}, {0x8f6ac0, 0xc0006204e0})
	/__w/apx/apx/core/subSystem.go:71 +0x9b
io/fs.WalkDir({0x8f6b60, 0xc000534750}, {0x8f3a30, 0x1}, 0xc0004b13a8)
	/__t/go/1.21.11/x64/src/io/fs/walk.go:120 +0x63
github.com/vanilla-os/apx/v2/core.findExportedBinaries({0xc0004c6390, 0xb})
	/__w/apx/apx/core/subSystem.go:70 +0x1a5
github.com/vanilla-os/apx/v2/core.findExported({0xc0004c6390, 0xb}, {0xc00015e07c, 0x7})
	/__w/apx/apx/core/subSystem.go:176 +0x3f
github.com/vanilla-os/apx/v2/core.ListSubSystems(0x0, 0x0?)
	/__w/apx/apx/core/subSystem.go:297 +0x36e
github.com/vanilla-os/apx/v2/cmd.NewRuntimeCommands()
	/__w/apx/apx/cmd/runtime.go:23 +0x26
main.main()
	/__w/apx/apx/main.go:64 +0x91d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant