Skip to content

[SR-13825] Compiler crash when emitting ObjC protocol data #56223

@swift-ci

Description

@swift-ci
Previous ID SR-13825
Radar rdar://problem/71040133
Original Reporter LIUYANLONG (JIRA User)
Type Bug

Attachment: Download

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

md5: d1f0f1f5bb562e371bab440e1bc19cdd

Issue Description:

when run Swift unit test,I encountered an error,This problem only appears when running unit tests,No clue how to solve the problem。

1. Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53)

2. While emitting ObjC metadata for 'LiveEngineService' (in module 'TutorEngineWrapper')

0 swift 0x00000001106bd4ea PrintStackTraceSignalHandler(void*) + 42

1 swift 0x00000001106bccc0 SignalHandler(int) + 352

2 libsystem_platform.dylib 0x00007fff732655fd _sigtramp + 29

3 libsystem_platform.dylib 0x000000000000004c _sigtramp + 2363075180

4 swift 0x000000010c4e216b swift::irgen::emitObjCProtocolData(swift::irgen::IRGenModule&, swift::ProtocolDecl*) + 971

5 swift 0x000000010c5b9223 swift::irgen::IRGenModule::emitLazyObjCProtocolDefinitions() + 115

6 swift 0x000000010c640615 swift::irgen::IRGenModule::finalize() + 405

7 swift 0x000000010c620e6d swift::performIRGeneration(swift::IRGenOptions&, swift::ModuleDecl*, std::_1::unique_ptr<swift::SILModule, std::1::default_delete<swift::SILModule> >, llvm::StringRef, swift::PrimarySpecificPaths const&, llvm::LLVMContext&, llvm::ArrayRef<std::1::basic_string<char, std::1::char_traits<char>, std::_1::allocator<char> > >, llvm::GlobalVariable**) + 5005

8 swift 0x000000010c4199e1 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*) + 4129

9 swift 0x000000010c410b95 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 55813

10 swift 0x000000010c386b73 main + 1283

11 libdyld.dylib 0x00007fff7306ccc9 start + 1

12 libdyld.dylib 0x00000000000001ab start + 2365142243

error: Illegal instruction: 4 (in target 'TutorTeacherLive-Unit-Tests' from project 'Pods')

Metadata

Metadata

Assignees

No one assigned

    Labels

    IRGenLLVM IR generationbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itself

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions