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 #121

Open
marcuswhybrow opened this issue Mar 4, 2023 · 2 comments

Comments

@marcuswhybrow
Copy link

Hi, I'm new to Go. Seeing go install ... suggested for modd, I tried go install github.com/cortesi/devd/cmd/devd@latest however I get this error. I don't get this error when downloading and installing a release directly.

I'm probably doing something unsupported, but should this be happening?
How come go install works for modd, but not for devd?

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

goroutine 1 [running]:
debug/elf.(*Section).ReadAt(0xc000194000?, {0xc000142480?, 0x24?, 0x23?}, 0x23?)
        <autogenerated>:1 +0x26
archive/zip.readDirectoryEnd({0x993760, 0xc00010cd80}, 0x210)
        /usr/local/go/src/archive/zip/reader.go:581 +0xf5
archive/zip.(*Reader).init(0xc000101030, {0x993760?, 0xc00010cd80}, 0x210)
        /usr/local/go/src/archive/zip/reader.go:124 +0x5c
archive/zip.NewReader({0x993760, 0xc00010cd80}, 0x210)
        /usr/local/go/src/archive/zip/reader.go:103 +0x5e
github.com/daaku/go%2ezipexe.zipExeReaderElf({0x9941e0?, 0xc0000cc068}, 0xc2224d)
        /home/marcus/go/pkg/mod/github.com/daaku/go.zipexe@v1.0.1/zipexe.go:128 +0x8b
github.com/daaku/go%2ezipexe.NewReader({0x9941e0, 0xc0000cc068}, 0x0?)
        /home/marcus/go/pkg/mod/github.com/daaku/go.zipexe@v1.0.1/zipexe.go:48 +0x98
github.com/daaku/go%2ezipexe.OpenCloser({0xc0000d8180?, 0xc0000c9be0?})
        /home/marcus/go/pkg/mod/github.com/daaku/go.zipexe@v1.0.1/zipexe.go:30 +0x57
github.com/GeertJohan/go%2erice.init.0()
        /home/marcus/go/pkg/mod/github.com/!geert!johan/go.rice@v1.0.0/appended.go:41 +0x65
@lancerushing
Copy link

+1 Having the same issue on a fresh install. My guess is one of the dependencies has a bug. 🤷‍♂️

$ go version
go version go1.19.5 linux/amd64

@asif-mahmud
Copy link

same happened for go 1.22.0

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