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: runtime error: invalid memory address or nil pointer dereference #62

Closed
phamdt opened this issue Apr 22, 2022 · 3 comments
Closed

Comments

@phamdt
Copy link

phamdt commented Apr 22, 2022

I'm not sure what other details I can provide that would be helpful since the repo is private but happy to provide whatever additional details I can.

$ goda graph -cluster -short "github.com/me/app:all" | dot -Tsvg -o graph.svg

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

goroutine 1 [running]:
github.com/loov/goda/internal/pkgtree.(*Tree).NodeRepo(...)
	/Users/me/go/pkg/mod/github.com/loov/goda@v0.5.0/internal/pkgtree/tree.go:75
github.com/loov/goda/internal/pkgtree.From(0xc000076000, 0xb061, 0x5c0, 0xee)
	/Users/me/go/pkg/mod/github.com/loov/goda@v0.5.0/internal/pkgtree/tree.go:26 +0x121
github.com/loov/goda/internal/graph.(*Dot).WriteClusters(0xc000154980, 0xc000076000, 0x0, 0x0)
	/Users/me/go/pkg/mod/github.com/loov/goda@v0.5.0/internal/graph/dot.go:131 +0x76
github.com/loov/goda/internal/graph.(*Dot).Write(0xc000154980, 0xc000076000, 0xc0008d2270, 0x1)
	/Users/me/go/pkg/mod/github.com/loov/goda@v0.5.0/internal/graph/dot.go:106 +0x3b
github.com/loov/goda/internal/graph.(*Command).Execute(0xc000154640, 0x157f370, 0xc00011a000, 0xc00012e660, 0x0, 0x0, 0x0, 0x0)
	/Users/me/go/pkg/mod/github.com/loov/goda@v0.5.0/internal/graph/cmd.go:136 +0x339
github.com/google/subcommands.(*Commander).Execute(0xc000130200, 0x157f370, 0xc00011a000, 0x0, 0x0, 0x0, 0xffffffff)
	/Users/me/go/pkg/mod/github.com/google/subcommands@v1.2.0/subcommands.go:209 +0x347
main.main()
	/Users/me/go/pkg/mod/github.com/loov/goda@v0.5.0/main.go:38 +0x39d
@ChrisHines
Copy link
Contributor

This may already be fixed by #61. Can you try building goda from the master branch to see if that helps?

@egonelbre
Copy link
Member

I added a new tag. Yeah, it seems I forgot to make one before.

@egonelbre
Copy link
Member

Hopefully this was fixed by #64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants