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-13030] Swift compiler crash Abort trap: 6 #55475

Open
swift-ci opened this issue Jun 16, 2020 · 5 comments
Open

[SR-13030] Swift compiler crash Abort trap: 6 #55475

swift-ci opened this issue Jun 16, 2020 · 5 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software serialization Area → compiler: Serialization & deserialization

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-13030
Radar None
Original Reporter mark@marknorgren.com (JIRA User)
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, CompilerCrash, Serialization
Assignee None
Priority Medium

md5: a710b30934dd44d1298ffde83ff0d0f8

Issue Description:

I am attempting to re-create this in a project I can attach, but I have not been able to re-create in a new project.

We are using Sourcery for code generation within our project. It appears to happen once that file goes over a line count / size.

I have worked around this issue by breaking up our generated code into separate files for now.


Xcode Version 11.4.1 (11E503a)
Apple Swift version 5.2.2 (swiftlang-1103.0.32.6 clang-1103.0.32.51)

1. Apple Swift version 5.2.2 (swiftlang-1103.0.32.6 clang-1103.0.32.51) 2. Contents of /var/folders/h7/1wdv8g4n4sggzg5dbg5cy6y40000gn/T/inputs-27e459: 3. While deserializing SIL witness table for protocol conformance to 'InternalDecodable' (in module 'SmartThingsCore') for type 'SSE.Subscription.Filter' 4. While cross-referencing conformance for 'Coded' (in module 'SmartThingsCore') 5. While ... to 'Decodable' (in module 'Swift') 6. If you're seeing a crash here, check that your SDK and dependencies are at least as new as the versions used to build 'SmartThingsCore' 0 swift 0x0000000104ebf4ea PrintStackTraceSignalHandler(void*) + 42 1 swift 0x0000000104ebecc0 SignalHandler(int) + 352 2 libsystem_platform.dylib 0x00007fff716b75fd _sigtramp + 29 3 libsystem_platform.dylib 0x00007f958c03a000 _sigtramp + 446179872 4 libsystem_c.dylib 0x00007fff7158d808 abort + 120 5 swift 0x0000000101908ce1 swift::ModuleFile::readConformanceChecked(llvm::BitstreamCursor&, swift::GenericEnvironment*) + 3569 6 swift 0x000000010193e3a9 swift::SILDeserializer::readWitnessTableEntries(llvm::BitstreamEntry&, std::1::vector<swift::SILWitnessTable::Entry, std::1::allocator<swift::SILWitnessTable::Entry> >&, std::1::vector<swift::SILWitnessTable::ConditionalConformance, std::_1::allocator<swift::SILWitnessTable::ConditionalConformance> >&) + 857 7 swift 0x000000010193ee53 swift::SILDeserializer::readWitnessTableChecked(llvm::PointerEmbeddedInt<unsigned int, 31>, swift::SILWitnessTable*) + 1507 8 swift 0x000000010193f0d8 swift::SILDeserializer::getAllWitnessTables() + 120 9 swift 0x00000001019cd03b swift::SerializedSILLoader::getAllForModule(swift::Identifier, swift::FileUnit*) + 603 10 swift 0x0000000100f1da4e swift::CompilerInstance::performSILProcessing(swift::SILModule*, swift::UnifiedStatsReporter*) + 142 11 swift 0x0000000100c1b450 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*) + 1712 12 swift 0x0000000100c12f75 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 55813 13 swift 0x0000000100b88f53 main + 1283 14 libdyld.dylib 0x00007fff714becc9 start + 1 15 libdyld.dylib 0x000000000000005a start + 2394166162 error: Abort trap: 6 (in target 'InternalSmartThingsCore-iOS' from project 'SmartKit')

@theblixguy
Copy link
Collaborator

Could you provide a reproducer?

@swift-ci
Copy link
Collaborator Author

Comment by Mark (JIRA)

@theblixguyI am working on re-creating it in a project I can attach, but I have not been able to do so yet.

@swift-ci
Copy link
Collaborator Author

Comment by Mark (JIRA)

I did just confirm this is NOT fixed in Xcode Version 12.0 beta (12A6159)

@theblixguy
Copy link
Collaborator

It might be worth trying out the trunk development snapshot from swift.org as the issue might have already been fixed on master.

@swift-ci
Copy link
Collaborator Author

Comment by Mark (JIRA)

Built with Swift 5.3 Development June 18, 2020:

https://gist.github.com/marknorgren/2b15f035dbbce7bcc27bbd55bcbeebed

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the crash Bug: A crash, i.e., an abnormal termination of software label Dec 12, 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 crash Bug: A crash, i.e., an abnormal termination of software serialization Area → compiler: Serialization & deserialization
Projects
None yet
Development

No branches or pull requests

3 participants