Skip to content

arduino-fwuploader panics #150

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

Closed
3 tasks done
umbynos opened this issue Oct 14, 2022 · 2 comments
Closed
3 tasks done

arduino-fwuploader panics #150

umbynos opened this issue Oct 14, 2022 · 2 comments
Assignees
Labels
conclusion: resolved Issue was resolved topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project

Comments

@umbynos
Copy link
Contributor

umbynos commented Oct 14, 2022

Describe the problem

./arduino-fwuploader
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x824766]

goroutine 1 [running]:
debug/elf.(*Section).ReadAt(0xc000200000?, {0xc000210000?, 0x270?, 0x24?}, 0x40?)
	<autogenerated>:1 +0x26
archive/zip.readDirectoryEnd({0xa23b20, 0xc000138e80}, 0x210)
	/opt/hostedtoolcache/go/1.19.1/x64/src/archive/zip/reader.go:526 +0xf5
archive/zip.(*Reader).init(0xc000179a40, {0xa23b20?, 0xc000138e80}, 0x210)
	/opt/hostedtoolcache/go/1.19.1/x64/src/archive/zip/reader.go:97 +0x5c
archive/zip.NewReader({0xa23b20, 0xc000138e80}, 0x210)
	/opt/hostedtoolcache/go/1.19.1/x64/src/archive/zip/reader.go:90 +0x5e
github.com/daaku/go%2ezipexe.zipExeReaderElf({0xa246c0?, 0xc0000ae0c0}, 0xd758be)
	/home/runner/go/pkg/mod/github.com/daaku/[email protected]/zipexe.go:128 +0x8b
github.com/daaku/go%2ezipexe.NewReader({0xa246c0, 0xc0000ae0c0}, 0x0?)
	/home/runner/go/pkg/mod/github.com/daaku/[email protected]/zipexe.go:48 +0x98
github.com/daaku/go%2ezipexe.OpenCloser({0xc0000d62d0?, 0xc000115720?})
	/home/runner/go/pkg/mod/github.com/daaku/[email protected]/zipexe.go:30 +0x57
github.com/cmaglie/go%2erice.init.0()
	/home/runner/go/pkg/mod/github.com/cmaglie/[email protected]/appended.go:42 +0x65

To reproduce

This seems to only affect linux 2.2.1 released binary

Expected behavior

The binary should not crash

Arduino Firmware Uploader version

arduino-fwuploader Version: 2.2.1 Commit: 75bcf76

Operating system

Linux

Operating system version

Ubuntu 18.04 (same also on archlinux)

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest version
  • My report contains all necessary details
@umbynos umbynos added the type: imperfection Perceived defect in any part of project label Oct 14, 2022
@umbynos umbynos self-assigned this Oct 14, 2022
@umbynos
Copy link
Contributor Author

umbynos commented Oct 14, 2022

The problem seems to be caused by a combo:

Run actions/setup-go@v3
Setup go version spec ^1.16.2
Found in cache @ /opt/hostedtoolcache/go/1.19.1/x64
Added go to the path
Successfully set up Go version ^1.16.2
go version go1.19.1 linux/amd64

This causes the other workflows (like the integration test) to use a version different from the version used for the build, and this is why the CI did not catch the problem before the release.

@per1234 per1234 added the topic: infrastructure Related to project infrastructure label Oct 14, 2022
@umbynos
Copy link
Contributor Author

umbynos commented Oct 17, 2022

fixed by #151

@umbynos umbynos closed this as completed Oct 17, 2022
@umbynos umbynos added the conclusion: resolved Issue was resolved label Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants