# 3.28 Segmentation fault on macos-11 runner

**URL:** https://discourse.cmake.org/t/3-28-segmentation-fault-on-macos-11-runner/9588
**Category:** Development
**Tags:** os:macos
**Created:** [December 8, 2023, 6:24pm UTC](https://discourse.cmake.org/t/3-28-segmentation-fault-on-macos-11-runner/9588 "2023-12-08T18:24:01Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![buildSystemPerson](https://discourse.cmake.org/user_avatar/discourse.cmake.org/buildsystemperson/32/2851_2.png) [@buildSystemPerson](https://discourse.cmake.org/u/buildSystemPerson)
#### Post date: [December 8, 2023, 6:24pm UTC](https://discourse.cmake.org/t/3-28-segmentation-fault-on-macos-11-runner/9588/1 "2023-12-08T18:24:01Z")

</div>

We recently just caught this in our [CI](https://github.com/juan-lunarg/Vulkan-ValidationLayers/actions/runs/7144308542) using lukka/get-cmake@latest

This error only occurs on a [macos-11 runner](https://github.com/actions/runner-images/blob/main/images/macos/macos-11-Readme.md) using CMake 3.28.

 ![Screenshot 2023-12-08 at 11.23.36 AM](https://discourse.cmake.org/uploads/default/original/2X/7/7fce0a5d287e69fbd1995e677cc9e41f09b71181.png)

Here is the error:

```auto
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.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [December 12, 2023, 1:21am UTC](https://discourse.cmake.org/t/3-28-segmentation-fault-on-macos-11-runner/9588/2 "2023-12-12T01:21:10Z")

</div>

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

---

<div class="post-metadata">

### Author: ![brad.king](https://discourse.cmake.org/user_avatar/discourse.cmake.org/brad.king/32/11_2.png) [@brad.king](https://discourse.cmake.org/u/brad.king)
#### Post date: [December 12, 2023, 4:23pm UTC](https://discourse.cmake.org/t/3-28-segmentation-fault-on-macos-11-runner/9588/3 "2023-12-12T16:23:59Z")

</div>

[CMake MR 9066](https://gitlab.kitware.com/cmake/cmake/-/merge_requests/9066) updates the macOS build to use Xcode 15.1. That seems to fix the problem on macOS 11.

---

<div class="post-metadata">

### Author: ![buildSystemPerson](https://discourse.cmake.org/user_avatar/discourse.cmake.org/buildsystemperson/32/2851_2.png) [@buildSystemPerson](https://discourse.cmake.org/u/buildSystemPerson)
#### Post date: [December 14, 2023, 8:53pm UTC](https://discourse.cmake.org/t/3-28-segmentation-fault-on-macos-11-runner/9588/4 "2023-12-14T20:53:05Z")

</div>

Thanks for the quick fix in `3.28.1` 👍:

> [@CMake 3.28.1 available for download](https://discourse.cmake.org/t/cmake-3-28-1-available-for-download/9637):
>
> We are pleased to announce that CMake 3.28.1 is now available for download. Please use the latest release from our download page: [https://cmake.org/download/](https://cmake.org/download/) Thanks for your support! Changes made since CMake 3.28.0: Ben Boeckel (12): Help/create\_test\_sourcelist: reflow prose Help/create\_test\_sourcelist: add formatting markup Help/create\_test\_sourcelist: format arguments in the signature docs cmGeneratorTarget: disable C++ module scanning for verify targets cmQtAutoGenInitializer: disable…
