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

build is 'passing' but binary fails: exec format error #122

Closed
bcdady opened this issue Jan 13, 2021 · 3 comments · Fixed by #130
Closed

build is 'passing' but binary fails: exec format error #122

bcdady opened this issue Jan 13, 2021 · 3 comments · Fixed by #130
Assignees

Comments

@bcdady
Copy link

bcdady commented Jan 13, 2021

Describe the bug
Following the steps from Installation - OSX and then running ketall results in the following error message: exec format error: ketall

To Reproduce
Steps to reproduce the behavior:

  1. curl -Lo ketall.gz https://github.com/corneliusweig/ketall/releases/download/v1.3.6/ketall-amd64-darwin.tar.gz
  2. gunzip ketall.gz
  3. chmod +x ketall
  4. mv ketall $GOPATH/bin/
    1. See error

Expected behavior
ketall should function as designed, such as demonstrated here: Demo

Desktop (please complete the following information):

  • output of ketall version --full: n/a
  • OS: macOS 11.1
  • shell: zsh 5.8 (x86_64-apple-darwin20.0)

Additional context
I confirmed the same symptoms with v1.3.5 and v1.3.4. I even tried to make/build locally, and still got the same error

@corneliusweig
Copy link
Owner

Sorry this does not work. I believe this might have something to do with upx/upx#222.
Have you tried if a build without upx compression works for you?

@renaudguerin
Copy link

renaudguerin commented Feb 1, 2021

I can confirm there's an issue with the UPX-compressed binary at https://github.com/corneliusweig/ketall/releases/download/v1.3.6/ketall-amd64-darwin.tar.gz

Big Sur 11.1 (Intel)
ketall installed via krew (itself installed via Homebrew)
Any invocation (standalone or via kubectl) immediately results in Killed: 9

After Googling for similar issues it seemed UPX could be the culprit.
Installed UPX 3.96, uncompressed ketall with upx -d ~/.krew/store/get-all/v1.3.6/get-all-amd64-darwin: it works
Recompressed with this UPX version upx -9 ~/.krew/store/get-all/v1.3.6/get-all-amd64-darwin: still working.

@pgdagenais
Copy link

Thanks @renaudguerin I had the same issue and I was also wondering.

Had the same setup than you and was able to fix it with the upx command you provided.

Thank you very much!

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

Successfully merging a pull request may close this issue.

4 participants