Skip to content

Swift compiler crashing while compiling System.Security.Cryptography.Native.Apple #137589

Open

Description

@jkotas
  FAILED: [code=139] System.Security.Cryptography.Native.Apple/pal_swiftbindings.o /Users/runner/work/1/s/artifacts/obj/native/net12.0-osx-Release-arm64/System.Security.Cryptography.Native.Apple/pal_swiftbindings.o 
  cd /Users/runner/work/1/s/artifacts/obj/native/net12.0-osx-Release-arm64/System.Security.Cryptography.Native.Apple && xcrun swiftc -emit-object -static -parse-as-library -enable-library-evolution -warnings-as-errors -gline-tables-only -runtime-compatibility-version none -target arm64-apple-macosx14.0 /Users/runner/work/1/s/src/native/libs/System.Security.Cryptography.Native.Apple/pal_swiftbindings.swift -o pal_swiftbindings.o
  Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
  Stack dump:
  0.	Program arguments: /Applications/Xcode_26.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c -primary-file /Users/runner/work/1/s/src/native/libs/System.Security.Cryptography.Native.Apple/pal_swiftbindings.swift -target arm64-apple-macosx14.0 -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode_26.6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-library-evolution -gline-tables-only -debug-info-format=dwarf -dwarf-version=4 -warnings-as-errors -static -new-driver-path /Applications/Xcode_26.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-driver -enable-anonymous-context-mangled-names -file-compilation-dir /Users/runner/work/1/s/artifacts/obj/native/net12.0-osx-Release-arm64/System.Security.Cryptography.Native.Apple -no-auto-bridging-header-chaining -module-name pal_swiftbindings -disable-clang-spi -target-sdk-version 26.5 -target-sdk-name macosx26.5 -external-plugin-path /Applications/Xcode_26.6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins#/Applications/Xcode_26.6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode_26.6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/lib/swift/host/plugins#/Applications/Xcode_26.6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -in-process-plugin-server-path /Applications/Xcode_26.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -plugin-path /Applications/Xcode_26.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Applications/Xcode_26.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/lib/swift/host/plugins -parse-as-library -o pal_swiftbindings.o -runtime-compatibility-version none
  1.	Apple Swift version 6.3.3 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)
  2.	Compiling with effective version 5.10
  3.	While evaluating request IRGenRequest(IR Generation for file "/Users/runner/work/1/s/src/native/libs/System.Security.Cryptography.Native.Apple/pal_swiftbindings.swift")
  4.	While emitting IR SIL function "@AppleCryptoNative_AesKeyWrapDecrypt".
   for 'AppleCryptoNative_AesKeyWrapDecrypt(key:ciphertext:plaintext:)' (at /Users/runner/work/1/s/src/native/libs/System.Security.Cryptography.Native.Apple/pal_swiftbindings.swift:227:8)
  Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
  0  swift-frontend           0x0000000113a44cc8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 40
  1  swift-frontend           0x0000000113a41e8b llvm::sys::RunSignalHandlers() + 283
  2  swift-frontend           0x0000000113a45272 SignalHandler(int, __siginfo*, void*) + 290
  3  libsystem_platform.dylib 0x00007ff80c3393bd _sigtramp + 29
  4  (error)                  0x00007fc70f4a8be8

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1682144&view=logs&j=e65d7c2f-2a22-58f2-1aad-288478d34cb8
Build error leg or test failing: Build / osx-arm64 release CoreLib_Libraries_AnalyzersLinker / Build product
Pull request: https://github.com/dotnet/runtime.git/pull/137582

Error Message

DO NOT USE JSON BELOW IF THIS IS A BUILD BREAK otherwise build analysis will allow pull requests to merge that break the build worse. For a build break, do not use this issue form. Make a regular new issue.

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": ["Please submit a bug report","libs/System.Security.Cryptography.Native.Apple"],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1682144
Error message validated: [Please submit a bug report libs/System.Security.Cryptography.Native.Apple]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 11/15/2026 5:09:41 PM UTC

Report

Build Repository Step Name Console log Pull Request
1682144 dotnet/runtime Build product Log #137582

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 1

Activity

  1. added
    blocking-clean-ci
    Known Build Error
    on Nov 15, 2026
  2. added
    untriaged
    on Nov 15, 2026
  3. dotnet-policy-service commented on Nov 15, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @bartonjs, @vcsjones, @dotnet/area-system-security
    See info in area-owners.md if you want to be subscribed.

  4. vcsjones commented on Nov 16, 2026

    @vcsjones
    Member

    Hm. I can't reproduce this with the same compiler tool chain. I will keep an eye on it but I'm hoping this is a stress / environment / cosmic ray type of thing. Unfortunately I don't see anything that looks like a dump from the compiler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build Errorarea-System.Securityblocking-clean-ciuntriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions