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 using zip exe #178

Open
brianvoe opened this issue Oct 23, 2024 · 0 comments
Open

Panic using zip exe #178

brianvoe opened this issue Oct 23, 2024 · 0 comments

Comments

@brianvoe
Copy link

I believe this might be a version issue. But i am getting this error recently when running rice.

GOOS=linux GOARCH=amd64 go build -o outputfile main.go
~/go/bin/rice append --exec outputfile
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x18 pc=0x104c55778]

goroutine 1 [running]:
debug/elf.(*Section).ReadAt(0x140002b6000?, {0x1400027e000?, 0x107?, 0x14?}, 0x190?)
:1 +0x28
archive/zip.readDirectoryEnd({0x104d61c38, 0x14000210a00}, 0x214)
/usr/local/go/src/archive/zip/reader.go:526 +0xd0
archive/zip.(*Reader).init(0x14000236540, {0x104d61c38?, 0x14000210a00}, 0x214)
/usr/local/go/src/archive/zip/reader.go:97 +0x44
archive/zip.NewReader({0x104d61c38, 0x14000210a00}, 0x214)
/usr/local/go/src/archive/zip/reader.go:90 +0x50
github.com/daaku/go%2ezipexe.zipExeReaderElf({0x104d62058?, 0x14000206070}, 0xc49d88)
/Users/bvoelker/go/pkg/mod/github.com/daaku/[email protected]/zipexe.go:128 +0x98
github.com/daaku/go%2ezipexe.NewReader({0x104d62058, 0x14000206070}, 0x0?)
/Users/bvoelker/go/pkg/mod/github.com/daaku/[email protected]/zipexe.go:48 +0x94
github.com/daaku/go%2ezipexe.OpenCloser({0x1400022c0f0?, 0x49?})
/Users/bvoelker/go/pkg/mod/github.com/daaku/[email protected]/zipexe.go:30 +0x58
github.com/daaku/go%2ezipexe.Open(...)
/Users/bvoelker/go/pkg/mod/github.com/daaku/[email protected]/zipexe.go:16
main.operationAppend({0x14000206058, 0x1, 0x14000064000?})
/Users/bvoelker/go/pkg/mod/github.com/!geert!johan/[email protected]/rice/append.go:39 +0x330
main.main()
/Users/bvoelker/go/pkg/mod/github.com/!geert!johan/[email protected]/rice/main.go:42 +0x1b0
make: *** [deploy] Error 2

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

1 participant