3.28 Segmentation fault on macos-11 runner

We recently just caught this in our CI using lukka/get-cmake@latest

This error only occurs on a macos-11 runner using CMake 3.28.

Here is the error:

cmake -S . -B build/
-- The CXX compiler identification is AppleClang 13.0.0.13000029
-- Detecting CXX compiler ABI info
/Users/runner/work/_temp/f78b8b50-b9dd-4dd0-9ba3-954655714151.sh: line 6:  1909 Segmentation fault: 11  cmake -S . -B build/ -D CMAKE_SYSTEM_NAME=iOS -D CMAKE_OSX_ARCHITECTURES=arm64 -D BUILD_WERROR=ON -D UPDATE_DEPS=ON -D CMAKE_BUILD_TYPE=Debug
Error: Process completed with exit code 139.

I believe you should be able to reproduce the error above by running a CMake project with the following command line arguments on a macos-11 machine/runner:

cmake -S . -B build/ -D CMAKE_SYSTEM_NAME=iOS -D CMAKE_OSX_ARCHITECTURES=arm64 -D CMAKE_BUILD_TYPE=Debug -G Ninja

Let me know if you need more information to reproduce the issue.

Tracked down to an Xcode 15.0 issue; building 3.27.9 with 15.0 also crashes, but using Xcode 15.1 works.

1 Like

CMake MR 9066 updates the macOS build to use Xcode 15.1. That seems to fix the problem on macOS 11.

1 Like

Thanks for the quick fix in 3.28.1 :+1::