ycmd shutdowns immediately with segmentation fault
AlexHYF opened this issue · 0 comments
Issue Prelude
Please complete these steps and check these boxes (by putting an x
inside
the brackets) before filing your issue:
- I have read and understood YCM's [CONTRIBUTING][cont] document.
- I have read and understood YCM's [CODE_OF_CONDUCT][code] document.
- I have read and understood YCM's [README][readme], especially the
[Frequently Asked Questions][faq] section. - I have searched YCM's issue tracker to find issues similar to the one I'm
about to report and couldn't find an answer to my problem. ([Example Google
search.][search]) - If filing a bug report, I have included the output of
vim --version
. - If filing a bug report, I have included the output of
:YcmDebugInfo
. - If filing a bug report, I have attached the contents of the logfiles using
the:YcmToggleLogs
command. - If filing a bug report, I have included which OS (including specific OS
version) I am using. - If filing a bug report, I have included a minimal test case that reproduces
my issue, usingvim -Nu /path/to/YCM/vimrc_ycm_minimal
, including what I
expected to happen and what actually happened. - If filing a installation failure report, I have included the entire output
ofinstall.py
(orcmake
/make
/ninja
) including its invocation - I understand this is an open-source project staffed by volunteers and
that any help I receive is a selfless, heartfelt gift of their free time. I
know I am not entitled to anything and will be polite and courteous. - I understand my issue may be closed if it becomes obvious I didn't
actually perform all of these steps.
Thank you for adhering to this process! It ensures your issue is resolved
quickly and that neither your nor our time is needlessly wasted.
Issue Details
Provide a clear description of the problem, including the following key
questions: YCM cannot start with ycmd shuts down without any bug info.
- What did you do?
All I have done is that I updated npm and installed the js-completer
Include steps to reproduce here.
No idea, it just happens suddenly after I installed js-completer
Include description of a minimal test case, including any actual code required
to reproduce the issue.
No necessary, the moment I start vim I got
The ycmd server SHUT DOWN (restart with ':YcmRestartServer'). Unexpected exit code -11. Type ':YcmToggleLogs ycmd_49573_stderr_6osn44fu.log' to check the logs. (Which contains nothing)
- What did you expect to happen?
Include description of the expected behaviour.
YCM starts normally.
- What actually happened?
Include description of the observed behaviour, including actual output,
screenshots, etc.
YCMD shutdowns immediately.
Diagnostic data
Output of vim --version
VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Jan 23 2024 22:19:02)
macOS version - arm64
Included patches: 1-50
Compiled by Homebrew
Huge version without GUI. Features included (+) or not (-):
+acl +file_in_path +mouse_urxvt -tag_any_white
+arabic +find_in_path +mouse_xterm -tcl
+autocmd +float +multi_byte +termguicolors
+autochdir +folding +multi_lang +terminal
-autoservername -footer -mzscheme +terminfo
-balloon_eval +fork() +netbeans_intg +termresponse
+balloon_eval_term +gettext +num64 +textobjects
-browse -hangul_input +packages +textprop
++builtin_terms +iconv +path_extra +timers
+byte_offset +insert_expand +perl +title
+channel +ipv6 +persistent_undo -toolbar
+cindent +job +popupwin +user_commands
-clientserver +jumplist +postscript +vartabs
+clipboard +keymap +printer +vertsplit
+cmdline_compl +lambda +profile +vim9script
+cmdline_hist +langmap -python +viminfo
+cmdline_info +libcall +python3 +virtualedit
+comments +linebreak +quickfix +visual
+conceal +lispindent +reltime +visualextra
+cryptv +listcmds +rightleft +vreplace
+cscope +localmap +ruby +wildignore
+cursorbind +lua +scrollbind +wildmenu
+cursorshape +menu +signs +windows
+dialog_con +mksession +smartindent +writebackup
+diff +modify_fname +sodium -X11
+digraphs +mouse +sound -xattr
-dnd -mouseshape +spell -xfontset
-ebcdic +mouse_dec +startuptime -xim
+emacs_tags -mouse_gpm +statusline -xpm
+eval -mouse_jsbterm -sun_workshop -xsmp
+ex_extra +mouse_netterm +syntax -xterm_clipboard
+extra_search +mouse_sgr +tag_binary -xterm_save
-farsi -mouse_sysmouse -tag_old_static
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
defaults file: "$VIMRUNTIME/defaults.vim"
fall-back for $VIM: "/opt/homebrew/share/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X -DMACOS_X_DARWIN -g -O2 -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: clang -o vim -lm -lncurses -lsodium -liconv -lintl -framework AppKit -L/opt/homebrew/opt/lua/lib -llua5.4 -mmacosx-version-min=14.2 -fstack-protector-strong -L/opt/homebrew/opt/perl/lib/perl5/5.38/darwin-thread-multi-2level/CORE -lperl -L/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/lib/python3.12/config-3.12-darwin -lpython3.12 -framework CoreFoundation -lruby.3.3 -L/opt/homebrew/Cellar/ruby/3.3.0/lib
Output of YcmDebugInfo
Printing YouCompleteMe debug information...
-- Resolve completions: Up front
-- Client logfile: /var/folders/rr/ty40_y212yqfshkmjwcnly5r0000gn/T/ycm_abempilx.log
-- Server errored, no debug info from server
-- Server running at: http://127.0.0.1:49573
-- Server process ID: 3409
-- Server logfiles:
-- /var/folders/rr/ty40_y212yqfshkmjwcnly5r0000gn/T/ycmd_49573_stdout_7uucv7zy.log
-- /var/folders/rr/ty40_y212yqfshkmjwcnly5r0000gn/T/ycmd_49573_stderr_6osn44fu.log
-- Semantic highlighting supported: True
-- Virtual text supported: True
-- Popup windows supported: True
Output of YcmDiags
Native filetype completion not supported for current file, cannot force recompilation.
Output of git rev-parse HEAD
in YouCompleteMe installation directory
4556062839aa2e86f2f4f1c0b4532697d607af23
Contents of YCM, ycmd and completion engine logfiles
I tried to manually run ycmd with instruction I found online. The ycmd shuts down with segfault
(base) ➜ ycmd git:(b63d2e8) ✗ python3 ycmd --options_file default_settings.json
[1] 76688 segmentation fault python3 ycmd --options_file default_settings.json
OS version, distribution, etc.
MacOS 14.4.1