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

Runtime Error: segmentation fault codeowners-validator #201

Open
albertbori opened this issue Jul 26, 2023 · 2 comments
Open

Runtime Error: segmentation fault codeowners-validator #201

albertbori opened this issue Jul 26, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@albertbori
Copy link

Description

When I run the codeowners-validator executable, the following error is emitted:

[1] 83061 segmentation fault codeowners-validator

Environment:

  • Terminal App
  • macOS Ventura 13.4.1
  • Intel Chipset

Expected result

I should see a help menu or script results.

Actual result

I get a segmentation fault error.

Steps to reproduce

  1. Manually (or using brew) install version 0.7.4
  2. Verify installation
  3. Run codeowners-validator

Troubleshooting

I tried several installation methods and several invocation techniques. All result in that error.

@albertbori albertbori added the bug Something isn't working label Jul 26, 2023
@zerok
Copy link

zerok commented Jul 31, 2023

This also happens to me when I download the Darwin-arm64 binary from the release page. A binary produced from main works.

@zerok
Copy link

zerok commented Jul 31, 2023

Did a quick test. It might be some issue around upx:

❯ git rev-parse --verify HEAD
84b4fa2742240c05af8c81185e91947d90222106

❯ go build

❯ ./codeowners-validator --help
Ensures the correctness of your CODEOWNERS file.
                                                                                                                                                                                                                                                                                                                            
Usage:
  codeowners-validator [flags]
  codeowners-validator [command]
                                                                                                                                                                                                                                                                                                                            
Available Commands:
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  version     Print the CLI version
                                                                                                                                                                                                                                                                                                                            
Flags:
  -h, --help   help for codeowners-validator
                                                                                                                                                                                                                                                                                                                            
Use "codeowners-validator [command] --help" for more information about a command.

❯ upx -9 codeowners-validator
                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2023
UPX 4.0.2       Markus Oberhumer, Laszlo Molnar & John Reiser   Jan 30th 2023
                                                                                                                                                                                                                                                                                                                            
        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
  15186898 ->   8486928   55.88%   macho/arm64   codeowners-validator
                                                                                                                                                                                                                                                                                                                            
Packed 1 file.

❯ ./codeowners-validator --help
[1]    1754 killed     ./codeowners-validator --help

Environment:

  • macOS 13.4.1 (c)
  • M2
  • go version go1.20.6 darwin/arm64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants