Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
swift-ci opened this issue Nov 4, 2020 · 2 comments
Open

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

swift-ci opened this issue Nov 4, 2020 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself IRGen LLVM IR generation

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Nov 4, 2020

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')

@typesanitizer
Copy link

Can you try building with a recent toolchain snapshot from https://swift.org/download/#snapshots? If this trips up an assert, it may help in narrowing down the issue. If you can privately share the project, you can also send a bug report through feedbackassistant.apple.com and attach your project.

@typesanitizer
Copy link

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself IRGen LLVM IR generation
Projects
None yet
Development

No branches or pull requests

2 participants