mszostok/codeowners-validator

Runtime Error: segmentation fault codeowners-validator

Opened this issue · 2 comments

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.

zerok commented

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

zerok commented

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