swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.29k stars 10.34k forks source link

Compiler crash when building SwiftGodot on Linux #71405

Open deevus opened 7 months ago

deevus commented 7 months ago

Description

  1. I followed the instructions to create a new swift library project for SwiftGodot
  2. Ran swift build

Reproduction

project.zip

Stack dump

warning: direct reference to protected function `$sSJ12isWhitespaceSbvg' in `/usr/libexec/swift/5.9/bin/../lib/swift/linux/libswiftCore.so' may break pointer equality
warning: direct reference to protected function `$sSJ12isWhitespaceSbvg' in `/usr/libexec/swift/5.9/bin/../lib/swift/linux/libswiftCore.so' may break pointer equality
[1/1] Compiling plugin CodeGeneratorPlugin
Building for debugging...
[2/7] Emitting module SwiftSyntax509
[5/10] Emitting module SwiftSyntax
warning: direct reference to protected function `$sSJ12isWhitespaceSbvg' in `/usr/libexec/swift/5.9/bin/../lib/swift/linux/libswiftCore.so' may break pointer equality
[8/15] Emitting module SwiftDiagnostics
[11/17] Emitting module SwiftBasicFormat
[14/19] Emitting module SwiftParser
warning: direct reference to protected function `$sSJ12isWhitespaceSbvg' in `/usr/libexec/swift/5.9/bin/../lib/swift/linux/libswiftCore.so' may break pointer equality
[17/23] Emitting module SwiftOperators
warning: direct reference to protected function `$sSJ12isWhitespaceSbvg' in `/usr/libexec/swift/5.9/bin/../lib/swift/linux/libswiftCore.so' may break pointer equality
[20/25] Emitting module SwiftParserDiagnostics
warning: direct reference to protected function `$sSJ12isWhitespaceSbvg' in `/usr/libexec/swift/5.9/bin/../lib/swift/linux/libswiftCore.so' may break pointer equality
[23/28] Emitting module SwiftSyntaxBuilder
[26/31] Emitting module SwiftSyntaxMacros
[29/34] Emitting module SwiftSyntaxMacroExpansion
[32/37] Emitting module SwiftCompilerPluginMessageHandling
warning: direct reference to protected function `$sSJ12isWhitespaceSbvg' in `/usr/libexec/swift/5.9/bin/../lib/swift/linux/libswiftCore.so' may break pointer equality
[35/40] Emitting module SwiftCompilerPlugin
[38/43] Emitting module SwiftGodotMacroLibrary
warning: direct reference to protected function `$sSJ12isWhitespaceSbvg' in `/usr/libexec/swift/5.9/bin/../lib/swift/linux/libswiftCore.so' may break pointer equality
error: compile command failed due to signal 6 (use -v to see invocation)
InOutToPointerExpr in unexpected position!
(inout_to_pointer implicit type='UnsafeMutableRawPointer' location=/home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CSGCylinder3D.swift:109:124 range=[/home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CSGCylinder3D.swift:109:124 - line:109:125]
  (inout_expr type='inout Double' location=/home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CSGCylinder3D.swift:109:124 range=[/home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CSGCylinder3D.swift:109:124 - line:109:125]
    (declref_expr type='@lvalue Double' location=/home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CSGCylinder3D.swift:109:125 range=[/home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CSGCylinder3D.swift:109:125 - line:109:125] decl=SwiftGodot.(file).CSGCylinder3D.set_radius(_:).copy_radius@/home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CSGCylinder3D.swift:107:13 function_ref=unapplied)))
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.  Program arguments: /usr/libexec/swift/5.9/bin/swift-frontend -frontend -c -filelist /tmp/TemporaryDirectory.9l7ag5/sources-1 -primary-file /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CSGCombiner3D.swift -primary-file /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CSGCylinder3D.swift -primary-file /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CSGMesh3D.swift -primary-file /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CSGPolygon3D.swift -primary-file /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CSGPrimitive3D.swift -primary-file /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CSGShape3D.swift -primary-file /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CSGSphere3D.swift -primary-file /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CSGTorus3D.swift -primary-file /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CallbackTweener.swift -primary-file /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/Camera2D.swift -primary-file /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/Camera3D.swift -primary-file /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CameraAttributes.swift -primary-file /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CameraAttributesPhysical.swift -primary-file /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CameraAttributesPractical.swift -primary-file /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CameraFeed.swift -primary-file /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CameraServer.swift -primary-file /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CameraTexture.swift -primary-file /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CanvasGroup.swift -primary-file /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CanvasItem.swift -primary-file /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CanvasItemMaterial.swift -primary-file /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CanvasLayer.swift -primary-file /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CanvasModulate.swift -primary-file /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CanvasTexture.swift -primary-file /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CapsuleMesh.swift -primary-file /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CapsuleShape2D.swift -supplementary-output-file-map /tmp/TemporaryDirectory.9l7ag5/supplementaryOutputs-8 -target x86_64-unknown-linux-gnu -disable-objc-interop -I /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug -enable-testing -g -module-cache-path /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/ModuleCache -suppress-warnings -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -new-driver-path /usr/libexec/swift/5.9/bin/swift-driver -load-plugin-executable /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/SwiftGodotMacroLibrary#SwiftGodotMacroLibrary -empty-abi-descriptor -resource-dir /usr/libexec/swift/5.9/lib/swift -enable-anonymous-context-mangled-names -Xcc -fmodule-map-file=/home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/GDExtension.build/module.modulemap -Xcc -I -Xcc /home/sh/Projects/dwl/swift-minimedieval/.build/checkouts/SwiftGodot/Sources/GDExtension/include -Xcc -fPIC -module-name SwiftGodot -package-name swiftgodot -plugin-path /usr/libexec/swift/5.9/lib/swift/host/plugins -plugin-path /usr/libexec/swift/5.9/local/lib/swift/host/plugins -parse-as-library -o /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CSGCombiner3D.swift.o -o /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CSGCylinder3D.swift.o -o /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CSGMesh3D.swift.o -o /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CSGPolygon3D.swift.o -o /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CSGPrimitive3D.swift.o -o /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CSGShape3D.swift.o -o /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CSGSphere3D.swift.o -o /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CSGTorus3D.swift.o -o /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CallbackTweener.swift.o -o /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/Camera2D.swift.o -o /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/Camera3D.swift.o -o /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CameraAttributes.swift.o -o /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CameraAttributesPhysical.swift.o -o /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CameraAttributesPractical.swift.o -o /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CameraFeed.swift.o -o /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CameraServer.swift.o -o /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CameraTexture.swift.o -o /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CanvasGroup.swift.o -o /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CanvasItem.swift.o -o /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CanvasItemMaterial.swift.o -o /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CanvasLayer.swift.o -o /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CanvasModulate.swift.o -o /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CanvasTexture.swift.o -o /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CapsuleMesh.swift.o -o /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CapsuleShape2D.swift.o -index-store-path /home/sh/Projects/dwl/swift-minimedieval/.build/x86_64-unknown-linux-gnu/debug/index/store -index-system-modules
1.  Swift version 5.9 (swift-5.9-RELEASE)
2.  Compiling with the current language version
3.  Contents of /tmp/TemporaryDirectory.9l7ag5/sources-1:
---
<SNIPPED>
/home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/ZIPReader.swift
---
4.  While walking into 'CSGCylinder3D' (at /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CSGCylinder3D.swift:14:6)
5.  While walking into body of 'set_radius(_:)' (at /home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CSGCylinder3D.swift:104:23)
6.  While verifying InOutToPointer expression at [/home/sh/Projects/dwl/swift-minimedieval/.build/plugins/outputs/swiftgodot/SwiftGodot/CodeGeneratorPlugin/GeneratedSources/generated/CSGCylinder3D.swift:109:124 - line:109:125] RangeText="&"
 #0 0x0000000006802aa4 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/libexec/swift/5.9/bin/swift-frontend+0x6802aa4)
 #1 0x000000000680080e llvm::sys::RunSignalHandlers() (/usr/libexec/swift/5.9/bin/swift-frontend+0x680080e)
 #2 0x0000000006802e08 SignalHandler(int) (/usr/libexec/swift/5.9/bin/swift-frontend+0x6802e08)
 #3 0x00007f4fd9e5c9a0 __restore_rt (/lib64/libc.so.6+0x3e9a0)
 #4 0x00007f4fd9eae834 __pthread_kill_implementation (/lib64/libc.so.6+0x90834)
 #5 0x00007f4fd9e5c8ee gsignal (/lib64/libc.so.6+0x3e8ee)
 #6 0x00007f4fd9e448ff abort (/lib64/libc.so.6+0x268ff)
 #7 0x0000000001e1f98e swift::ASTWalker::PostWalkResult<swift::InOutToPointerExpr*> (anonymous namespace)::Verifier::dispatchVisitPost<swift::InOutToPointerExpr*>(swift::InOutToPointerExpr*) (/usr/libexec/swift/5.9/bin/swift-frontend+0x1e1f98e)
 #8 0x0000000001e1151b (anonymous namespace)::Verifier::walkToExprPost(swift::Expr*) (/usr/libexec/swift/5.9/bin/swift-frontend+0x1e1151b)
 #9 0x0000000001e28768 (anonymous namespace)::Traversal::doIt(swift::Expr*) (/usr/libexec/swift/5.9/bin/swift-frontend+0x1e28768)
#10 0x0000000001e28406 (anonymous namespace)::Traversal::doIt(swift::Expr*) (/usr/libexec/swift/5.9/bin/swift-frontend+0x1e28406)
#11 0x0000000001e29e1c swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visitArrayExpr(swift::ArrayExpr*) (/usr/libexec/swift/5.9/bin/swift-frontend+0x1e29e1c)
#12 0x0000000001e284f2 (anonymous namespace)::Traversal::doIt(swift::Expr*) (/usr/libexec/swift/5.9/bin/swift-frontend+0x1e284f2)
#13 0x0000000001e28406 (anonymous namespace)::Traversal::doIt(swift::Expr*) (/usr/libexec/swift/5.9/bin/swift-frontend+0x1e28406)
#14 0x0000000001e2b2e9 (anonymous namespace)::Traversal::visitApplyExpr(swift::ApplyExpr*) (/usr/libexec/swift/5.9/bin/swift-frontend+0x1e2b2e9)
#15 0x0000000001e28433 (anonymous namespace)::Traversal::doIt(swift::Expr*) (/usr/libexec/swift/5.9/bin/swift-frontend+0x1e28433)
#16 0x0000000001e2b574 swift::ASTVisitor<(anonymous namespace)::Traversal, swift::Expr*, swift::Stmt*, bool, swift::Pattern*, bool, void>::visit(swift::Stmt*) (/usr/libexec/swift/5.9/bin/swift-frontend+0x1e2b574)
#17 0x0000000001e2e6db (anonymous namespace)::Traversal::visitAbstractFunctionDecl(swift::AbstractFunctionDecl*) (/usr/libexec/swift/5.9/bin/swift-frontend+0x1e2e6db)
#18 0x0000000001e2cf6d (anonymous namespace)::Traversal::visit(swift::Decl*) (/usr/libexec/swift/5.9/bin/swift-frontend+0x1e2cf6d)
#19 0x0000000001e293ca (anonymous namespace)::Traversal::doIt(swift::Decl*) (/usr/libexec/swift/5.9/bin/swift-frontend+0x1e293ca)
#20 0x0000000001e2e1de (anonymous namespace)::Traversal::visitNominalTypeDecl(swift::NominalTypeDecl*) (/usr/libexec/swift/5.9/bin/swift-frontend+0x1e2e1de)
#21 0x0000000001e2cf5c (anonymous namespace)::Traversal::visit(swift::Decl*) (/usr/libexec/swift/5.9/bin/swift-frontend+0x1e2cf5c)
#22 0x0000000001e293ca (anonymous namespace)::Traversal::doIt(swift::Decl*) (/usr/libexec/swift/5.9/bin/swift-frontend+0x1e293ca)
#23 0x0000000001e292d3 swift::Decl::walk(swift::ASTWalker&) (/usr/libexec/swift/5.9/bin/swift-frontend+0x1e292d3)
#24 0x0000000001fef8a1 swift::SourceFile::walk(swift::ASTWalker&) (/usr/libexec/swift/5.9/bin/swift-frontend+0x1fef8a1)
#25 0x0000000001e10538 swift::verify(swift::SourceFile&) (/usr/libexec/swift/5.9/bin/swift-frontend+0x1e10538)
#26 0x000000000212ae27 swift::TypeCheckSourceFileRequest::cacheResult(std::tuple<>) const (/usr/libexec/swift/5.9/bin/swift-frontend+0x212ae27)
#27 0x0000000001afd3c2 llvm::Expected<swift::TypeCheckSourceFileRequest::OutputType> swift::Evaluator::getResultCached<swift::TypeCheckSourceFileRequest, (void*)0>(swift::TypeCheckSourceFileRequest const&) (/usr/libexec/swift/5.9/bin/swift-frontend+0x1afd3c2)
#28 0x0000000001afac14 swift::TypeCheckSourceFileRequest::OutputType swift::evaluateOrDefault<swift::TypeCheckSourceFileRequest>(swift::Evaluator&, swift::TypeCheckSourceFileRequest, swift::TypeCheckSourceFileRequest::OutputType) (/usr/libexec/swift/5.9/bin/swift-frontend+0x1afac14)
#29 0x0000000001afabf4 swift::performTypeChecking(swift::SourceFile&) (/usr/libexec/swift/5.9/bin/swift-frontend+0x1afabf4)
#30 0x0000000000881e69 bool llvm::function_ref<bool (swift::SourceFile&)>::callback_fn<swift::CompilerInstance::performSema()::$_0>(long, swift::SourceFile&) (/usr/libexec/swift/5.9/bin/swift-frontend+0x881e69)
#31 0x0000000000874f3a swift::CompilerInstance::forEachFileToTypeCheck(llvm::function_ref<bool (swift::SourceFile&)>) (/usr/libexec/swift/5.9/bin/swift-frontend+0x874f3a)
#32 0x0000000000874eb9 swift::CompilerInstance::performSema() (/usr/libexec/swift/5.9/bin/swift-frontend+0x874eb9)
#33 0x000000000060acb2 withSemanticAnalysis(swift::CompilerInstance&, swift::FrontendObserver*, llvm::function_ref<bool (swift::CompilerInstance&)>, bool) (/usr/libexec/swift/5.9/bin/swift-frontend+0x60acb2)
#34 0x00000000005f811b performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) (/usr/libexec/swift/5.9/bin/swift-frontend+0x5f811b)
#35 0x00000000005f710b swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) (/usr/libexec/swift/5.9/bin/swift-frontend+0x5f710b)
#36 0x0000000000455bce swift::mainEntry(int, char const**) (/usr/libexec/swift/5.9/bin/swift-frontend+0x455bce)
#37 0x00007f4fd9e4614a __libc_start_call_main (/lib64/libc.so.6+0x2814a)
#38 0x00007f4fd9e4620b __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x2820b)
#39 0x0000000000455525 _start (/usr/libexec/swift/5.9/bin/swift-frontend+0x455525)

Expected behavior

On my M1 Mac it compiles, no problem.

Environment

distro: Fedora Linux 39 (Workstation Edition) x86_64 
cpu: AMD Ryzen 7 7840U w/ Radeon 780M Graphics (16) @ 5.289GHz 
gpu: AMD ATI c1:00.0 Phoenix1 
memory: 15175MiB / 63480MiB 
Installed Swift 5.9 release toolchains
--------------------------------------
Swift 5.9.2 (in use)
Swift version 5.9 (swift-5.9-RELEASE)
Target: x86_64-unknown-linux-gnu

Additional information

Verbose build output

build-error.log

deevus commented 7 months ago

Original issue: https://github.com/migueldeicaza/SwiftGodot/issues/386

migueldeicaza commented 1 month ago

We have a similar crash now, this time on Swift 5.10.1

trying to get Linux information

jakobwinkler commented 4 weeks ago

I'm experiencing a similar issue on Fedora 39, Swift version 5.10.1 - let me know if I can provide additional information to help with this. I can test on Fedora 40 tonight as well.

Edit: same behavior on Fedora 40.

Another edit: running the same build in docker (docker.io/library/swift:latest, again swift-5.10.1-RELEASE) works.

lupuchard commented 2 weeks ago

I'm seeing the same issue on Linux Mint 22 (Ubuntu 24.04) with Swift 5.10.1