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-12014] Swift compiler Segmentation Fault 11 under Xcode 10.3 #54451

Open
swift-ci opened this issue Jan 11, 2020 · 6 comments
Open

[SR-12014] Swift compiler Segmentation Fault 11 under Xcode 10.3 #54451

swift-ci opened this issue Jan 11, 2020 · 6 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-12014
Radar rdar://problem/58582134
Original Reporter naveenshan (JIRA User)
Type Bug
Environment

Xcode 10.3
Swift 5.0
Optimization Level : None
Bitcode Enabled : YES

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

md5: ffc665e0cf629b1423ddec076845baef

Issue Description:

Recently Upgraded to swift 5.0, using Xcode 10.3, Bitcode Enabled.

Failing only while doing Archive.

MergeSwiftModule normal x86_64 /Users/<>/Library/Developer/Xcode/DerivedData/Shop-gciqtghedlerscdyfwdjebtyomhe/Build/Intermediates.noindex/Shop.build/Debug-iphonesimulator/<APP>.build/Objects-normal/x86_64/<APP_NAME>.swiftmodule

Stack Trace :

0 swift 0x0000000112a0fee3 PrintStackTraceSignalHandler(void*) + 51

1 swift 0x0000000112a0f6bc SignalHandler(int) + 348

2 libsystem_platform.dylib 0x00007fff688e2b5d _sigtramp + 29

3 libsystem_platform.dylib 000000000000000000 _sigtramp + 2540819648

4 swift 0x000000010fd9b233 std::__1::pair<llvm::StringMapIterator<char>, bool> llvm::StringMap<char, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul>&>::try_emplace<char>(llvm::StringRef, char&&) + 35

5 swift 0x000000010fc7fc6a swift::ClangImporter::Implementation::finishLoadingClangModule(clang::Module const*, bool) + 346

6 swift 0x000000010fc93021 swift::ClangImporter::Implementation::handleDeferredImports() + 561

7 swift 0x000000010fc92b4b swift::ClangImporter::Implementation::importHeader(swift::ModuleDecl*, llvm::StringRef, swift::SourceLoc, bool, std::_1::unique_ptr<llvm::MemoryBuffer, std::_1::default_delete<llvm::MemoryBuffer> >, bool) + 1675

8 swift 0x000000010fc939b2 swift::ClangImporter::importBridgingHeader(llvm::StringRef, swift::ModuleDecl*, swift::SourceLoc, bool, bool) + 946

9 swift 0x000000010f369b49 swift::CompilerInstance::performSemaUpTo(swift::SourceFile::ASTStage_t) + 2393

10 swift 0x000000010e8683f6 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 838

11 swift 0x000000010e8647de swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 6862

12 swift 0x000000010e80287e main + 1246

13 libdyld.dylib 0x00007fff686f73d5 start + 1

@swift-ci
Copy link
Collaborator Author

Comment by Naveen Shan (JIRA)

@tkremenek / @CodaFi We are blocked with the release since we are not able to generate the build, Could you please help us to prioritize this issue.

@CodaFi
Copy link
Member

CodaFi commented Jan 14, 2020

naveenshan (JIRA User) Please don't assign others to issues without consulting with them first. File a radar and attach your project to it so that we can take a look, or attach it here if you do not have intellectual property/privacy/security concerns. A stack trace through the Clang Importer is, unfortunately, not enough information to go off of to effectively triage this issue.

@CodaFi
Copy link
Member

CodaFi commented Jan 14, 2020

Also, please try Xcode 11. Even if we are able to fix this issue, you will not benefit from the fix until you upgrade.

@CodaFi
Copy link
Member

CodaFi commented Jan 14, 2020

@swift-ci create

@swift-ci
Copy link
Collaborator Author

Comment by Naveen Shan (JIRA)

@CodaFi I am sorry that I assigned the lira, I did this to get some attention. I will upgrade the Xcode 11 and come back with results.

@beccadax
Copy link
Contributor

@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
Projects
None yet
Development

No branches or pull requests

3 participants