Skip to content

[SR-11630] Broken module found, compilation aborted! Trap 6 #54041

Open
@krzyzanowskim

Description

@krzyzanowskim
Previous ID SR-11630
Radar rdar://problem/56378005
Original Reporter @krzyzanowskim
Type Bug

Attachment: Download

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, CompilerCrash
Assignee None
Priority Medium

md5: b06099272141edaa8c5a64a008703bfa

Issue Description:

Xcode 11.1 said I should report crash log, so I'm doing:

To reproduce, try to build Tests for https://github.com/krzyzanowskim/CryptoSwift

Global variable initializer type does not match global variable type!
[12 x i8]* @"$s11CryptoSwift15BlockModeOptionV4noneACvpZ"
Global variable initializer type does not match global variable type!
[12 x i8]* @"$s11CryptoSwift15BlockModeOptionV28initializationVectorRequiredACvpZ"
Global variable initializer type does not match global variable type!
[12 x i8]* @"$s11CryptoSwift15BlockModeOptionV15paddingRequiredACvpZ"
Global variable initializer type does not match global variable type!
[12 x i8]* @"$s11CryptoSwift15BlockModeOptionV19useEncryptToDecryptACvpZ"
<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!
0  swift                    0x0000000106bfeeb3 PrintStackTraceSignalHandler(void*) + 51
1  swift                    0x0000000106bfe686 SignalHandler(int) + 358
2  libsystem_platform.dylib 0x00007fff7caa6b5d _sigtramp + 29
3  libsystem_platform.dylib 0x0000700008c306f0 _sigtramp + 2350422960
4  libsystem_c.dylib        0x00007fff7c9606a6 abort + 127
5  swift                    0x000000010284d150 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                    0x0000000106b77cd6 llvm::report_fatal_error(llvm::Twine const&, bool) + 278
7  swift                    0x0000000106b77bbb llvm::report_fatal_error(char const*, bool) + 43
8  swift                    0x0000000106b37e9c (anonymous namespace)::VerifierLegacyPass::doFinalization(llvm::Module&) + 204
9  swift                    0x0000000106ad9423 llvm::FPPassManager::doFinalization(llvm::Module&) + 51
10 swift                    0x0000000106ae1a72 llvm::legacy::FunctionPassManagerImpl::doFinalization(llvm::Module&) + 82
11 swift                    0x0000000102a64f15 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                    0x0000000102a699a0 (anonymous namespace)::LLVMCodeGenThreads::Thread::run() + 208
13 swift                    0x0000000102a69849 (anonymous namespace)::LLVMCodeGenThreads::runThread(void*) + 9
14 libsystem_pthread.dylib  0x00007fff7caaf2eb _pthread_body + 126
15 libsystem_pthread.dylib  0x00007fff7cab2249 _pthread_start + 66
16 libsystem_pthread.dylib  0x00007fff7caae40d thread_start + 13
error: Abort trap: 6 (in target 'CryptoSwift' from project 'CryptoSwift')

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfcrashBug: A crash, i.e., an abnormal termination of software

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions