Typing sys. crashes vim (on OS X) #120

Closed
jeidsath opened this Issue Mar 25, 2013 · 7 comments

Comments

Projects
None yet
2 participants
@jeidsath

Related to #27. As in #27, there is no issue with jedi-vim. Instead, vim crashes when a user does the following:

:python print type(sys.stdout)

This seems to be an issue with the version of vim that comes with OS X Mountain Lion.

joel@heimdall:~$ vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jun 20 2012 13:16:02)
Compiled by root@apple.com
Normal version without GUI. Features included (+) or not (-):
-arabic +autocmd -balloon_eval -browse +builtin_terms +byte_offset +cindent
-clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
-conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con +diff +digraphs
-dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi +file_in_path
+find_in_path +float +folding -footer +fork() -gettext -hangul_input +iconv
+insert_expand +jumplist -keymap -langmap +libcall +linebreak +lispindent
+listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape
-mouse_dec -mouse_gpm -mouse_jsbterm -mouse_netterm -mouse_sysmouse
+mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg -osfiletype
+path_extra -perl +persistent_undo +postscript +printer -profile +python/dyn
-python3 +quickfix +reltime -rightleft +ruby/dyn +scrollbind +signs
+smartindent -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary
+tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title
-toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo
+vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp
-xterm_clipboard -xterm_save
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -D_FORTIFY_SOURCE=0 -Iproto -DHAVE_CONFIG_H -arch i386 -arch x86_64 -g -Os -pipe
Linking: gcc -arch i386 -arch x86_64 -o vim -lncurses

@davidhalter

This comment has been minimized.

Show comment Hide comment
@davidhalter

davidhalter Mar 26, 2013

Owner

I know. You need to recompile it (as mentioned in #27 et al). There's no way around.

Owner

davidhalter commented Mar 26, 2013

I know. You need to recompile it (as mentioned in #27 et al). There's no way around.

@jeidsath

This comment has been minimized.

Show comment Hide comment
@jeidsath

jeidsath Mar 26, 2013

I'm going to file an internal bug report with the OS X team. Meanwhile, would you accept a patch for blacklisting certain modules?

I could make it use a list of known bad vim versions, unless you know of some way query whether vim has been mis-compiled?

I'm going to file an internal bug report with the OS X team. Meanwhile, would you accept a patch for blacklisting certain modules?

I could make it use a list of known bad vim versions, unless you know of some way query whether vim has been mis-compiled?

@davidhalter

This comment has been minimized.

Show comment Hide comment
@davidhalter

davidhalter Mar 26, 2013

Owner

I'm going to file an internal bug report with the OS X team.

You don't need to, it's already been fixed (just fetch the latest vim code base).

Meanwhile, would you accept a patch for blacklisting certain modules?

No. Recompiling is enough. That's what everyone did and what helped all of them.

Owner

davidhalter commented Mar 26, 2013

I'm going to file an internal bug report with the OS X team.

You don't need to, it's already been fixed (just fetch the latest vim code base).

Meanwhile, would you accept a patch for blacklisting certain modules?

No. Recompiling is enough. That's what everyone did and what helped all of them.

@jeidsath

This comment has been minimized.

Show comment Hide comment
@jeidsath

jeidsath Mar 26, 2013

I just built it from the following gist and still experience the segfault:

brew install https://gist.github.com/jeidsath/5247926/raw/e0befe225c2d73912673d09755c69563d0053803/vim.rb

acf7368a2acc is the latest revision on Vim's HG server.

joel@heimdall:~$ vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Mar 26 2013 11:37:28)
MacOS X (unix) version
Included patches: 1-875
Compiled by joel@heimdall.local
Normal version without GUI. Features included (+) or not (-):
-arabic +file_in_path -mouse_sgr +tag_binary
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
-balloon_eval +float -mouse_urxvt -tag_any_white
-browse +folding +mouse_xterm -tcl
+builtin_terms -footer +multi_byte +terminfo
+byte_offset +fork() +multi_lang +termresponse
+cindent -gettext -mzscheme +textobjects
-clientserver -hangul_input -netbeans_intg +title
+clipboard +iconv +path_extra -toolbar
+cmdline_compl +insert_expand -perl +user_commands
+cmdline_hist +jumplist +persistent_undo +vertsplit
+cmdline_info -keymap +postscript +virtualedit
+comments -langmap +printer +visual
-conceal +libcall -profile +visualextra
+cryptv +linebreak +python +viminfo
-cscope +lispindent -python3 +vreplace
+cursorbind +listcmds +quickfix +wildignore
+cursorshape +localmap +reltime +wildmenu
+dialog_con -lua -rightleft +windows
+diff +menu +ruby +writebackup
+digraphs +mksession +scrollbind -X11
-dnd +modify_fname -signs -xfontset
-ebcdic +mouse +smartindent -xim
-emacs_tags -mouseshape -sniff -xsmp
+eval -mouse_dec +startuptime -xterm_clipboard
+ex_extra -mouse_gpm +statusline -xterm_save
+extra_search -mouse_jsbterm -sun_workshop
-farsi -mouse_netterm +syntax
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/local/Cellar/vim/7.3.515/share/vim"
Compilation: /usr/bin/clang -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X_UNIX -no-cpp-precomp -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: /usr/bin/clang -L. -L/usr/local/Cellar/readline/6.2.2/lib -L/usr/local/lib -o vim -lm -lncurses -liconv -framework Cocoa -framework Python -lruby.1.9.1 -lobjc -L/usr/local/Cellar/ruby/1.9.3-p194/lib

I just built it from the following gist and still experience the segfault:

brew install https://gist.github.com/jeidsath/5247926/raw/e0befe225c2d73912673d09755c69563d0053803/vim.rb

acf7368a2acc is the latest revision on Vim's HG server.

joel@heimdall:~$ vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Mar 26 2013 11:37:28)
MacOS X (unix) version
Included patches: 1-875
Compiled by joel@heimdall.local
Normal version without GUI. Features included (+) or not (-):
-arabic +file_in_path -mouse_sgr +tag_binary
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
-balloon_eval +float -mouse_urxvt -tag_any_white
-browse +folding +mouse_xterm -tcl
+builtin_terms -footer +multi_byte +terminfo
+byte_offset +fork() +multi_lang +termresponse
+cindent -gettext -mzscheme +textobjects
-clientserver -hangul_input -netbeans_intg +title
+clipboard +iconv +path_extra -toolbar
+cmdline_compl +insert_expand -perl +user_commands
+cmdline_hist +jumplist +persistent_undo +vertsplit
+cmdline_info -keymap +postscript +virtualedit
+comments -langmap +printer +visual
-conceal +libcall -profile +visualextra
+cryptv +linebreak +python +viminfo
-cscope +lispindent -python3 +vreplace
+cursorbind +listcmds +quickfix +wildignore
+cursorshape +localmap +reltime +wildmenu
+dialog_con -lua -rightleft +windows
+diff +menu +ruby +writebackup
+digraphs +mksession +scrollbind -X11
-dnd +modify_fname -signs -xfontset
-ebcdic +mouse +smartindent -xim
-emacs_tags -mouseshape -sniff -xsmp
+eval -mouse_dec +startuptime -xterm_clipboard
+ex_extra -mouse_gpm +statusline -xterm_save
+extra_search -mouse_jsbterm -sun_workshop
-farsi -mouse_netterm +syntax
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/local/Cellar/vim/7.3.515/share/vim"
Compilation: /usr/bin/clang -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X_UNIX -no-cpp-precomp -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: /usr/bin/clang -L. -L/usr/local/Cellar/readline/6.2.2/lib -L/usr/local/lib -o vim -lm -lncurses -liconv -framework Cocoa -framework Python -lruby.1.9.1 -lobjc -L/usr/local/Cellar/ruby/1.9.3-p194/lib

@davidhalter

This comment has been minimized.

Show comment Hide comment
@davidhalter

davidhalter Mar 26, 2013

Owner

Strange, you're the first one.

I'm going to file an internal bug report with the OS X team.

You can do that if you want.

Is this MacVim or the other one?

Owner

davidhalter commented Mar 26, 2013

Strange, you're the first one.

I'm going to file an internal bug report with the OS X team.

You can do that if you want.

Is this MacVim or the other one?

@jeidsath

This comment has been minimized.

Show comment Hide comment
@jeidsath

jeidsath Mar 26, 2013

And now it's working for me. The same binary! (I had made sure that I wasn't using /usr/bin/vim by accident). I have no idea what's going on with that.

I'm still going to ask the person in charge of the OS X package to update their code for the next release -- brew doesn't provide vim by default, and you get a bunch of linker errors if you just try to go the naive configure python route.

Closing this issue.

And now it's working for me. The same binary! (I had made sure that I wasn't using /usr/bin/vim by accident). I have no idea what's going on with that.

I'm still going to ask the person in charge of the OS X package to update their code for the next release -- brew doesn't provide vim by default, and you get a bunch of linker errors if you just try to go the naive configure python route.

Closing this issue.

@jeidsath jeidsath closed this Mar 26, 2013

@davidhalter

This comment has been minimized.

Show comment Hide comment
@davidhalter

davidhalter Mar 26, 2013

Owner

Allright, thanks!

Owner

davidhalter commented Mar 26, 2013

Allright, thanks!

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