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-8553] CodeCompletion: abort() called – llvm::BitstreamCursor::readRecord #51071
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
code completion
Area → source tooling: code completion
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
source tooling
Area: IDE support, SourceKit, and other source tooling
Comments
@swift-ci create |
Triggering thread: Thread 3:
0 libsystem_kernel.dylib 0x00007fff6a18ffc6 __ulock_wait + 10
1 libsystem_pthread.dylib 0x00007fff6a22f761 _pthread_join + 356
2 com.apple.SourceKitService.4.2.2018081601_osx 0x000000010fa3621a llvm::llvm_execute_on_thread(void (*)(void*), void*, unsigned int) + 90
3 com.apple.SourceKitService.4.2.2018081601_osx 0x000000010f9ca771 llvm::CrashRecoveryContext::RunSafelyOnThread(llvm::function_ref<void ()>, unsigned int) + 81
4 com.apple.SourceKitService.4.2.2018081601_osx 0x000000011099a6d6 compileModuleImpl(clang::CompilerInstance&, clang::SourceLocation, llvm::StringRef, clang::FrontendInputFile, llvm::StringRef, llvm::StringRef, llvm::function_ref<void (clang::CompilerInstance&)>, llvm::function_ref<void (clang::CompilerInstance&)>) + 3766
5 com.apple.SourceKitService.4.2.2018081601_osx 0x0000000110997bb4 clang::CompilerInstance::loadModule(clang::SourceLocation, llvm::ArrayRef<std::__1::pair<clang::IdentifierInfo*, clang::SourceLocation> >, clang::Module::NameVisibilityKind, bool) + 14116
6 com.apple.SourceKitService.4.2.2018081601_osx 0x0000000110310755 swift::ClangImporter::loadModule(swift::SourceLoc, llvm::ArrayRef<std::__1::pair<swift::Identifier, swift::SourceLoc> >)::$_6::operator()(llvm::ArrayRef<std::__1::pair<clang::IdentifierInfo*, clang::SourceLocation> >, bool) const + 405
7 com.apple.SourceKitService.4.2.2018081601_osx 0x0000000110310377 swift::ClangImporter::loadModule(swift::SourceLoc, llvm::ArrayRef<std::__1::pair<swift::Identifier, swift::SourceLoc> >) + 599
8 com.apple.SourceKitService.4.2.2018081601_osx 0x0000000110401a23 swift::ASTContext::getModule(llvm::ArrayRef<std::__1::pair<swift::Identifier, swift::SourceLoc> >) + 115
9 com.apple.SourceKitService.4.2.2018081601_osx 0x00000001101d1fae swift::performNameBinding(swift::SourceFile&, unsigned int) + 2078
10 com.apple.SourceKitService.4.2.2018081601_osx 0x000000010faa8e20 swift::CompilerInstance::parseLibraryFile(unsigned int, swift::CompilerInstance::ImplicitImports const&, swift::PersistentParserState&, swift::DelayedParsingCallbacks*, swift::DelayedParsingCallbacks*) + 304
11 com.apple.SourceKitService.4.2.2018081601_osx 0x000000010faa8762 swift::CompilerInstance::parsePartialModulesAndLibraryFiles(swift::CompilerInstance::ImplicitImports const&, swift::PersistentParserState&, swift::DelayedParsingCallbacks*, swift::DelayedParsingCallbacks*) + 354
12 com.apple.SourceKitService.4.2.2018081601_osx 0x000000010faa751f swift::CompilerInstance::parseAndCheckTypesUpTo(swift::CompilerInstance::ImplicitImports const&, swift::SourceFile::ASTStage_t) + 495
13 com.apple.SourceKitService.4.2.2018081601_osx 0x000000010faa6ae3 swift::CompilerInstance::performSemaUpTo(swift::SourceFile::ASTStage_t) + 627
14 com.apple.SourceKitService.4.2.2018081601_osx 0x000000010f916780 void SourceKit::WorkQueue::DispatchData::callAndDelete<(anonymous namespace)::ASTProducer::getASTUnitAsync(SourceKit::SwiftASTManager::Implementation&, llvm::ArrayRef<llvm::IntrusiveRefCntPtr<SourceKit::ImmutableTextSnapshot> >, std::__1::function<void (llvm::IntrusiveRefCntPtr<SourceKit::ASTUnit>, llvm::StringRef)>)::$_3>(void*) + 5360
15 libdispatch.dylib 0x00007fff69fecdcb _dispatch_client_callout + 8
16 libdispatch.dylib 0x00007fff69fefb68 _dispatch_block_invoke_direct + 260
17 com.apple.SourceKitService.4.2.2018081601_osx 0x000000011235039f executeBlock(void*) + 15
18 com.apple.SourceKitService.4.2.2018081601_osx 0x000000010fa3623d ExecuteOnThread_Dispatch(void*) + 13
19 libsystem_pthread.dylib 0x00007fff6a22b881 _pthread_body + 126
20 libsystem_pthread.dylib 0x00007fff6a22b7f3 _pthread_start + 70
21 libsystem_pthread.dylib 0x00007fff6a22b3bd thread_start + 13 |
This should have been fixed via these commits: To github.com:apple/swift-clang.git To github.com:apple/swift-clang.git From rdar://43533418 |
This no longer reproduces, so looks like the fixes above worked. |
AnthonyLatsis
added
crash
Bug: A crash, i.e., an abnormal termination of software
compiler
The Swift compiler in itself
labels
Dec 12, 2022
AnthonyLatsis
added
the
source tooling
Area: IDE support, SourceKit, and other source tooling
label
Feb 6, 2023
This issue was closed.
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.
code completion
Area → source tooling: code completion
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
source tooling
Area: IDE support, SourceKit, and other source tooling
Additional Detail from JIRA
md5: 53f52fc259fb6266c7477ee335495808
relates to:
Issue Description:
Using Xcode 10 beta 5 and the August 14 swift.org development toolchain the below steps crash SourceKitService:
Open the Xcode project then invoke code completion after ‘import’ at AsyncNinja/Sources/BaseProducer.swift:23:8
The text was updated successfully, but these errors were encountered: