-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
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.compilerThe Swift compiler itselfThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of softwareBug: A crash, i.e., an abnormal termination of softwareincremental compilationlegacy driverArea → compiler: the integrated C++ legacy driver. Succeeded by the swift-driver projectArea → compiler: the integrated C++ legacy driver. Succeeded by the swift-driver projectnon-optimized onlyFlag: An issue whose reproduction requires non-optimized compilationFlag: An issue whose reproduction requires non-optimized compilationregressionswift 5.1
Description
Previous ID | SR-11245 |
Radar | rdar://problem/53817884 |
Original Reporter | alexg (JIRA User) |
Type | Bug |
Environment
Version 11.0 beta 5 (11M382q), Swift 5 or 4.2 - it doesn't matter.
Additional Detail from JIRA
Votes | 0 |
Component/s | Compiler |
Labels | Bug, 5.1Regression, Serialization |
Assignee | None |
Priority | Medium |
md5: 454c924775eb9eeabd4b7f1de4018b17
Issue Description:
When trying to build project with Debug configuration where SWIFT_COMPILATION_MODE is set to Incremental, the target fails to build.
Meanwhile when using whole module compilation mode target successfully builds. When using xcode 10.3 everything builds fine as well.
2. While running pass #​0 SILModuleTransform "SerializeSILPass".
3. While serializing declaration 0x119d892b8 (in module 'OneTwoTrip')
4. failed to serialize anything
0 swift 0x0000000110cdd0e3 PrintStackTraceSignalHandler(void*) + 51
1 swift 0x0000000110cdc8b6 SignalHandler(int) + 358
2 libsystem_platform.dylib 0x00007fff6e92fb5d _sigtramp + 29
3 swift 0x00000001116d4000 (anonymous namespace)::DarwinX86AsmBackend::getCompactUnwindRegNum(unsigned int) const::CU32BitRegs + 117520
4 libsystem_c.dylib 0x00007fff6e7ef6a6 abort + 127
5 swift 0x000000010d5c1493 swift::serialization::Serializer::writeDecl(swift::Decl const*) + 68371
6 swift 0x000000010d5d7aff swift::serialization::Serializer::writeAllDeclsAndTypes() + 62287
7 swift 0x000000010d5e4a94 swift::serialization::Serializer::writeAST(llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, bool) + 5364
8 swift 0x000000010d5f19c0 swift::serialization::Serializer::writeToStream(llvm::raw_ostream&, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::SILModule const*, swift::SerializationOptions const&) + 6000
9 swift 0x000000010d5f329b bool llvm::function_ref<bool (llvm::raw_pwrite_stream&)>::callback_fn<swift::serialize(llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::SerializationOptions const&, swift::SILModule const*)::$_8>(long, llvm::raw_pwrite_stream&) + 139
10 swift 0x000000010c904949 swift::withOutputFile(swift::DiagnosticEngine&, llvm::StringRef, llvm::function_ref<bool (llvm::raw_pwrite_stream&)>) + 2569
11 swift 0x000000010d5f30f7 swift::serialize(llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::SerializationOptions const&, swift::SILModule const*) + 311
12 swift 0x000000010c94017b std::__1::__function::__func<performCompileStepsPostSILGen(swift::CompilerInstance&, swift::CompilerInvocation&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule> >, bool, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, bool, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*)::$_12, std::__1::allocator<performCompileStepsPostSILGen(swift::CompilerInstance&, swift::CompilerInvocation&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule> >, bool, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, bool, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*)::$_12>, void ()>::operator()() + 603
13 swift 0x000000010d0e6e51 SerializeSILPass::run() + 49
14 swift 0x000000010cfdd4e9 swift::SILPassManager::execute() + 7305
15 swift 0x000000010cc3a52b swift::CompilerInstance::performSILProcessing(swift::SILModule*, swift::UnifiedStatsReporter*) + 1563
16 swift 0x000000010c936395 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 33925
17 swift 0x000000010c92a704 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 6820
18 swift 0x000000010c8b7f93 main + 1219
19 libdyld.dylib 0x00007fff6e74a3d5 start + 1
20 libdyld.dylib 0x0000000000000c11 start + 2441832509
error: Abort trap: 6 (in target 'OneTwoTrip' from project 'OneTwoTrip')
There are a lot of files in the project, so I don't know how to reproduce it. Do you have any ideas of potential issues? Probably there is an issue with nested types.
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.compilerThe Swift compiler itselfThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of softwareBug: A crash, i.e., an abnormal termination of softwareincremental compilationlegacy driverArea → compiler: the integrated C++ legacy driver. Succeeded by the swift-driver projectArea → compiler: the integrated C++ legacy driver. Succeeded by the swift-driver projectnon-optimized onlyFlag: An issue whose reproduction requires non-optimized compilationFlag: An issue whose reproduction requires non-optimized compilationregressionswift 5.1