swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.56k stars 10.35k forks source link

[SR-7892] Swift compiler crashes with `error: Abort trap: 6` status #50427

Closed pitiphong-p closed 6 years ago

pitiphong-p commented 6 years ago
Previous ID SR-7892
Radar None
Original Reporter @pitiphong-p
Type Bug
Status Resolved
Resolution Duplicate
Environment Xcode 10 beta 1, Swift 4.2, macOS 10.13.5
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 0 | |Component/s | | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: 6ea5e76f7748c472ced3191612024aef

duplicates:

Issue Description:

Hello, I tried the Xcode 10 with the Swift 4.2 and found that the Swift compiler crashes on one of our open source projects with

\<unknown>:0: error: fatal error encountered while reading from module 'OmiseSDK'; please file a bug report with your project and the crash log

*

**

      • DESERIALIZATION FAILURE (please include this section in any bug report) ***

result is ambiguous

0 swift 0x0000000109229c5a PrintStackTraceSignalHandler(void*) + 42

1 swift 0x0000000109229066 SignalHandler(int) + 966

2 libsystem_platform.dylib 0x00007fff66317f5a _sigtramp + 26

3 libsystem_platform.dylib 0x000000010d668608 _sigtramp + 2805270216

4 libsystem_c.dylib 0x00007fff660b51ae abort + 127

5 swift 0x00000001066cf99b swift::ModuleFile::fatal(llvm::Error) + 1915

6 swift 0x00000001067074d2 swift::SILDeserializer::readGlobalVar(llvm::StringRef) + 1890

7 swift 0x00000001067b1f9a swift::SerializedSILLoader::getAllForModule(swift::Identifier, swift::FileUnit*) + 234

8 swift 0x0000000105504dbe performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef\<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 34750

9 swift 0x00000001054f910f swift::performFrontend(llvm::ArrayRef\<char const*>, char const*, void*, swift::FrontendObserver*) + 7839

10 swift 0x00000001054a2c48 main + 13144

11 libdyld.dylib 0x00007fff66009015 start + 1

12 libdyld.dylib 0x0000000000000061 start + 2583654477

...

1. While deserializing SIL global "UIEdgeInsetsZero"

error: Abort trap: 6

You can try by building `https://github.com/omise/omise-ios/` repository on `swift-4.2` branch on the `OmiseSDK` scheme

nevil commented 6 years ago

I believe that this is a duplicate of SR-7879.

pitiphong-p commented 6 years ago

@nevil Oh year, you're right 🙂