-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Open
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.crashBug: A crash, i.e., an abnormal termination of softwareBug: A crash, i.e., an abnormal termination of softwaretriage neededThis issue needs more specific labelsThis issue needs more specific labels
Description
Description
Swift Configuration is failing to compile with swiftlang/swift:nightly-6.2-jammy: sha256:175e1f249a242e51fe373da1d87a6f1c34cfe7f94cdfb4f8cc8eb643f78f2397
Swift version 6.2-dev (LLVM aeffdf35e6603d0, Swift 678ec6e)
Target: aarch64-unknown-linux-gnu
Build config: +assertions
See the details in the Stack Dump section below.
This works fine on the released version of Swift 6.2, and works fine on the nightly main toolchains as well, so it seems like a regression specific to Swift 6.2.x.
Reproduction
git clone https://github.com/czechboy0/swift-configuration
git checkout 5ba74d98985211f97488ca4ea6943a2d097865cb
swift test --enable-all-traits
Stack dump
(I couldn't copy the full diagnostic text, as it was longer than 65k, which the GitHub issue template rejected)
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0. Program arguments: /usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /swift-configuration/Sources/Configuration/AccessReporter.swift /swift-configuration/Sources/Configuration/AccessReporters/AccessLogger.swift /swift-configuration/Sources/Configuration/AccessReporters/FileAccessLogger.swift /swift-configuration/Sources/Configuration/ConfigContext.swift /swift-configuration/Sources/Configuration/ConfigKey.swift /swift-configuration/Sources/Configuration/ConfigProvider.swift /swift-configuration/Sources/Configuration/ConfigProviderHelpers.swift /swift-configuration/Sources/Configuration/ConfigReader+internalHelpers.swift /swift-configuration/Sources/Configuration/ConfigReader+methods.swift /swift-configuration/Sources/Configuration/ConfigReader.swift /swift-configuration/Sources/Configuration/ConfigSnapshotReader+methods.swift /swift-configuration/Sources/Configuration/ConfigSnapshotReader.swift /swift-configuration/Sources/Configuration/Deprecations.swift /swift-configuration/Sources/Configuration/ExpressibleByConfigString.swift /swift-configuration/Sources/Configuration/KeyCoders/CLIKeyEncoder.swift /swift-configuration/Sources/Configuration/KeyCoders/ConfigKeyDecoder.swift /swift-configuration/Sources/Configuration/KeyCoders/ConfigKeyEncoder.swift /swift-configuration/Sources/Configuration/KeyCoders/SeparatorKeyDecoder.swift /swift-configuration/Sources/Configuration/KeyCoders/SeparatorKeyEncoder.swift /swift-configuration/Sources/Configuration/MultiProvider.swift /swift-configuration/Sources/Configuration/Providers/CLI/CLIArgumentParser.swift /swift-configuration/Sources/Configuration/Providers/CLI/CLISnapshot.swift /swift-configuration/Sources/Configuration/Providers/CLI/CommandLineArgumentsProvider.swift /swift-configuration/Sources/Configuration/Providers/EnvironmentVariables/EnvironmentFileParser.swift /swift-configuration/Sources/Configuration/Providers/EnvironmentVariables/EnvironmentKeyEncoder.swift /swift-configuration/Sources/Configuration/Providers/EnvironmentVariables/EnvironmentVariablesProvider.swift /swift-configuration/Sources/Configuration/Providers/Files/CommonProviderFileSystem.swift /swift-configuration/Sources/Configuration/Providers/Files/DirectoryFilesProvider.swift /swift-configuration/Sources/Configuration/Providers/Files/FileProvider.swift /swift-configuration/Sources/Configuration/Providers/Files/FileProviderSnapshot.swift /swift-configuration/Sources/Configuration/Providers/Files/JSONSnapshot.swift /swift-configuration/Sources/Configuration/Providers/Files/ReloadingFileProvider.swift /swift-configuration/Sources/Configuration/Providers/Files/ReloadingFileProviderMetrics.swift /swift-configuration/Sources/Configuration/Providers/Files/YAMLSnapshot.swift /swift-configuration/Sources/Configuration/Providers/InMemory/InMemoryProvider.swift /swift-configuration/Sources/Configuration/Providers/InMemory/MutableInMemoryProvider.swift /swift-configuration/Sources/Configuration/Providers/Wrappers/ConfigProvider+Operators.swift /swift-configuration/Sources/Configuration/Providers/Wrappers/KeyMappingProvider.swift /swift-configuration/Sources/Configuration/SecretsSpecifier.swift /swift-configuration/Sources/Configuration/Utilities/AsyncSequences.swift /swift-configuration/Sources/Configuration/Utilities/FoundationExtensions.swift /swift-configuration/Sources/Configuration/Utilities/Span.swift /swift-configuration/Sources/Configuration/Utilities/combineLatestOneOrMore.swift /swift-configuration/Sources/Configuration/ValueCoders/ConfigBytesFromStringDecoder.swift -target x86_64-unknown-linux-gnu -disable-objc-interop -I /swift-configuration/.build/x86_64-unknown-linux-gnu/debug/Modules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /swift-configuration/.build/x86_64-unknown-linux-gnu/debug/ModuleCache -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D LoggingSupport -D ReloadingSupport -D CommandLineArgumentsSupport -D JSONSupport -D YAMLSupport -enable-upcoming-feature ExistentialAny -enable-upcoming-feature MemberImportVisibility -enable-upcoming-feature InternalImportsByDefault -enable-experimental-feature "AvailabilityMacro=Configuration 1.0:macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0" -empty-abi-descriptor -enable-anonymous-context-mangled-names -file-compilation-dir /swift-configuration -Xcc -fmodule-map-file=/swift-configuration/.build/checkouts/swift-system/Sources/CSystem/include/module.modulemap -Xcc -I -Xcc /swift-configuration/.build/checkouts/swift-system/Sources/CSystem/include -Xcc -fmodule-map-file=/swift-configuration/.build/checkouts/Yams/Sources/CYaml/include/module.modulemap -Xcc -I -Xcc /swift-configuration/.build/checkouts/Yams/Sources/CYaml/include -Xcc -fPIC -Xcc -g -Xcc -fno-omit-frame-pointer -no-auto-bridging-header-chaining -module-name Configuration -package-name swift_configuration -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /swift-configuration/.build/x86_64-unknown-linux-gnu/debug/Modules/Configuration.swiftdoc -emit-module-source-info-path /swift-configuration/.build/x86_64-unknown-linux-gnu/debug/Modules/Configuration.swiftsourceinfo -emit-objc-header-path /swift-configuration/.build/x86_64-unknown-linux-gnu/debug/Configuration.build/include/Configuration-Swift.h -serialize-diagnostics-path /swift-configuration/.build/x86_64-unknown-linux-gnu/debug/Configuration.build/Configuration.emit-module.dia -emit-dependencies-path /swift-configuration/.build/x86_64-unknown-linux-gnu/debug/Configuration.build/Configuration.emit-module.d -parse-as-library -o /swift-configuration/.build/x86_64-unknown-linux-gnu/debug/Modules/Configuration.swiftmodule
1. Swift version 6.2-dev (LLVM aeffdf35e6603d0, Swift 678ec6ec6001c6a)
2. Compiling with the current language version
3. While evaluating request ASTLoweringRequest(Lowering AST to SIL for module Configuration)
4. While silgen emitFunction SIL function "@$s13Configuration21ReloadingFileProviderC14reloadIfNeeded6loggery7Logging6LoggerV_tYaKF".
for 'reloadIfNeeded(logger:)' (at /swift-configuration/Sources/Configuration/Providers/Files/ReloadingFileProvider.swift:271:14)
5. While verifying SIL function "@$s13Configuration21ReloadingFileProviderC14reloadIfNeeded6loggery7Logging6LoggerV_tYaKF".
for 'reloadIfNeeded(logger:)' (at /swift-configuration/Sources/Configuration/Providers/Files/ReloadingFileProvider.swift:271:14)
#0 0x000055e5dc409228 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/bin/swift-frontend+0x8c14228)
#1 0x000055e5dc406d4e llvm::sys::RunSignalHandlers() (/usr/bin/swift-frontend+0x8c11d4e)
#2 0x000055e5dc4098c1 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
#3 0x00007fe39995f520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#4 0x00007fe3999b39fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
#5 0x00007fe39995f476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
#6 0x00007fe3999457f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
#7 0x000055e5d5b6d9b9 (/usr/bin/swift-frontend+0x23789b9)
#8 0x000055e5d5b75ed8 (anonymous namespace)::SILVerifier::visitSILFunction(swift::SILFunction*) SILVerifier.cpp:0:0
#9 0x000055e5d5b6e4c8 swift::SILFunction::verify(swift::CalleeCache*, bool, bool, bool) const (/usr/bin/swift-frontend+0x23794c8)
#10 0x000055e5d4f69407 swift::Lowering::SILGenModule::postEmitFunction(swift::SILDeclRef, swift::SILFunction*) crtstuff.c:0:0
#11 0x000055e5d4f68a87 swift::Lowering::SILGenModule::emitFunctionDefinition(swift::SILDeclRef, swift::SILFunction*) crtstuff.c:0:0
#12 0x000055e5d4f6a02e swift::Lowering::SILGenModule::emitOrDelayFunction(swift::SILDeclRef) crtstuff.c:0:0
#13 0x000055e5d4f6709c swift::Lowering::SILGenModule::emitFunction(swift::FuncDecl*) crtstuff.c:0:0
#14 0x000055e5d50a0452 (anonymous namespace)::SILGenType::visitFuncDecl(swift::FuncDecl*) SILGenType.cpp:0:0
#15 0x000055e5d509b7ec (anonymous namespace)::SILGenType::emitType() SILGenType.cpp:0:0
#16 0x000055e5d509b738 swift::Lowering::SILGenModule::visitNominalTypeDecl(swift::NominalTypeDecl*) crtstuff.c:0:0
#17 0x000055e5d4f6d113 swift::Lowering::SILGenModule::emitSourceFile(swift::SourceFile*) crtstuff.c:0:0
#18 0x000055e5d4f6d864 swift::ASTLoweringRequest::evaluate(swift::Evaluator&, swift::ASTLoweringDescriptor) const (/usr/bin/swift-frontend+0x1778864)
#19 0x000055e5d5081356 swift::SimpleRequest<swift::ASTLoweringRequest, std::unique_ptr<swift::SILModule, std::default_delete<swift::SILModule>> (swift::ASTLoweringDescriptor), (swift::RequestFlags)17>::evaluateRequest(swift::ASTLoweringRequest const&, swift::Evaluator&) crtstuff.c:0:0
#20 0x000055e5d4f72803 swift::ASTLoweringRequest::OutputType swift::Evaluator::getResultUncached<swift::ASTLoweringRequest, swift::ASTLoweringRequest::OutputType swift::evaluateOrFatal<swift::ASTLoweringRequest>(swift::Evaluator&, swift::ASTLoweringRequest)::'lambda'()>(swift::ASTLoweringRequest const&, swift::ASTLoweringRequest::OutputType swift::evaluateOrFatal<swift::ASTLoweringRequest>(swift::Evaluator&, swift::ASTLoweringRequest)::'lambda'()) crtstuff.c:0:0
#21 0x000055e5d4f6de93 swift::performASTLowering(swift::ModuleDecl*, swift::Lowering::TypeConverter&, swift::SILOptions const&, swift::IRGenOptions const*) (/usr/bin/swift-frontend+0x1778e93)
#22 0x000055e5d47449e9 swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) (/usr/bin/swift-frontend+0xf4f9e9)
#23 0x000055e5d475644a withSemanticAnalysis(swift::CompilerInstance&, swift::FrontendObserver*, llvm::function_ref<bool (swift::CompilerInstance&)>, bool) FrontendTool.cpp:0:0
#24 0x000055e5d47477de performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) FrontendTool.cpp:0:0
#25 0x000055e5d4746878 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) (/usr/bin/swift-frontend+0xf51878)
#26 0x000055e5d44bd92b swift::mainEntry(int, char const**) (/usr/bin/swift-frontend+0xcc892b)
#27 0x00007fe399946d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#28 0x00007fe399946e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#29 0x000055e5d44bc925 _start (/usr/bin/swift-frontend+0xcc7925)
error: fatalError
Expected behavior
Wouldn't crash, would either compile successfully or provide an actionable diagnostic.
Environment
Swift version 6.2-dev (LLVM aeffdf35e6603d0, Swift 678ec6e)
Target: aarch64-unknown-linux-gnu
Build config: +assertions
Additional information
No response
Metadata
Metadata
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.crashBug: A crash, i.e., an abnormal termination of softwareBug: A crash, i.e., an abnormal termination of softwaretriage neededThis issue needs more specific labelsThis issue needs more specific labels