mszostok / codeowners-validator

The GitHub CODEOWNERS file validator
Apache License 2.0
211 stars 48 forks source link

Runtime Error: segmentation fault codeowners-validator #201

Open albertbori opened 11 months ago

albertbori commented 11 months ago

Description

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

[1] 83061 segmentation fault codeowners-validator

Environment:

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 11 months ago

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

zerok commented 11 months ago

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: