Closed iFanze closed 6 years ago
I tried with the same configuration in a VM and I get the crash. However, it also crashes when I start Vim without YCM and try to load the Python 3 interpreter:
$ vim -c "py3 pass"
Vim: Caught deadly signal ABRT
Vim: Finished.
Aborted (core dumped)
I fixed the crash by compiling Vim with the --enable-python3interp
option set to dynamic
and adding the Python library path to LD_LIBRARY_PATH
:
$ ./configure --enable-multibyte --enable-python3interp=dynamic --with-python3-config-dir=~/.pyenv/versions/3.6.3/lib/python3.6/config-3.6m-x86_64-linux-gnu/ --enable-cscope
$ make
$ export LD_LIBRARY_PATH=~/.pyenv/versions/3.6.3/lib
It works, thanks a lot! So vim --version
need to be like +python3/dyn
insead of +python3
, I think.
Seems so.
Same issue here on Gentoo after latest update. I manage to compile vim with +python3/dyn but it doesn't resolve problem
s3b0@hp ~ $ vim --version
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Jan 26 2020 07:21:09)
Zadane łaty: 1-114
Zmieniony przez Gentoo-8.2.0114
Skompilowany przez s3b0@hp
Olbrzymia wersja bez GUI. Opcje włączone (+) lub nie (-):
+acl -farsi -mouse_sysmouse -tag_old_static
+arabic +file_in_path +mouse_urxvt -tag_any_white
+autocmd +find_in_path +mouse_xterm -tcl
+autochdir +float +multi_byte +termguicolors
-autoservername +folding +multi_lang -terminal
-balloon_eval -footer -mzscheme +terminfo
+balloon_eval_term +fork() +netbeans_intg +termresponse
-browse +gettext +num64 +textobjects
++builtin_terms -hangul_input +packages +textprop
+byte_offset +iconv +path_extra +timers
+channel +insert_expand -perl +title
+cindent +job +persistent_undo -toolbar
+clientserver +jumplist +popupwin +user_commands
+clipboard +keymap +postscript +vartabs
+cmdline_compl +lambda +printer +vertsplit
+cmdline_hist +langmap +profile +virtualedit
+cmdline_info +libcall -python +visual
+comments +linebreak +python3/dyn +visualextra
+conceal +lispindent +quickfix +viminfo
+cryptv +listcmds +reltime +vreplace
-cscope +localmap +rightleft +wildignore
+cursorbind -lua -ruby +wildmenu
+cursorshape +menu +scrollbind +windows
+dialog_con +mksession +signs +writebackup
+diff +modify_fname +smartindent +X11
+digraphs +mouse +sound +xfontset
-dnd -mouseshape +spell -xim
-ebcdic +mouse_dec +startuptime -xpm
+emacs_tags +mouse_gpm +statusline +xsmp_interact
+eval -mouse_jsbterm -sun_workshop +xterm_clipboard
+ex_extra +mouse_netterm +syntax -xterm_save
+extra_search +mouse_sgr +tag_binary
vimrc systemu: "/etc/vim/vimrc"
vimrc użytkownika: "$HOME/.vimrc"
2-gi plik vimrc użytkownika: "~/.vim/vimrc"
exrc użytkownika: "$HOME/.exrc"
defaults file: "$VIMRUNTIME/defaults.vim"
odwet dla $VIM-a: "/usr/share/vim"
Kompilacja: x86_64-pc-linux-gnu-gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -pipe -march=corei7 -mtune=corei7 -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Konsolidacja: x86_64-pc-linux-gnu-gcc -Wl,-O1 -L/usr/local/lib -Wl,--as-needed -o vim -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -ltinfo -lelf -lnsl -lcanberra -lacl -lattr -lgpm -ldl
@0k00l dont reply with no new diagnostics to a closed issue. If you have a problem and believe that it is a YCM bug (fwiw, this issue is not, it’s an installation of vim/python issue), then raise a new issue and complete the issue template.
Just a blind guess, based on my recent interaction with a gentoo user.
vim --noplugins
:py3 pass
I expect this to segfault for you and if it does, it's not a YCM issue.
@0k00l dont reply with no new diagnostics to a closed issue. If you have a problem and believe that it is a YCM bug (fwiw, this issue is not, it’s an installation of vim/python issue), then raise a new issue and complete the issue template.
Ok - sorry
Just a blind guess, based on my recent interaction with a gentoo user.
vim --noplugins :py3 pass
I expect this to segfault for you and if it does, it's not a YCM issue.
Got segfault - so it is not YCM issue
bash:
vim --version |grep python
echo:
+comments +libcall -python +visual
+conceal +linebreak -python3 +visualextra
am I have to re-make Vim? Thank you for your help.
Usually the distros package python-enabled vim too.
I've searched for the solution for a long time, most of them were caused by python installed by
brew
on macOS. None of them works for me.I did following things:
yum update
I'm sure
+python3
exists invim --version
Install YCM with Vundle, then:
All done with success.
ldd third_party/ycmd/ycm_core.so
, output is:libpython.so
seems to be OK.But, when I run
vim
, it will crash with message:And it makes the following outputs of my operations mess, unless I reconnect it with
ssh
.if I debug it with
gdb vim
, it shows:If I comment
Plugin 'Valloric/YouCompleteMe'
in.vimrc
, vim works.