-
Notifications
You must be signed in to change notification settings - Fork 3k
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
pkg-config --list-all segfaults
on macOS-{11,12}
#6364
Comments
@andreasabel thanks, we will take a look |
@andreasabel it looks like a pure software bug, as a workaround you can remove imagemagick and its dependencies in runtime, I am trying to figure out where it should be better reported. |
Ok, it will be fixed by homebrew maintainers |
It's fixed from our side now. You can do |
Fantastic research and swift action, thanks a lot, everyone!! Might be advisable to add |
Due to a bug in the highway brew package, pkg-config --list-all segfaults on mac runners (actions/runner-images#6364). In addition, cabal probes pkg-config --list-all despite not needing it (haskell/cabal#8496). Combined, this created an issue where cabal would fail to create a build plan on macOS GitHub Action runners citing a lack of libsodium/pkg-config. The temporary solution is to reinstall the highway brew package since it has now been patched. The long-term solution is to wait for cabal to change its probing behaviour (tracked above), or wait for GitHub Actions runner environments to update so it comes with the patch preinstalled. (side note: I was pursuing this CI bug for over 4 days, unable to find anything relevant on search engines.... until 30 minutes ago, when I hit the jackpot with the right search terms and arrived at the issues above. In fact, the issue was only solved 5 hours ago, and the last comment in the thread was from 22 minutes before I arrived. I felt quite some strong adrenaline flowing through me when I realised how lucky I was today...)
Due to a bug in the highway brew package, pkg-config --list-all segfaults on mac runners (actions/runner-images#6364). In addition, cabal probes pkg-config --list-all despite not needing it (haskell/cabal#8496). Combined, this created an issue where cabal would fail to create a build plan on macOS GitHub Action runners citing a lack of libsodium/pkg-config. The temporary solution is to reinstall the highway brew package since it has now been patched. The long-term solution is to wait for cabal to change its probing behaviour (tracked above), or wait for GitHub Actions runner environments to update so it comes with the patch preinstalled. (side note: I was pursuing this CI bug for over 4 days, unable to find anything relevant on search engines.... until 30 minutes ago, when I hit the jackpot with the right search terms and arrived at the issues above. In fact, the issue was only solved 5 hours ago, and the last comment in the thread was from 22 minutes before I arrived. I felt quite some strong adrenaline flowing through me when I realised how lucky I was today...)
The new macOS images must be released this week |
Great work, everyone!
|
yes, the changes have been fully deployed |
Description
cabal-install 3.8.1.0 runs
pkg-config --list-all
to build its own pkg-config database. Pointer:Unfortunately
pkg-config --list-all
crashes onmacOS-11
andmacOS-12
, see e.g. https://github.com/andreasabel/gha-test/actions/runs/3202198515.Here is the reproducer:
On
macOS-11
, we see:On
macOS-12
, we see:Possibly related:
macos-11
andmacos-12
have unreliable build errors between re-runs of jobs #6129Platforms affected
Runner images affected
Image version and build link
https://github.com/andreasabel/gha-test/actions/runs/3202198515
Runner Image
Image: macos-11
Version: 20221002.2
Image: macos-12
Version: 20220929.2
Is it regression?
Yes, works with macOS-10.15.
Expected behavior
See other OSs:
pkg-config --list-all
should output a list of all packages known topkg-config
.Actual behavior
Segfault.
Repro steps
See above. Run this workflow:
The text was updated successfully, but these errors were encountered: