x86_64 binaries compiled with 9.2.5 and run in MacOS Ventura immediately segfault
Summary
I'm the maintainer of hadolint. I recently released a new version compiled with 9.2.5 in the hope of fixing amr64 issues for MacOS ventura users, yet a user reported that the segfault issue was present on an x86_64 MacOS Ventura system.
In issue #21964 (closed) I was suggested to open a new ticket.
Steps to reproduce
$ uname -ap
Darwin ashopov-mac 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct 9 20:14:54 PDT 2022; root:xnu-8792.41.9~2/RELEASE_X86_64 x86_64 i386
$ wget https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Darwin-x86_64
$ sha256sum hadolint-Darwin-x86_64
2a5b7afcab91645c39a7cebefcd835b865f7488e69be24567f433dfc3d41cd27 hadolint-Darwin-x86_64
$ chmod +x hadolint-Darwin-x86_64
$ ./hadolint-Darwin-x86_64 --version
Segmentation fault: 11
Expected behavior
It should not segfault immediately
Environment
- GHC version used: 9.2.5
Optional:
- Operating System: MacOS Ventura
- System Architecture: x86_64
I have uploaded the binary, in case it makes it any easier for you to debug: