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

Ycmd crash #2226

Closed
hardboydu opened this issue Jul 4, 2016 · 3 comments
Closed

Ycmd crash #2226

hardboydu opened this issue Jul 4, 2016 · 3 comments

Comments

@hardboydu
Copy link

(gdb) bt
#0 0x000000321b6328a5 in raise () from /lib64/libc.so.6
#1 0x000000321b634085 in abort () from /lib64/libc.so.6
#2 0x000000321b66fa37 in __libc_message () from /lib64/libc.so.6
#3 0x000000321b675366 in malloc_printerr () from /lib64/libc.so.6
#4 0x000000321b678181 in int_free () from /lib64/libc.so.6
#5 0x00007f9dfa5c3c2a in clang::ASTUnit::~ASTUnit() () from /opt/llvm/lib/libclang.so
#6 0x00007f9dfa5c43a5 in llvm::CrashRecoveryContextDeleteCleanupclang::ASTUnit::recoverResources() () from /opt/llvm/lib/libclang.so
#7 0x00007f9dfbbe02c4 in llvm::CrashRecoveryContext::~CrashRecoveryContext() () from /opt/llvm/lib/libclang.so
#8 0x00007f9dfa37c0ce in clang_parseTranslationUnit2FullArgv () from /opt/llvm/lib/libclang.so
#9 0x00007f9dfcf179db in YouCompleteMe::TranslationUnit::TranslationUnit(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<UnsavedFile, std::allocator > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&, void*) () from /home/duxin/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycm_core.so
#10 0x00007f9dfcf21351 in YouCompleteMe::TranslationUnitStore::GetOrCreate(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<UnsavedFile, std::allocator > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&, bool&) () from /home/duxin/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycm_core.so
#11 0x00007f9dfcf23d66 in YouCompleteMe::ClangCompleter::UpdateTranslationUnit(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<UnsavedFile, std::allocator > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&) () from /home/duxin/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycm_core.so
#12 0x00007f9dfcedfc58 in boost::python::objects::caller_py_function_impl<boost::python::detail::caller<std::vector<YouCompleteMe::Diagnostic, std::allocatorYouCompleteMe::Diagnostic > (YouCompleteMe::ClangCompleter::
)(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<UnsavedFile, std::allocator > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&), boost::python::default_call_policies, boost::mpl::vector5<std::vector<YouCompleteMe::Diagnostic, std::allocatorYouCompleteMe::Diagnostic >, YouCompleteMe::ClangCompleter&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::vector<UnsavedFile, std::allocator > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&> > >::operator()(object, _object*) () from /home/duxin/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycm_core.so
#13 0x00007f9dfcf427ea in boost::python::objects::function::call(object, object) const () from /home/duxin/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycm_core.so
#14 0x00007f9dfcf42a08 in boost::detail::function::void_function_ref_invoker0<boost::python::objects::(anonymous namespace)::bind_return, void>::invoke(boost::detail::function::function_buffer&) ()

from /home/duxin/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycm_core.so
#15 0x00007f9dfcf43e16 in boost::python::handle_exception_impl(boost::function0) () from /home/duxin/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycm_core.so
#16 0x00007f9dfcf3fba9 in function_call () from /home/duxin/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycm_core.so
#17 0x00007f9e07ad8143 in PyObject_Call () from /opt/python-2.7.11/lib/libpython2.7.so.1.0
#18 0x00007f9e07b8fc65 in PyEval_EvalFrameEx () at Python/ceval.c:4568
#19 0x00007f9e07b9447c in PyEval_EvalCodeEx () at Python/ceval.c:3582
#20 0x00007f9e07b91c4f in PyEval_EvalFrameEx () at Python/ceval.c:4446
#21 0x00007f9e07b9447c in PyEval_EvalCodeEx () at Python/ceval.c:3582
#22 0x00007f9e07b0951d in function_call () from /opt/python-2.7.11/lib/libpython2.7.so.1.0
#23 0x00007f9e07ad8143 in PyObject_Call () from /opt/python-2.7.11/lib/libpython2.7.so.1.0
#24 0x00007f9e07b8e6aa in PyEval_EvalFrameEx () at Python/ceval.c:4663
#25 0x00007f9e07b9447c in PyEval_EvalCodeEx () at Python/ceval.c:3582
#26 0x00007f9e07b0951d in function_call () from /opt/python-2.7.11/lib/libpython2.7.so.1.0
#27 0x00007f9e07ad8143 in PyObject_Call () from /opt/python-2.7.11/lib/libpython2.7.so.1.0
#28 0x00007f9e07b8e6aa in PyEval_EvalFrameEx () at Python/ceval.c:4663
#29 0x00007f9e07b9447c in PyEval_EvalCodeEx () at Python/ceval.c:3582
#30 0x00007f9e07b0951d in function_call () from /opt/python-2.7.11/lib/libpython2.7.so.1.0
#31 0x00007f9e07ad8143 in PyObject_Call () from /opt/python-2.7.11/lib/libpython2.7.so.1.0
#32 0x00007f9e07b8e6aa in PyEval_EvalFrameEx () at Python/ceval.c:4663
#33 0x00007f9e07b9447c in PyEval_EvalCodeEx () at Python/ceval.c:3582
#34 0x00007f9e07b0951d in function_call () from /opt/python-2.7.11/lib/libpython2.7.so.1.0
#35 0x00007f9e07ad8143 in PyObject_Call () from /opt/python-2.7.11/lib/libpython2.7.so.1.0
#36 0x00007f9e07b8e6aa in PyEval_EvalFrameEx () at Python/ceval.c:4663
#37 0x00007f9e07b9447c in PyEval_EvalCodeEx () at Python/ceval.c:3582
#38 0x00007f9e07b91c4f in PyEval_EvalFrameEx () at Python/ceval.c:4446
#39 0x00007f9e07b9447c in PyEval_EvalCodeEx () at Python/ceval.c:3582
#40 0x00007f9e07b91c4f in PyEval_EvalFrameEx () at Python/ceval.c:4446
#41 0x00007f9e07b9447c in PyEval_EvalCodeEx () at Python/ceval.c:3582
#42 0x00007f9e07b0944c in function_call () from /opt/python-2.7.11/lib/libpython2.7.so.1.0
#43 0x00007f9e07ad8143 in PyObject_Call () from /opt/python-2.7.11/lib/libpython2.7.so.1.0
#44 0x00007f9e07ae962c in instancemethod_call () at Objects/classobject.c:2602
#45 0x00007f9e07ad8143 in PyObject_Call () from /opt/python-2.7.11/lib/libpython2.7.so.1.0
#46 0x00007f9e07b4611a in slot_tp_call () from /opt/python-2.7.11/lib/libpython2.7.so.1.0
#47 0x00007f9e07ad8143 in PyObject_Call () from /opt/python-2.7.11/lib/libpython2.7.so.1.0

---Type to continue, or q to quit---
#48 0x00007f9e07b8fc65 in PyEval_EvalFrameEx () at Python/ceval.c:4568
#49 0x00007f9e07b9447c in PyEval_EvalCodeEx () at Python/ceval.c:3582
#50 0x00007f9e07b91c4f in PyEval_EvalFrameEx () at Python/ceval.c:4446
#51 0x00007f9e07b91d8f in PyEval_EvalFrameEx () at Python/ceval.c:4436
#52 0x00007f9e07b91d8f in PyEval_EvalFrameEx () at Python/ceval.c:4436
#53 0x00007f9e07b9447c in PyEval_EvalCodeEx () at Python/ceval.c:3582
#54 0x00007f9e07b0944c in function_call () from /opt/python-2.7.11/lib/libpython2.7.so.1.0
#55 0x00007f9e07ad8143 in PyObject_Call () from /opt/python-2.7.11/lib/libpython2.7.so.1.0
#56 0x00007f9e07ae962c in instancemethod_call () at Objects/classobject.c:2602
#57 0x00007f9e07ad8143 in PyObject_Call () from /opt/python-2.7.11/lib/libpython2.7.so.1.0
#58 0x00007f9e07b89c27 in PyEval_CallObjectWithKeywords () at Python/ceval.c:4219
#59 0x00007f9e07bd3392 in t_bootstrap () from /opt/python-2.7.11/lib/libpython2.7.so.1.0
#60 0x000000321be07851 in start_thread () from /lib64/libpthread.so.0
#61 0x000000321b6e767d in clone () from /lib64/libc.so.6

(gdb)

@puremourning
Copy link
Member

Please see contributing.md.

At a glance this is crashing in libclang so perhaps it should be reported upstream.

@hardboydu
Copy link
Author

Use the default .ycm_extra_conf.py make clang segmentfailt

Refer to the following link does not appear segmentfailt

https://jonasdevlieghere.com/a-better-youcompleteme-config/

@micbou
Copy link
Collaborator

micbou commented Jul 6, 2016

Read carefully the C-family Semantic Completion section in the documentation and in particular:

See YCM's own .ycm_extra_conf.py for details on how this works. You should be able to use it as a starting point. Don't just copy/paste that file somewhere and expect things to magically work; your project needs different flags.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants