[Bug 3584] Segfault when built with optimisations on macOS 13 (x86_64) with Xcode 14.3

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Fri Jun 30 16:22:00 AEST 2023


https://bugzilla.mindrot.org/show_bug.cgi?id=3584

Michael Cho <cho-m at tuta.io> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cho-m at tuta.io

--- Comment #8 from Michael Cho <cho-m at tuta.io> ---
Changing optimization only masked issue during build but resulting
binaries caused segfaults and other problems for Homebrew users.

Based on my analysis, the issue appears to be that Xcode 14.3 (Apple
Clang 14.0.3) is based on LLVM 15 and thus we hit the LLVM bug
mentioned in configure.ac (ref:
https://github.com/llvm/llvm-project/issues/59242,
https://reviews.llvm.org/D139679)

Version info is a bit annoying with Apple Clang since they don't align
with LLVM version numbers. Also, the text is different so the
configure.ac logic doesn't work
```
❯ clang -v 2>&1 | head -1
Apple clang version 14.0.3 (clang-1403.0.22.14.1)

❯ clang -v 2>&1 | awk '/clang version /{print $3}'
version
```

In Homebrew, I added a temporary workaround in
https://github.com/Homebrew/homebrew-core/pull/135373 but would be nice
to improve configure.ac logic.

Issue should go away with Xcode 15 release as Apple Clang 15.0.0 is
based on LLVM 16.

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list