CMake 3.28 Segfault in x86_64 container under macos arm64 and qemu-user-static
Summary
SystemInformation test (and others) segfault on x86 container running under qemu-user-static on Apple Silicon
This is a bit of a niche scenario but it appears to be traceable to a single commit.
Expected Result
All tests should pass
Actual Result
SystemInformationNew test and others result in Segfault
Steps to Reproduce
- CMake version: 5420639a onwards
- Host: Macos Ventura 13.6.2 (Mac Book Pro M2)
- VM: Fedora Core (Podman VM)
- Container: Ubuntu 22.04
brew install podman
podman machine init
podman machine start
podman machine ssh 'sudo rpm-ostree install qemu-user-static'
podman machine stop
podman machine start
podman run --arch x86_64 -it ubuntu:22.04 /bin/bash
Then build and run cmake in the container
ctest --test-dir <build_dir> -R SystemInformationNew
Workaround
Versions prior to 5420639a run successfully.
Edited by Andrew Marshall