Open swift-ci opened 5 years ago
Attachment: Download
Issue Description:
Attached sample project produces this compiler crash:
Global is external, but doesn't have external or weak linkage! i64* @"$s5Crash1AC2_x33_420416B91640CD683786DD1B87F08660LL8CombineX9PublishedVyAA1EOGvpWvd" <unknown>:0: error: fatal error encountered during compilation; please file a bug report with your project and the crash log <unknown>:0: note: Broken module found, compilation aborted! Stack dump: 0 swift 0x0000000107a17013 PrintStackTraceSignalHandler(void*) + 51 1 swift 0x0000000107a167e6 SignalHandler(int) + 358 2 libsystem_platform.dylib 0x00007fff660b3b1d _sigtramp + 29 3 libsystem_platform.dylib 000000000000000000 _sigtramp + 2582955264 4 libsystem_c.dylib 0x00007fff65f89a08 abort + 120 5 swift 0x00000001036654f0 std::__1::unique_ptr<swift::DiagnosticConsumer, std::__1::default_delete<swift::DiagnosticConsumer> > llvm::function_ref<std::__1::unique_ptr<swift::DiagnosticConsumer, std::__1::default_delete<swift::DiagnosticConsumer> > (swift::InputFile const&)>::callback_fn<createSerializedDiagnosticConsumerIfNeeded(swift::FrontendInputsAndOutputs const&)::$_15>(long, swift::InputFile const&) + 0 6 swift 0x0000000107990236 llvm::report_fatal_error(llvm::Twine const&, bool) + 278 7 swift 0x000000010799011b llvm::report_fatal_error(char const*, bool) + 43 8 swift 0x00000001079503fc (anonymous namespace)::VerifierLegacyPass::doFinalization(llvm::Module&) + 204 9 swift 0x00000001078f1983 llvm::FPPassManager::doFinalization(llvm::Module&) + 51 10 swift 0x00000001078f9fd2 llvm::legacy::FunctionPassManagerImpl::doFinalization(llvm::Module&) + 82 11 swift 0x000000010387d2b5 swift::performLLVM(swift::IRGenOptions&, swift::DiagnosticEngine*, llvm::sys::SmartMutex<false>*, llvm::GlobalVariable*, llvm::Module*, llvm::TargetMachine*, swift::version::Version const&, llvm::StringRef, swift::UnifiedStatsReporter*) + 4677 12 swift 0x000000010366efa3 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 38307 13 swift 0x00000001036621f4 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 6820 14 swift 0x00000001035ef763 main + 1219 15 libdyld.dylib 0x00007fff65eb22a5 start + 1 16 libdyld.dylib 0x0000000000000040 start + 2585058716 error: Abort trap: 6 (in target 'Crash' from project 'Crash')
Seems to reproduce on master too.
@swift-ci create
Attachment: Download
Environment
Xcode 11.0 beta 6 (11M392r)Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug, CompilerCrash, PropertyWrappers | |Assignee | None | |Priority | Medium | md5: a334864b953bb52363b68b1d56f8f37eIssue Description:
Attached sample project produces this compiler crash: