Closed
Description
Observed behavior
ccls crashes:
14:01:31 indexer1 pipeline.cc:344 I parse gh/ch/dbms/src/Formats/FormatFactory.cpp
14:01:31 preamble sema_manager.cc:734 I create session for gh/ch/dbms/src/Formats/FormatFactory.cpp
LLVM ERROR: out of memory
LLVMSymbolizer: error reading file: No such file or directory
#0 0x00007fe75b21d09e llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/lib64/libLLVM-7.so+0x9b409e)
#1 0x00007fe75b21b554 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-7.so+0x9b2554)
#2 0x00007fe75b21b6d5 (/lib64/libLLVM-7.so+0x9b26d5)
#3 0x00007fe75a523030 __restore_rt (/lib64/libpthread.so.0+0x13030)
#4 0x00007fe75a38053f __GI_raise /usr/src/debug/glibc-2.28-60-g4d7af7815a/signal/../sysdeps/unix/sysv/linux/internal-signals.h:84:10
#5 0x00007fe75a36a895 __GI_abort /usr/src/debug/glibc-2.28-60-g4d7af7815a/stdlib/abort.c:81:7
#6 0x00007fe75b19fe34 llvm::report_bad_alloc_error(char const*, bool) (/lib64/libLLVM-7.so+0x936e34)
#7 0x00007fe75b1c4bf1 llvm::SmallVectorBase::grow_pod(void*, unsigned long, unsigned long) (/lib64/libLLVM-7.so+0x95bbf1)
#8 0x00007fe75b1fc0bd llvm::raw_svector_ostream::write_impl(char const*, unsigned long) (/lib64/libLLVM-7.so+0x9930bd)
#9 0x00007fe75b1fcb97 llvm::raw_ostream::write(char const*, unsigned long) (/lib64/libLLVM-7.so+0x993b97)
#10 0x00007fe75b1e895c llvm::Twine::print(llvm::raw_ostream&) const (/lib64/libLLVM-7.so+0x97f95c)
#11 0x00007fe75b1e8b80 llvm::Twine::toVector(llvm::SmallVectorImpl<char>&) const (/lib64/libLLVM-7.so+0x97fb80)
#12 0x00007fe75ea2c54f clang::vfs::InMemoryFileSystem::setCurrentWorkingDirectory(llvm::Twine const&) (/lib64/libclangBasic.so.7+0x1e254f)
#13 0x00007fe75ea2a52e clang::vfs::OverlayFileSystem::pushOverlay(llvm::IntrusiveRefCntPtr<clang::vfs::FileSystem>) (/lib64/libclangBasic.so.7+0x1e052e)
#14 0x00007fe75fe2c00e (/lib64/libclangFrontend.so.7+0x12500e)
#15 0x00007fe75fe2c1fb clang::PrecompiledPreamble::setupPreambleStorage(clang::PrecompiledPreamble::PCHStorage const&, clang::PreprocessorOptions&, llvm::IntrusiveRefCntPtr<clang::vfs::FileSystem>&) (/lib64/libclangFrontend.so.7+0x1251fb)
#16 0x00007fe75fe2c696 clang::PrecompiledPreamble::configurePreamble(clang::PreambleBounds, clang::CompilerInvocation&, llvm::IntrusiveRefCntPtr<clang::vfs::FileSystem>&, llvm::MemoryBuffer*) const (/lib64/libclangFrontend.so.7+0x125696)
#17 0x0000000000483c54 (ccls+0x483c54)
#18 0x000000000047fed8 (ccls+0x47fed8)
#19 0x00007fe75a51858e start_thread /usr/src/debug/glibc-2.28-60-g4d7af7815a/nptl/pthread_create.c:487:7
#20 0x00007fe75a4456a3 __GI___clone /usr/src/debug/glibc-2.28-60-g4d7af7815a/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:97:0
ccls server connection was closed
[Error - 2:01:40 PM] Connection to server got closed. Server will not be restarted.
Expected behavior
ccls should reindex new contents.
Steps to reproduce
- git checkout new revision.
- Open any cpp changed file in vscode.
- Try to use index in any way: hover cursor, find references, etc.
System information
- ccls version (
git describe --tags --long
): 0.20181225.9-35-g1976fec5 - clang version: clang version 7.0.1 (tags/RELEASE_701/final)
- OS: Fedora 29
- Editor: vscode
- Language client (and version): vscode-ccls 0.1.26
Metadata
Metadata
Assignees
Labels
No labels