Open dschaefer2 opened 2 months ago
Simply checking out the latest main of swiftpm using the latest Windows ARM64 toolchain
swift build
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace. Stack dump: 0. Program arguments: C:\\Users\\dschaefer2\\AppData\\Local\\Programs\\Swift\\Toolchains\\6.0.0+Asserts\\usr\\bin\\swift-frontend.exe -frontend -c -primary-file C:\\Users\\dschaefer2\\swift\\src\\swiftpm\\.build\\checkouts\\swift-syntax\\Sources\\VersionMarkerModules\\SwiftSyntax510\\Empty.swift -emit-dependencies-path C:\\Users\\dschaefer2\\swift\\src\\swiftpm\\.build\\aarch64-unknown-windows-msvc\\debug\\SwiftSyntax510.build\\Empty.d -emit-reference-dependencies-path C:\\Users\\dschaefer2\\swift\\src\\swiftpm\\.build\\aarch64-unknown-windows-msvc\\debug\\SwiftSyntax510.build\\Empty.swiftdeps -target aarch64-unknown-windows-msvc -Xllvm -aarch64-use-tbi -disable-objc-interop -sdk C:\\Users\\dschaefer2\\AppData\\Local\\Programs\\Swift\\Platforms\\6.0.0\\Windows.platform\\Developer\\SDKs\\Windows.sdk\\ -I C:\\Users\\dschaefer2\\swift\\src\\swiftpm\\.build\\aarch64-unknown-windows-msvc\\debug\\Modules -I C:\\Users\\dschaefer2\\AppData\\Local\\Programs\\Swift\\Platforms\\6.0.0\\Windows.platform\\Developer\\Library\\XCTest-development\\usr\\lib\\swift\\windows -I C:\\Users\\dschaefer2\\AppData\\Local\\Programs\\Swift\\Platforms\\6.0.0\\Windows.platform\\Developer\\Library\\XCTest-development\\usr\\lib\\swift\\windows\\aarch64 -I C:\\Users\\dschaefer2\\AppData\\Local\\Programs\\Swift\\Platforms\\6.0.0\\Windows.platform\\Developer\\Library\\Testing-development\\usr\\lib\\swift\\windows -color-diagnostics -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path C:\\Users\\dschaefer2\\swift\\src\\swiftpm\\.build\\aarch64-unknown-windows-msvc\\debug\\ModuleCache -suppress-warnings -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -empty-abi-descriptor -Xcc -working-directory -Xcc C:\\Users\\dschaefer2\\swift\\src\\swiftpm -resource-dir C:\\Users\\dschaefer2\\AppData\\Local\\Programs\\Swift\\Toolchains\\6.0.0+Asserts\\usr\\lib\\swift -enable-anonymous-context-mangled-names -file-compilation-dir C:\\Users\\dschaefer2\\swift\\src\\swiftpm -Xcc -D_MT -Xcc -D_DLL -Xcc -Xclang -Xcc --dependent-lib=msvcrt -Xcc -gdwarf -module-name SwiftSyntax510 -in-process-plugin-server-path C:\\Users\\dschaefer2\\AppData\\Local\\Programs\\Swift\\Toolchains\\6.0.0+Asserts\\usr\\bin\\SwiftInProcPluginServer.dll -plugin-path C:\\Users\\dschaefer2\\AppData\\Local\\Programs\\Swift\\Toolchains\\6.0.0+Asserts\\usr\\bin -plugin-path C:\\Users\\dschaefer2\\AppData\\Local\\Programs\\Swift\\Toolchains\\6.0.0+Asserts\\usr\\local\\bin -parse-as-library -o C:\\Users\\dschaefer2\\swift\\src\\swiftpm\\.build\\aarch64-unknown-windows-msvc\\debug\\SwiftSyntax510.build\\Empty.swift.o -index-store-path C:\\Users\\dschaefer2\\swift\\src\\swiftpm\\.build\\aarch64-unknown-windows-msvc\\debug\\index\\store -index-system-modules 1. Swift version 6.1-dev (LLVM 89ccf4b8a46135a, Swift ea23b8a02b1c8c8) 2. Compiling with the current language version 3. While evaluating request ExecuteSILPipelineRequest(Run pipelines { PrepareOptimizationPasses, EarlyModulePasses, HighLevel,Function+EarlyLoopOpt, HighLevel,Module+StackPromote } on SIL for _StringProcessing) 4. While running pass #14382 SILModuleTransform "SerializeSILPass". 5. While serializing 'maxReplacements' (at C:\Users\dschaefer2\AppData\Local\Programs\Swift\Platforms\6.0.0\Windows.platform\Developer\SDKs\Windows.sdk\usr\lib\swift\windows\_StringProcessing.swiftmodule\aarch64-unknown-windows-msvc.swiftinterface:42:119) Exception Code: 0xC000001D #0 0x00007ffa4afe7708 swift_slowAlloc (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Runtimes\6.0.0\usr\bin\swiftCore.dll+0x297708) #1 0x00007ffa3fd52504 $s20_CompilerSwiftSyntax16BumpPtrAllocatorC8allocate9byteCount9alignmentSwSi_SitF (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\_CompilerSwiftSyntax.dll+0x2504) #2 0x00007ffa3fd52660 $s20_CompilerSwiftSyntax16BumpPtrAllocatorC8allocate_5countSryxGxm_SitlF (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\_CompilerSwiftSyntax.dll+0x2660) #3 0x00007ffa3fd67e5c $s20_CompilerSwiftSyntax07ParsingC5ArenaC18internSourceBufferySRys5UInt8VGAGF (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\_CompilerSwiftSyntax.dll+0x17e5c) #4 0x00007ffa467ca204 $s20_CompilerSwiftParser16LookaheadTrackerVACycfC (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\_CompilerSwiftParser.dll+0x3a204) #5 0x00007ffa467c6110 $s20_CompilerSwiftParser0C0V_19maximumNestingLevel15parseTransition5arena12swiftVersionACSRys5UInt8VG_SiSgAA016IncrementalParseH0CSg01_aB6Syntax07ParsingO5ArenaCSgAC0bK0OSgtcfC (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\_CompilerSwiftParser.dll+0x36110) #6 0x00007ff7708857ac (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0x57ac) #7 0x00007ff770885728 (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0x5728) #8 0x00007ff77253d658 (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0x1cbd658) #9 0x00007ff772316c34 (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0x1a96c34) #10 0x00007ff7718f4100 (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0x1074100) #11 0x00007ff7718e9f0c (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0x1069f0c) #12 0x00007ff7718fe410 (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0x107e410) #13 0x00007ff7718d3260 (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0x1053260) #14 0x00007ff771901cc4 (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0x1081cc4) #15 0x00007ff7718fc404 (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0x107c404) #16 0x00007ff77191760c (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0x109760c) #17 0x00007ff770ca33e0 (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0x4233e0) #18 0x00007ff770d22dd4 (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0x4a2dd4) #19 0x00007ff771a0da3c (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0x118da3c) #20 0x00007ff7715cc704 (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0xd4c704) #21 0x00007ff771292a20 (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0xa12a20) #22 0x00007ff77128f98c (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0xa0f98c) #23 0x00007ff77128fc70 (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0xa0fc70) #24 0x00007ff77128f5ec (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0xa0f5ec) #25 0x00007ff7712a1f50 (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0xa21f50) #26 0x00007ff77128a80c (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0xa0a80c) #27 0x00007ff77128fcf4 (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0xa0fcf4) #28 0x00007ff77127d810 (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0x9fd810) #29 0x00007ff770ccabe4 (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0x44abe4) #30 0x00007ff770d23ea4 (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0x4a3ea4) #31 0x00007ff770d21ff4 (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0x4a1ff4) #32 0x00007ff770d0f02c (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0x48f02c) #33 0x00007ff770d22cc8 (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0x4a2cc8) #34 0x00007ff77688e7f8 (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0x600e7f8) #35 0x00007ff77688e988 (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0x600e988) #36 0x00007ff77688e4ac (C:\Users\dschaefer2\AppData\Local\Programs\Swift\Toolchains\6.0.0+Asserts\usr\bin\swift-frontend.exe+0x600e4ac) #37 0x00007ffaa72dd52c (C:\Windows\System32\ucrtbase.dll+0x2d52c) #38 0x00007ffaa88a2310 (C:\Windows\System32\KERNEL32.DLL+0x12310) #39 0x00007ffaab195b2c (C:\Windows\SYSTEM32\ntdll.dll+0x75b2c)
At least not a compiler crash.
Swift version 6.1-dev (LLVM 89ccf4b8a46135a, Swift ea23b8a02b1c8c8) Target: aarch64-unknown-windows-msvc
No response
This might be caused by https://github.com/swiftlang/swift/issues/74866. cc @hjyamauchi @compnerd
Description
Simply checking out the latest main of swiftpm using the latest Windows ARM64 toolchain
Reproduction
Stack dump
Expected behavior
At least not a compiler crash.
Environment
Swift version 6.1-dev (LLVM 89ccf4b8a46135a, Swift ea23b8a02b1c8c8) Target: aarch64-unknown-windows-msvc
Additional information
No response