Xcode 7.1: Swift compiler crash when trying to use an @obj protocol with default implementation
| Originator: | dieter.komendera | ||
| Number: | rdar://23333372 | Date Originated: | 30-Oct-2015 05:20 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 7.1 (7B91b) |
| Classification: | Crash/Hang/Data Loss | Reproducible: | Always |
Summary: When trying to use an @obj protocol with a default implementation the swift compiler segfaults. 0 swift 0x0000000104e4e33b llvm::sys::PrintStackTrace(__sFILE*) + 43 1 swift 0x0000000104e4ea7b SignalHandler(int) + 379 2 libsystem_platform.dylib 0x00007fff92abd52a _sigtramp + 26 3 swift 0x00000001032c0d03 void llvm::impl::BCRecordCoding<llvm::BCFixed<1u>, llvm::BCFixed<1u>, llvm::BCFixed<2u>, llvm::BCFixed<1u>, llvm::BCFixed<1u>, llvm::BCFixed<1u>, llvm::BCVBR<5u>, llvm::BCFixed<31u>, llvm::BCFixed<31u>, llvm::BCFixed<31u>, llvm::BCFixed<31u>, llvm::BCFixed<31u>, llvm::BCFixed<1u>, llvm::BCFixed<3u>, llvm::BCFixed<2u>, llvm::BCArray<llvm::BCFixed<31u> > >::emit<llvm::SmallVector<unsigned long long, 64u>, bool, bool, unsigned char, bool, bool, bool, unsigned long, llvm::Fixnum<31u, unsigned int>, llvm::Fixnum<31u, unsigned int>, llvm::Fixnum<31u, unsigned int>, llvm::Fixnum<31u, unsigned int>, llvm::Fixnum<31u, unsigned int>, bool, unsigned char, unsigned char, llvm::SmallVector<llvm::Fixnum<31u, unsigned int>, 4u> >(llvm::BitstreamWriter&, llvm::SmallVector<unsigned long long, 64u>&, unsigned int, bool, bool, unsigned char, bool, bool, bool, unsigned long, llvm::Fixnum<31u, unsigned int>, llvm::Fixnum<31u, unsigned int>, llvm::Fixnum<31u, unsigned int>, llvm::Fixnum<31u, unsigned int>, llvm::Fixnum<31u, unsigned int>, bool, unsigned char, unsigned char, llvm::SmallVector<llvm::Fixnum<31u, unsigned int>, 4u>) + 387 4 swift 0x0000000103299df5 swift::serialization::Serializer::writeNormalConformance(swift::NormalProtocolConformance const*) + 901 5 swift 0x00000001032a55db swift::serialization::Serializer::writeAllDeclsAndTypes() + 8139 Steps to Reproduce: * compile the attached project Expected Results: * compiles or produces an error Actual Results: * swift compiler crashes Regression: Didn’t test other versions Notes:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!