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

Segfaults with completion of tensorflow #718

Closed
peterbjorgensen opened this issue Jun 19, 2017 · 6 comments
Closed

Segfaults with completion of tensorflow #718

peterbjorgensen opened this issue Jun 19, 2017 · 6 comments

Comments

@peterbjorgensen
Copy link

Issue

When trying to autocomplete tensorflow, vim often crashes with a segfault. I have found an example that reproduces this consistently.
I am using jedi-vim from git (same result with latest stable release 0.8.0) on Arch linux.

Steps to reproduce

Save the following to a file

import tensorflow as tf
pre = tf.layers.dense(their_feats, n_node_features, activation=tf.identity)
pre(

Press ctrl+space with the cursor after the "pre("

Vim should crash with a segfault.

Output of “:verbose JediDebugInfo”

Jedi-vim debug information

Using Python version: 3

  • sys.version: 3.6.1 (default, Mar 27 2017, 00:27:06), [GCC 6.3.1 20170306]
  • site module: /usr/lib/python3.6/site.py
    Jedi path: /home/peter/.vim/bundle/jedi-vim/jedi/jedi/__init__.py
  • version: 0.10.2
  • sys_path:
    • /home/peter/.vim/bundle/jedi-vim
    • /usr/lib/python36.zip
    • /usr/lib/python3.6
    • /usr/lib/python3.6/lib-dynload
    • /home/peter/.local/lib/python3.6/site-packages
    • /home/peter/kodesjov/parmesan
    • /home/peter/.local/lib/python3.6/site-packages/pyrfr-0.4.0-py3.6-linux-x86_64.egg
    • /usr/lib/python3.6/site-packages
    • _vim_path_
  • jedi-vim git version: 0.8.0-83-g6411de0
  • jedi git submodule status: 5427b02712828b2875d35b5ee1c8b5e58f820537 jedi (v0.10.2)
Settings
g:jedi#force_py_version = '3' (default: 'auto')


  omnifunc=jedi#completions
	Last set from ~/.vim/bundle/jedi-vim/after/ftplugin/python/jedi.vim
  completeopt=menu,longest
	Last set from ~/.vimrc

:version


VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Apr 26 2017 07:49:10)
Included patches: 1-586
Compiled by Arch Linux
Huge version with GTK3 GUI.  Features included (+) or not (-):
+acl             +cscope          -footer          +menu            +num64           +startuptime     +virtualedit
+arabic          +cursorbind      +fork()          +mksession       +packages        +statusline      +visual
+autocmd         +cursorshape     +gettext         +modify_fname    +path_extra      -sun_workshop    +visualextra
+balloon_eval    +dialog_con_gui  -hangul_input    +mouse           +perl/dyn        +syntax          +viminfo
+browse          +diff            +iconv           +mouseshape      +persistent_undo +tag_binary      +vreplace
++builtin_terms  +digraphs        +insert_expand   +mouse_dec       +postscript      +tag_old_static  +wildignore
+byte_offset     +dnd             +job             +mouse_gpm       +printer         -tag_any_white   +wildmenu
+channel         -ebcdic          +jumplist        -mouse_jsbterm   +profile         +tcl/dyn         +windows
+cindent         +emacs_tags      +keymap          +mouse_netterm   +python/dyn      +termguicolors   +writebackup
+clientserver    +eval            +lambda          +mouse_sgr       +python3/dyn     +terminfo        +X11
+clipboard       +ex_extra        +langmap         -mouse_sysmouse  +quickfix        +termresponse    -xfontset
+cmdline_compl   +extra_search    +libcall         +mouse_urxvt     +reltime         +textobjects     +xim
+cmdline_hist    +farsi           +linebreak       +mouse_xterm     +rightleft       +timers          -xpm
+cmdline_info    +file_in_path    +lispindent      +multi_byte      +ruby/dyn        +title           +xsmp_interact
+comments        +find_in_path    +listcmds        +multi_lang      +scrollbind      +toolbar         +xterm_clipboard
+conceal         +float           +localmap        -mzscheme        +signs           +user_commands   -xterm_save
+cryptv          +folding         +lua/dyn         +netbeans_intg   +smartindent     +vertsplit       
   system vimrc file: "/etc/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "/etc/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       
Linking: gcc   -L. -Wl,-O1,--sort-common,--as-needed,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE  -Wl,-O1,--sort-common,--as-needed,-z,relro -L/usr/local/lib -Wl,--as-needed -o vim   -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lSM -lICE -lXt -lX11 -lXdmcp -lSM -lICE  -lm -lncurses -lelf -lnsl    -lacl -lattr -lgpm -ldl   -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro -fstack-protector-strong -L/usr/local/lib  -L/usr/lib/perl5/core_perl/CORE -lperl -lpthread -lnsl -ldl -lm -lcrypt -lutil -lc   -L/usr/lib -ltclstub8.6 -ldl -lz -lpthread -lieee -lm     

:messages

Messages maintainer: Mike Williams <mrw@eandem.co.uk>
E325: ATTENTION
"minimum.py" 4L, 106C
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Apr 26 2017 07:49:10)
  1: /etc/vimrc
  2: /usr/share/vim/vimfiles/archlinux.vim
  3: ~/.vimrc
  4: /usr/share/vim/vim80/filetype.vim
  5: /usr/share/vim/vimfiles/ftdetect/dockerfile.vim
  6: /usr/share/vim/vim80/ftplugin.vim
  7: /usr/share/vim/vim80/indent.vim
  8: /usr/share/vim/vimfiles/autoload/pathogen.vim
  9: /usr/share/vim/vim80/ftoff.vim
 10: /usr/share/vim/vim80/syntax/syntax.vim
 11: /usr/share/vim/vim80/syntax/synload.vim
 12: /usr/share/vim/vim80/syntax/syncolor.vim
 13: /usr/share/vim/vimfiles/plugin/comments.vim
 14: /usr/share/vim/vim80/colors/darkZ.vim
 15: ~/.vim/bundle/jedi-vim/plugin/jedi.vim
 16: /usr/share/vim/vimfiles/plugin/SyntaxFolds.vim
 17: /usr/share/vim/vimfiles/plugin/better-whitespace.vim
 18: /usr/share/vim/vimfiles/plugin/filebrowser.vim
 19: /usr/share/vim/vimfiles/plugin/imaps.vim
 20: /usr/share/vim/vimfiles/plugin/remoteOpen.vim
 21: /usr/share/vim/vim80/plugin/getscriptPlugin.vim
 22: /usr/share/vim/vim80/plugin/gzip.vim
 23: /usr/share/vim/vim80/plugin/logiPat.vim
 24: /usr/share/vim/vim80/plugin/manpager.vim
 25: /usr/share/vim/vim80/plugin/matchparen.vim
 26: /usr/share/vim/vim80/plugin/netrwPlugin.vim
 27: /usr/share/vim/vim80/plugin/rrhelper.vim
 28: /usr/share/vim/vim80/plugin/spellfile.vim
 29: /usr/share/vim/vim80/plugin/tarPlugin.vim
 30: /usr/share/vim/vim80/plugin/themes.vim
 31: /usr/share/vim/vim80/plugin/tohtml.vim
 32: /usr/share/vim/vim80/plugin/vimballPlugin.vim
 33: /usr/share/vim/vim80/plugin/zipPlugin.vim
 34: ~/.vim/bundle/jedi-vim/ftplugin/python/jedi.vim
 35: ~/.vim/bundle/jedi-vim/autoload/jedi.vim
 36: /usr/share/vim/vim80/ftplugin/python.vim
 37: ~/.vim/bundle/jedi-vim/after/ftplugin/python/jedi.vim
 38: /usr/share/vim/vim80/indent/python.vim
 39: /usr/share/vim/vim80/syntax/python.vim
 40: ~/.vim/bundle/jedi-vim/after/syntax/python.vim
:scriptnames
  1: /etc/vimrc
  2: /usr/share/vim/vimfiles/archlinux.vim
  3: ~/.vimrc
  4: /usr/share/vim/vim80/filetype.vim
  5: /usr/share/vim/vimfiles/ftdetect/dockerfile.vim
  6: /usr/share/vim/vim80/ftplugin.vim
  7: /usr/share/vim/vim80/indent.vim
  8: /usr/share/vim/vimfiles/autoload/pathogen.vim
  9: /usr/share/vim/vim80/ftoff.vim
 10: /usr/share/vim/vim80/syntax/syntax.vim
 11: /usr/share/vim/vim80/syntax/synload.vim
 12: /usr/share/vim/vim80/syntax/syncolor.vim
 13: /usr/share/vim/vimfiles/plugin/comments.vim
 14: /usr/share/vim/vim80/colors/darkZ.vim
 15: ~/.vim/bundle/jedi-vim/plugin/jedi.vim
 16: /usr/share/vim/vimfiles/plugin/SyntaxFolds.vim
 17: /usr/share/vim/vimfiles/plugin/better-whitespace.vim
 18: /usr/share/vim/vimfiles/plugin/filebrowser.vim
 19: /usr/share/vim/vimfiles/plugin/imaps.vim
 20: /usr/share/vim/vimfiles/plugin/remoteOpen.vim
 21: /usr/share/vim/vim80/plugin/getscriptPlugin.vim
 22: /usr/share/vim/vim80/plugin/gzip.vim
 23: /usr/share/vim/vim80/plugin/logiPat.vim
 24: /usr/share/vim/vim80/plugin/manpager.vim
 25: /usr/share/vim/vim80/plugin/matchparen.vim
 26: /usr/share/vim/vim80/plugin/netrwPlugin.vim
 27: /usr/share/vim/vim80/plugin/rrhelper.vim
 28: /usr/share/vim/vim80/plugin/spellfile.vim
 29: /usr/share/vim/vim80/plugin/tarPlugin.vim
 30: /usr/share/vim/vim80/plugin/themes.vim
 31: /usr/share/vim/vim80/plugin/tohtml.vim
 32: /usr/share/vim/vim80/plugin/vimballPlugin.vim
 33: /usr/share/vim/vim80/plugin/zipPlugin.vim
 34: ~/.vim/bundle/jedi-vim/ftplugin/python/jedi.vim
 35: ~/.vim/bundle/jedi-vim/autoload/jedi.vim
 36: /usr/share/vim/vim80/ftplugin/python.vim
 37: ~/.vim/bundle/jedi-vim/after/ftplugin/python/jedi.vim
 38: /usr/share/vim/vim80/indent/python.vim
 39: /usr/share/vim/vim80/syntax/python.vim
 40: ~/.vim/bundle/jedi-vim/after/syntax/python.vim
@blueyed
Copy link
Collaborator

blueyed commented Jun 19, 2017

Sounds like a Jedi issue maybe.
Can you reproduce it using a script like the following:

import jedi

script = """

"""

script = jedi.Script(script, lineno, colnr)
print(script.completions())

@davidhalter
It would be nice to have steps for that in Jedi's CONTRIBUING.md / issue template to point users at.

@peterbjorgensen
Copy link
Author

peterbjorgensen commented Jun 20, 2017

Thank you very much for your help.

I have tried as you suggested:

import jedi
script = """import tensorflow as tf
pre = tf.layers.dense(their_feats, n_node_features, activation=tf.identity)
pre( """

script = jedi.Script(script, 3, 4)
print(script.completions())

and it does not crash, it gives the completions:

[<Completion: abs>, <Completion: all>, <Completion: any>, <Completion: ArithmeticError>, <Completion: ascii>, <Completion: AssertionError>, <Completion: AttributeError>, <Completion: await>, <Completion: BaseException>, <Completion: bin>, <Completion: BlockingIOError>, <Completion: bool>, <Completion: BrokenPipeError>, <Completion: BufferError>, <Completion: bytearray>, <Completion: bytes>, <Completion: BytesWarning>, <Completion: callable>, <Completion: ChildProcessError>, <Completion: chr>, <Completion: classmethod>, <Completion: compile>, <Completion: complex>, <Completion: ConnectionAbortedError>, <Completion: ConnectionError>, <Completion: ConnectionRefusedError>, <Completion: ConnectionResetError>, <Completion: copyright>, <Completion: credits>, <Completion: delattr>, <Completion: DeprecationWarning>, <Completion: dict>, <Completion: dir>, <Completion: divmod>, <Completion: Ellipsis>, <Completion: enumerate>, <Completion: EnvironmentError>, <Completion: EOFError>, <Completion: eval>, <Completion: Exception>, <Completion: exec>, <Completion: exit>, <Completion: False>, <Completion: FileExistsError>, <Completion: FileNotFoundError>, <Completion: filter>, <Completion: float>, <Completion: FloatingPointError>, <Completion: format>, <Completion: frozenset>, <Completion: FutureWarning>, <Completion: GeneratorExit>, <Completion: getattr>, <Completion: globals>, <Completion: hasattr>, <Completion: hash>, <Completion: help>, <Completion: hex>, <Completion: id>, <Completion: ImportError>, <Completion: ImportWarning>, <Completion: IndentationError>, <Completion: IndexError>, <Completion: input>, <Completion: int>, <Completion: InterruptedError>, <Completion: IOError>, <Completion: IsADirectoryError>, <Completion: isinstance>, <Completion: issubclass>, <Completion: iter>, <Completion: KeyboardInterrupt>, <Completion: KeyError>, <Completion: lambda>, <Completion: len>, <Completion: license>, <Completion: list>, <Completion: locals>, <Completion: LookupError>, <Completion: map>, <Completion: max>, <Completion: MemoryError>, <Completion: memoryview>, <Completion: min>, <Completion: ModuleNotFoundError>, <Completion: NameError>, <Completion: next>, <Completion: None>, <Completion: not>, <Completion: NotADirectoryError>, <Completion: NotImplemented>, <Completion: NotImplementedError>, <Completion: object>, <Completion: oct>, <Completion: open>, <Completion: ord>, <Completion: OSError>, <Completion: OverflowError>, <Completion: PendingDeprecationWarning>, <Completion: PermissionError>, <Completion: pow>, <Completion: pre>, <Completion: print>, <Completion: ProcessLookupError>, <Completion: property>, <Completion: quit>, <Completion: range>, <Completion: RecursionError>, <Completion: ReferenceError>, <Completion: repr>, <Completion: ResourceWarning>, <Completion: reversed>, <Completion: round>, <Completion: RuntimeError>, <Completion: RuntimeWarning>, <Completion: set>, <Completion: setattr>, <Completion: slice>, <Completion: sorted>, <Completion: staticmethod>, <Completion: StopAsyncIteration>, <Completion: StopIteration>, <Completion: str>, <Completion: sum>, <Completion: super>, <Completion: SyntaxError>, <Completion: SyntaxWarning>, <Completion: SystemError>, <Completion: SystemExit>, <Completion: TabError>, <Completion: tf>, <Completion: TimeoutError>, <Completion: True>, <Completion: tuple>, <Completion: type>, <Completion: TypeError>, <Completion: UnboundLocalError>, <Completion: UnicodeDecodeError>, <Completion: UnicodeEncodeError>, <Completion: UnicodeError>, <Completion: UnicodeTranslateError>, <Completion: UnicodeWarning>, <Completion: UserWarning>, <Completion: ValueError>, <Completion: vars>, <Completion: Warning>, <Completion: ZeroDivisionError>, <Completion: zip>, <Completion: __build_class__>, <Completion: __debug__>, <Completion: __doc__>, <Completion: __file__>, <Completion: __import__>, <Completion: __loader__>, <Completion: __name__>, <Completion: __package__>, <Completion: __spec__>]

I have also tried with minimal vimrc and it still segfaults.

vimrc

set nocompatible

let script_dir = fnamemodify(expand('<sfile>'), ':h')
let &runtimepath .= ','.script_dir.','.script_dir.'/after'

" Put your config changes here.
" let g:jedi#show_call_signatures=1

syntax on
filetype plugin indent on

Jedi-vim debug information

Using Python version: 3

  • sys.version: 3.6.1 (default, Mar 27 2017, 00:27:06), [GCC 6.3.1 20170306]
  • site module: /usr/lib/python3.6/site.py
    Jedi path: /home/peter/.vim/bundle/jedi-vim/jedi/jedi/__init__.py
  • version: 0.10.2
  • sys_path:
    • /home/peter/.vim/bundle/jedi-vim
    • /usr/lib/python36.zip
    • /usr/lib/python3.6
    • /usr/lib/python3.6/lib-dynload
    • /home/peter/.local/lib/python3.6/site-packages
    • /home/peter/kodesjov/parmesan
    • /home/peter/.local/lib/python3.6/site-packages/pyrfr-0.4.0-py3.6-linux-x86_64.egg
    • /usr/lib/python3.6/site-packages
    • _vim_path_
  • jedi-vim git version: 0.8.0-83-g6411de0
  • jedi git submodule status: 5427b02712828b2875d35b5ee1c8b5e58f820537 jedi (v0.10.2)
Settings
g:jedi#force_py_version = '3' (default: 'auto')


  omnifunc=jedi#completions
	Last set from ~/.vim/bundle/jedi-vim/after/ftplugin/python/jedi.vim
  completeopt=menuone,longest,preview
	Last set from ~/.vim/bundle/jedi-vim/plugin/jedi.vim

:version


VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Apr 26 2017 07:49:10)
Included patches: 1-586
Compiled by Arch Linux
Huge version with GTK3 GUI.  Features included (+) or not (-):
+acl             +cscope          -footer          +menu            +num64           +startuptime     +virtualedit
+arabic          +cursorbind      +fork()          +mksession       +packages        +statusline      +visual
+autocmd         +cursorshape     +gettext         +modify_fname    +path_extra      -sun_workshop    +visualextra
+balloon_eval    +dialog_con_gui  -hangul_input    +mouse           +perl/dyn        +syntax          +viminfo
+browse          +diff            +iconv           +mouseshape      +persistent_undo +tag_binary      +vreplace
++builtin_terms  +digraphs        +insert_expand   +mouse_dec       +postscript      +tag_old_static  +wildignore
+byte_offset     +dnd             +job             +mouse_gpm       +printer         -tag_any_white   +wildmenu
+channel         -ebcdic          +jumplist        -mouse_jsbterm   +profile         +tcl/dyn         +windows
+cindent         +emacs_tags      +keymap          +mouse_netterm   +python/dyn      +termguicolors   +writebackup
+clientserver    +eval            +lambda          +mouse_sgr       +python3/dyn     +terminfo        +X11
+clipboard       +ex_extra        +langmap         -mouse_sysmouse  +quickfix        +termresponse    -xfontset
+cmdline_compl   +extra_search    +libcall         +mouse_urxvt     +reltime         +textobjects     +xim
+cmdline_hist    +farsi           +linebreak       +mouse_xterm     +rightleft       +timers          -xpm
+cmdline_info    +file_in_path    +lispindent      +multi_byte      +ruby/dyn        +title           +xsmp_interact
+comments        +find_in_path    +listcmds        +multi_lang      +scrollbind      +toolbar         +xterm_clipboard
+conceal         +float           +localmap        -mzscheme        +signs           +user_commands   -xterm_save
+cryptv          +folding         +lua/dyn         +netbeans_intg   +smartindent     +vertsplit       
   system vimrc file: "/etc/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "/etc/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       
Linking: gcc   -L. -Wl,-O1,--sort-common,--as-needed,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE  -Wl,-O1,--sort-common,--as-needed,-z,relro -L/usr/local/lib -Wl,--as-needed -o vim   -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lSM -lICE -lXt -lX11 -lXdmcp -lSM -lICE  -lm -lncurses -lelf -lnsl    -lacl -lattr -lgpm -ldl   -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro -fstack-protector-strong -L/usr/local/lib  -L/usr/lib/perl5/core_perl/CORE -lperl -lpthread -lnsl -ldl -lm -lcrypt -lutil -lc   -L/usr/lib -ltclstub8.6 -ldl -lz -lpthread -lieee -lm     

:messages

Messages maintainer: Mike Williams <mrw@eandem.co.uk>
"minimum2.py" 3L, 105C
:scriptnames
  1: ~/.vim/bundle/jedi-vim/minimalvimrc
  2: /usr/share/vim/vim80/syntax/syntax.vim
  3: /usr/share/vim/vim80/syntax/synload.vim
  4: /usr/share/vim/vim80/syntax/syncolor.vim
  5: /usr/share/vim/vim80/filetype.vim
  6: /usr/share/vim/vimfiles/ftdetect/dockerfile.vim
  7: /usr/share/vim/vim80/ftplugin.vim
  8: /usr/share/vim/vim80/indent.vim
  9: /usr/share/vim/vimfiles/plugin/SyntaxFolds.vim
 10: /usr/share/vim/vimfiles/plugin/better-whitespace.vim
 11: /usr/share/vim/vimfiles/plugin/comments.vim
 12: /usr/share/vim/vimfiles/plugin/filebrowser.vim
 13: /usr/share/vim/vimfiles/plugin/imaps.vim
 14: /usr/share/vim/vimfiles/plugin/remoteOpen.vim
 15: /usr/share/vim/vim80/plugin/getscriptPlugin.vim
 16: /usr/share/vim/vim80/plugin/gzip.vim
 17: /usr/share/vim/vim80/plugin/logiPat.vim
 18: /usr/share/vim/vim80/plugin/manpager.vim
 19: /usr/share/vim/vim80/plugin/matchparen.vim
 20: /usr/share/vim/vim80/plugin/netrwPlugin.vim
 21: /usr/share/vim/vim80/plugin/rrhelper.vim
 22: /usr/share/vim/vim80/plugin/spellfile.vim
 23: /usr/share/vim/vim80/plugin/tarPlugin.vim
 24: /usr/share/vim/vim80/plugin/themes.vim
 25: /usr/share/vim/vim80/plugin/tohtml.vim
 26: /usr/share/vim/vim80/plugin/vimballPlugin.vim
 27: /usr/share/vim/vim80/plugin/zipPlugin.vim
 28: ~/.vim/bundle/jedi-vim/plugin/jedi.vim
 29: /usr/share/vim/vim80/syntax/python.vim
 30: ~/.vim/bundle/jedi-vim/after/syntax/python.vim
 31: ~/.vim/bundle/jedi-vim/autoload/jedi.vim
 32: /usr/share/vim/vim80/ftplugin/python.vim
 33: ~/.vim/bundle/jedi-vim/ftplugin/python/jedi.vim
 34: ~/.vim/bundle/jedi-vim/after/ftplugin/python/jedi.vim
 35: /usr/share/vim/vim80/indent/python.vim

@blueyed
Copy link
Collaborator

blueyed commented Jun 20, 2017

Are you using python-tensorflow on Arch, or how did you install it?
Which version is it?
You might want to try if it happens with Neovim, too.

@peterbjorgensen
Copy link
Author

I am using "python-tensorflow-cuda" v. 1.1.0-4 from the community repository.
I have had similar crashes working with Theano code, but I haven't found a minimum example.

Neovim works, it does not crash, it shows the list of completions as it is supposed to.

Jedi-vim debug information (for neovim)

Using Python version: 3

  • sys.version: 3.6.1 (default, Mar 27 2017, 00:27:06), [GCC 6.3.1 20170306]
  • site module: /usr/lib/python3.6/site.py
    Jedi path: /home/peter/.vim/bundle/jedi-vim/jedi/jedi/__init__.py
  • version: 0.10.2
  • sys_path:
    • /home/peter/.vim/bundle/jedi-vim
    • /usr/lib/python36.zip
    • /usr/lib/python3.6
    • /usr/lib/python3.6/lib-dynload
    • /home/peter/.local/lib/python3.6/site-packages
    • /home/peter/kodesjov/parmesan
    • /home/peter/.local/lib/python3.6/site-packages/pyrfr-0.4.0-py3.6-linux-x86_64.egg
    • /usr/lib/python3.6/site-packages
    • _vim_path_
  • jedi-vim git version: 0.8.0-83-g6411de0
  • jedi git submodule status: 5427b02712828b2875d35b5ee1c8b5e58f820537 jedi (v0.10.2)
Settings
g:jedi#force_py_version = '3' (default: 'auto')


  omnifunc=jedi#completions
	Last set from ~/.vim/bundle/jedi-vim/after/ftplugin/python/jedi.vim
  completeopt=menuone,longest,preview
	Last set from ~/.vim/bundle/jedi-vim/plugin/jedi.vim

:version


NVIM v0.2.0
Build type: Release
Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wconversion -DNVIM_MSGPACK_HAS_FLOAT32 -O2 -DNDEBUG -DDISABLE_LOG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -I/build/neovim/src/build/config -I/build/neovim/src/neovim-0.2.0/src -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/build/neovim/src/build/src/nvim/auto -I/build/neovim/src/build/include
Compiled by builduser

Optional features included (+) or not (-): +acl   +iconv    +jemalloc +tui      
For differences from Vim, see :help vim-differences

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

:messages

"minimum2.py" 3L, 105C
:scriptnames
  1: ~/.vim/bundle/jedi-vim/minimalvimrc
  2: /usr/share/nvim/runtime/syntax/syntax.vim
  3: /usr/share/nvim/runtime/syntax/synload.vim
  4: /usr/share/nvim/runtime/syntax/syncolor.vim
  5: /usr/share/nvim/runtime/filetype.vim
  6: /usr/share/nvim/runtime/ftplugin.vim
  7: /usr/share/nvim/runtime/indent.vim
  8: /usr/share/nvim/runtime/plugin/gui_shim.vim
  9: /usr/share/nvim/runtime/plugin/gzip.vim
 10: /usr/share/nvim/runtime/plugin/health.vim
 11: /usr/share/nvim/runtime/plugin/man.vim
 12: /usr/share/nvim/runtime/plugin/matchit.vim
 13: /usr/share/nvim/runtime/plugin/matchparen.vim
 14: /usr/share/nvim/runtime/plugin/netrwPlugin.vim
 15: /usr/share/nvim/runtime/plugin/nvim_gui_shim.vim
 16: /usr/share/nvim/runtime/plugin/rplugin.vim
 17: /usr/share/nvim/runtime/plugin/rrhelper.vim
 18: /usr/share/nvim/runtime/plugin/shada.vim
 19: /usr/share/nvim/runtime/plugin/spellfile.vim
 20: /usr/share/nvim/runtime/plugin/tarPlugin.vim
 21: /usr/share/nvim/runtime/plugin/tohtml.vim
 22: /usr/share/nvim/runtime/plugin/tutor.vim
 23: /usr/share/nvim/runtime/plugin/zipPlugin.vim
 24: ~/.vim/bundle/jedi-vim/plugin/jedi.vim
 25: /usr/share/nvim/runtime/syntax/python.vim
 26: ~/.vim/bundle/jedi-vim/after/syntax/python.vim
 27: ~/.vim/bundle/jedi-vim/autoload/jedi.vim
 28: /usr/share/nvim/runtime/autoload/provider/python3.vim
 29: /usr/share/nvim/runtime/autoload/provider/pythonx.vim
 30: /usr/share/nvim/runtime/autoload/remote/host.vim
 31: /usr/share/nvim/runtime/ftplugin/python.vim
 32: ~/.vim/bundle/jedi-vim/ftplugin/python/jedi.vim
 33: ~/.vim/bundle/jedi-vim/after/ftplugin/python/jedi.vim
 34: /usr/share/nvim/runtime/indent/python.vim
 35: /usr/share/nvim/runtime/autoload/provider/clipboard.vim

@davidhalter
Copy link
Owner

This is probably not fixable until davidhalter/jedi#385 has been at least partially completed. I'm almost there and I think from then on that will not be an issue anymore.

@davidhalter
Copy link
Owner

The segfaults should be gone, because of the subprocess that this runs in now. Let me know if it still happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants