You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
While performing code completion, vim segfaults due to clang_complete. Here are the details of the system and the problem.
OS: Ubuntu 12.04 , Linux 3.2.0
vim version: VIM - Vi IMproved 7.3 (compiled with python enabled)
clang-complete version: latest pulled today from master
clang version: clang 3.4
Error printed on exit:
Vim: Caught deadly signal SEGV
Vim: preserving files...
Error detected while processing function ClangComplete:Vim: Finished.
line 22:
Exception KeyError: KeyError(140558993356544,) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignoredTraceback (most recent call last):
File "", line 1, in File "~/.vim/bundle/vundle/plugin/libclang.py", line 468, in getCurrentCompletions cancel = int(vim.eval('complete_check()'))
AttributeError: 'NoneType' object has no attribute 'eval'close failed in fi
le object destructor:
sys.excepthook is missing lost sys.stderr
Segmentation fault (core dumped)
backtraces:
Thread 1 (Thread 0x7fd67763d7c0 (LWP 11203)):
#0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:86 #1 0x00007fd675bbbe28 in PyThread_acquire_lock () from /usr/lib/libpython2.7.so.1.0 #2 0x00007fd675bbcd34 in PyEval_RestoreThread () from /usr/lib/libpython2.7.so.1.0 #3 0x00007fd675b85a77 in ?? () from /usr/lib/libpython2.7.so.1.0 #4 0x00007fd675b27914 in ?? () from /usr/lib/libpython2.7.so.1.0 #5 0x00007fd675b86b68 in PyFile_WriteObject () from /usr/lib/libpython2.7.so.1.0 #6 0x00007fd675ac52d7 in PyErr_Display () from /usr/lib/libpython2.7.so.1.0 #7 0x00007fd675ac587c in ?? () from /usr/lib/libpython2.7.so.1.0 #8 0x00007fd675ace5d5 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0 #9 0x00007fd675a8e6b5 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0 #10 0x00007fd675a8e86d in ?? () from /usr/lib/libpython2.7.so.1.0 #11 0x00007fd675b73083 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0 #12 0x00007fd675b739d7 in PyEval_CallObjectWithKeywords () from /usr/lib/libpython2.7.so.1.0 #13 0x00007fd675ac5970 in PyErr_PrintEx () from /usr/lib/libpython2.7.so.1.0 #14 0x00007fd675a8f71c in PyRun_SimpleStringFlags () from /usr/lib/libpython2.7.so.1.0 #15 0x000000000057ccff in ?? () #16 0x000000000057ced8 in ex_python () #17 0x000000000047ffbd in do_cmdline () #18 0x0000000000458d92 in ?? () #19 0x00000000004596f2 in ?? () #20 0x0000000000459ad2 in call_vim_function () #21 0x0000000000440601 in ?? () #22 0x0000000000440e79 in ?? () #23 0x000000000044599d in edit () #24 0x00000000004e0ecc in ?? () #25 0x00000000004e909c in normal_cmd () #26 0x000000000058804f in main_loop () #27 0x0000000000429c2a in main ()
Thread 2 (Thread 0x7fd66a92a700 (LWP 11283)):
#0 0x00007fd675f38148 in pthread_join (threadid=140558993356544, thread_return=0x0) at pthread_join.c:89 #1 0x00007fd6714329fc in llvm::llvm_execute_on_thread(void ()(void), void*, unsigned int) () from libclang.so #2 0x00007fd67141ce5d in llvm::CrashRecoveryContext::RunSafelyOnThread(void ()(void), void*, unsigned int) ()
from libclang.so #3 0x00007fd6713da814 in clang::RunSafely(llvm::CrashRecoveryContext&, void ()(void), void*, unsigned int) ()
from libclang.so #4 0x00007fd6713eb354 in clang_codeCompleteAt () from libclang.so #5 0x00007fd6722cfea4 in ffi_call_unix64 () from /usr/lib/python2.7/lib-dynload/_ctypes.so #6 0x00007fd6722cf8c5 in ffi_call () from /usr/lib/python2.7/lib-dynload/_ctypes.so #7 0x00007fd6722c02c2 in _ctypes_callproc () from /usr/lib/python2.7/lib-dynload/_ctypes.so #8 0x00007fd6722c0aa2 in ?? () from /usr/lib/python2.7/lib-dynload/_ctypes.so #9 0x00007fd675b73083 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0 #10 0x00007fd675acd1fd in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0 #11 0x00007fd675a8e6b5 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0 #12 0x00007fd675ace650 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0 #13 0x00007fd675acf37b in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0 #14 0x00007fd675acf37b in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0 #15 0x00007fd675acf37b in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0 #16 0x00007fd675a8e6b5 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0 #17 0x00007fd675a8e86d in ?? () from /usr/lib/libpython2.7.so.1.0 #18 0x00007fd675b73083 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0 #19 0x00007fd675b573cf in ?? () from /usr/lib/libpython2.7.so.1.0 #20 0x00007fd675b73083 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0 #21 0x00007fd675b739d7 in PyEval_CallObjectWithKeywords () from /usr/lib/libpython2.7.so.1.0 #22 0x00007fd675ac5cb2 in ?? () from /usr/lib/libpython2.7.so.1.0 #23 0x00007fd675f36e9a in start_thread (arg=0x7fd66a92a700) at pthread_create.c:308 #24 0x00007fd6751483fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #25 0x0000000000000000 in ?? ()
Thread 4 (Thread 0x7fd670de7700 (LWP 11284)):
#0 0x00007fd67513c967 in unlink () at ../sysdeps/unix/syscall-template.S:82 #1 0x00007fd6750b1e09 in __GI_remove (file=0x7fd66709b1f0 "/tmp/preamble-b3350d.pch") at ../sysdeps/posix/remove.c:35 #2 0x00007fd67142e197 in llvm::sys::fs::remove(llvm::Twine const&, bool&) () from libclang.so #3 0x00007fd6715a9c73 in cleanupOnDiskMapAtExit() () from libclang.so #4 0x00007fd67508f901 in __run_exit_handlers (status=1, listp=0x7fd67540d688, run_list_atexit=true) at exit.c:78 #5 0x00007fd67508f985 in __GI_exit (status=) at exit.c:100 #6 0x0000000000504a89 in mch_exit () #7 #8 0x00007fd6715a651a in clang::ASTUnit::CodeComplete(llvm::StringRef, unsigned int, unsigned int, std::__1::pair<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, llvm:
:PointerUnion<char const*, llvm::MemoryBuffer const*> >, unsigned int, bool, bool, bool, clang::CodeCompleteConsumer&, clang::DiagnosticsEngine&, clang::LangOptions&, clang::SourceManager&, clang::FileManag
er&, llvm::SmallVectorImplclang::StoredDiagnostic&, llvm::SmallVectorImpl<llvm::MemoryBuffer const>&) ()
from libclang.so #9 0x00007fd6713eaf07 in clang_codeCompleteAt_Impl () from libclang.so #10 0x00007fd67141cd98 in llvm::CrashRecoveryContext::RunSafely(void ()(void), void*) () from libclang.so #11 0x00007fd67141ce94 in RunSafelyOnThread_Dispatch(void*) () from libclang.so #12 0x00007fd671432a1a in ExecuteOnThread_Dispatch(void*) () from libclang.so #13 0x00007fd675f36e9a in start_thread (arg=0x7fd670de7700) at pthread_create.c:308 #14 0x00007fd6751483fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #15 0x0000000000000000 in ?? ()
Thread 3 (Thread 0x7fd673adb700 (LWP 11204)):
#0 0x00007fd675141763 in select () at ../sysdeps/unix/syscall-template.S:82 #1 0x00007fd6757f398a in ?? () from /usr/lib/libtcl8.5.so.0 #2 0x00007fd675f36e9a in start_thread (arg=0x7fd673adb700) at pthread_create.c:308 #3 0x00007fd6751483fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112 #4 0x0000000000000000 in ?? ()
vimrc settings:
let g:clang_auto_select=1
let g:clang_complete_auto=1
let g:clang_complete_copen=1
let g:clang_hl_errors=1
let g:clang_periodic_quickfix=0
let g:clang_snippets=1
let g:clang_snippets_engine="clang_complete"
let g:clang_conceal_snippets=1
let g:clang_exec="clang"
let g:clang_user_options=""
let g:clang_use_library=1
let g:clang_complete_library=0
let g:clang_library_path = '/path/to/lib'
let g:clang_compilation_database = '/path/to/db'
let g:clang_sort_algo="priority"
let g:clang_complete_macros=1
let g:clang_complete_patterns=0
let g:clang_debug = 0
Is this a known issue? If there is fix, could you please point me to it?
Please let me know if you need any other information.
thx
Vikas.
The text was updated successfully, but these errors were encountered:
Hi,
While performing code completion, vim segfaults due to clang_complete. Here are the details of the system and the problem.
OS: Ubuntu 12.04 , Linux 3.2.0
vim version: VIM - Vi IMproved 7.3 (compiled with python enabled)
clang-complete version: latest pulled today from master
clang version: clang 3.4
Error printed on exit:
Vim: Caught deadly signal SEGV
Vim: preserving files...
Error detected while processing function ClangComplete:Vim: Finished.
line 22:
Exception KeyError: KeyError(140558993356544,) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignoredTraceback (most recent call last):
File "", line 1, in File "~/.vim/bundle/vundle/plugin/libclang.py", line 468, in getCurrentCompletions cancel = int(vim.eval('complete_check()'))
AttributeError: 'NoneType' object has no attribute 'eval'close failed in fi
le object destructor:
sys.excepthook is missing lost sys.stderr
Segmentation fault (core dumped)
backtraces:
Thread 1 (Thread 0x7fd67763d7c0 (LWP 11203)):
#0 sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:86
#1 0x00007fd675bbbe28 in PyThread_acquire_lock () from /usr/lib/libpython2.7.so.1.0
#2 0x00007fd675bbcd34 in PyEval_RestoreThread () from /usr/lib/libpython2.7.so.1.0
#3 0x00007fd675b85a77 in ?? () from /usr/lib/libpython2.7.so.1.0
#4 0x00007fd675b27914 in ?? () from /usr/lib/libpython2.7.so.1.0
#5 0x00007fd675b86b68 in PyFile_WriteObject () from /usr/lib/libpython2.7.so.1.0
#6 0x00007fd675ac52d7 in PyErr_Display () from /usr/lib/libpython2.7.so.1.0
#7 0x00007fd675ac587c in ?? () from /usr/lib/libpython2.7.so.1.0
#8 0x00007fd675ace5d5 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#9 0x00007fd675a8e6b5 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
#10 0x00007fd675a8e86d in ?? () from /usr/lib/libpython2.7.so.1.0
#11 0x00007fd675b73083 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
#12 0x00007fd675b739d7 in PyEval_CallObjectWithKeywords () from /usr/lib/libpython2.7.so.1.0
#13 0x00007fd675ac5970 in PyErr_PrintEx () from /usr/lib/libpython2.7.so.1.0
#14 0x00007fd675a8f71c in PyRun_SimpleStringFlags () from /usr/lib/libpython2.7.so.1.0
#15 0x000000000057ccff in ?? ()
#16 0x000000000057ced8 in ex_python ()
#17 0x000000000047ffbd in do_cmdline ()
#18 0x0000000000458d92 in ?? ()
#19 0x00000000004596f2 in ?? ()
#20 0x0000000000459ad2 in call_vim_function ()
#21 0x0000000000440601 in ?? ()
#22 0x0000000000440e79 in ?? ()
#23 0x000000000044599d in edit ()
#24 0x00000000004e0ecc in ?? ()
#25 0x00000000004e909c in normal_cmd ()
#26 0x000000000058804f in main_loop ()
#27 0x0000000000429c2a in main ()
Thread 2 (Thread 0x7fd66a92a700 (LWP 11283)):
#0 0x00007fd675f38148 in pthread_join (threadid=140558993356544, thread_return=0x0) at pthread_join.c:89
#1 0x00007fd6714329fc in llvm::llvm_execute_on_thread(void ()(void), void*, unsigned int) () from libclang.so
#2 0x00007fd67141ce5d in llvm::CrashRecoveryContext::RunSafelyOnThread(void ()(void), void*, unsigned int) ()
from libclang.so
#3 0x00007fd6713da814 in clang::RunSafely(llvm::CrashRecoveryContext&, void ()(void), void*, unsigned int) ()
from libclang.so
#4 0x00007fd6713eb354 in clang_codeCompleteAt () from libclang.so
#5 0x00007fd6722cfea4 in ffi_call_unix64 () from /usr/lib/python2.7/lib-dynload/_ctypes.so
#6 0x00007fd6722cf8c5 in ffi_call () from /usr/lib/python2.7/lib-dynload/_ctypes.so
#7 0x00007fd6722c02c2 in _ctypes_callproc () from /usr/lib/python2.7/lib-dynload/_ctypes.so
#8 0x00007fd6722c0aa2 in ?? () from /usr/lib/python2.7/lib-dynload/_ctypes.so
#9 0x00007fd675b73083 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
#10 0x00007fd675acd1fd in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#11 0x00007fd675a8e6b5 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
#12 0x00007fd675ace650 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#13 0x00007fd675acf37b in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#14 0x00007fd675acf37b in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#15 0x00007fd675acf37b in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
#16 0x00007fd675a8e6b5 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
#17 0x00007fd675a8e86d in ?? () from /usr/lib/libpython2.7.so.1.0
#18 0x00007fd675b73083 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
#19 0x00007fd675b573cf in ?? () from /usr/lib/libpython2.7.so.1.0
#20 0x00007fd675b73083 in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
#21 0x00007fd675b739d7 in PyEval_CallObjectWithKeywords () from /usr/lib/libpython2.7.so.1.0
#22 0x00007fd675ac5cb2 in ?? () from /usr/lib/libpython2.7.so.1.0
#23 0x00007fd675f36e9a in start_thread (arg=0x7fd66a92a700) at pthread_create.c:308
#24 0x00007fd6751483fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#25 0x0000000000000000 in ?? ()
Thread 4 (Thread 0x7fd670de7700 (LWP 11284)):
#0 0x00007fd67513c967 in unlink () at ../sysdeps/unix/syscall-template.S:82
#1 0x00007fd6750b1e09 in __GI_remove (file=0x7fd66709b1f0 "/tmp/preamble-b3350d.pch") at ../sysdeps/posix/remove.c:35
#2 0x00007fd67142e197 in llvm::sys::fs::remove(llvm::Twine const&, bool&) () from libclang.so
#3 0x00007fd6715a9c73 in cleanupOnDiskMapAtExit() () from libclang.so
#4 0x00007fd67508f901 in __run_exit_handlers (status=1, listp=0x7fd67540d688, run_list_atexit=true) at exit.c:78
#5 0x00007fd67508f985 in __GI_exit (status=) at exit.c:100
#6 0x0000000000504a89 in mch_exit ()
#7
#8 0x00007fd6715a651a in clang::ASTUnit::CodeComplete(llvm::StringRef, unsigned int, unsigned int, std::__1::pair<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, llvm:
:PointerUnion<char const*, llvm::MemoryBuffer const*> >, unsigned int, bool, bool, bool, clang::CodeCompleteConsumer&, clang::DiagnosticsEngine&, clang::LangOptions&, clang::SourceManager&, clang::FileManag
er&, llvm::SmallVectorImplclang::StoredDiagnostic&, llvm::SmallVectorImpl<llvm::MemoryBuffer const>&) ()
from libclang.so
#9 0x00007fd6713eaf07 in clang_codeCompleteAt_Impl () from libclang.so
#10 0x00007fd67141cd98 in llvm::CrashRecoveryContext::RunSafely(void ()(void), void*) () from libclang.so
#11 0x00007fd67141ce94 in RunSafelyOnThread_Dispatch(void*) () from libclang.so
#12 0x00007fd671432a1a in ExecuteOnThread_Dispatch(void*) () from libclang.so
#13 0x00007fd675f36e9a in start_thread (arg=0x7fd670de7700) at pthread_create.c:308
#14 0x00007fd6751483fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#15 0x0000000000000000 in ?? ()
Thread 3 (Thread 0x7fd673adb700 (LWP 11204)):
#0 0x00007fd675141763 in select () at ../sysdeps/unix/syscall-template.S:82
#1 0x00007fd6757f398a in ?? () from /usr/lib/libtcl8.5.so.0
#2 0x00007fd675f36e9a in start_thread (arg=0x7fd673adb700) at pthread_create.c:308
#3 0x00007fd6751483fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4 0x0000000000000000 in ?? ()
vimrc settings:
let g:clang_auto_select=1
let g:clang_complete_auto=1
let g:clang_complete_copen=1
let g:clang_hl_errors=1
let g:clang_periodic_quickfix=0
let g:clang_snippets=1
let g:clang_snippets_engine="clang_complete"
let g:clang_conceal_snippets=1
let g:clang_exec="clang"
let g:clang_user_options=""
let g:clang_use_library=1
let g:clang_complete_library=0
let g:clang_library_path = '/path/to/lib'
let g:clang_compilation_database = '/path/to/db'
let g:clang_sort_algo="priority"
let g:clang_complete_macros=1
let g:clang_complete_patterns=0
let g:clang_debug = 0
Is this a known issue? If there is fix, could you please point me to it?
Please let me know if you need any other information.
thx
Vikas.
The text was updated successfully, but these errors were encountered: