potatomaster42 / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

vim 7.4: Segmentation fault in search and replace #278

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Search and replace command: %s/\ze*//

What is the expected output? What do you see instead?
Vim crashes (segmentation fault) instead of completing the search and replace.

What version of the product are you using? On what operating system?
$ vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Sep 17 2014 14:07:59)
Included patches: 1-273
Modified by Gentoo-7.4.273
Compiled by rebane@rebane-laptop
Huge version without GUI.  Features included (+) or not (-):
+acl             +farsi           +mouse_netterm   +syntax
+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_interact               

+eval            +mouse_dec       +startuptime     +xterm_clipboard             

+ex_extra        +mouse_gpm       +statusline      -xterm_save                  

+extra_search    -mouse_jsbterm   -sun_workshop    -xpm                         

   system vimrc file: "/etc/vim/vimrc"                                                                                                                                                                     
     user vimrc file: "$HOME/.vimrc"                                                                                                                                                                       
 2nd user vimrc file: "~/.vim/vimrc"                                                                                                                                                                       
      user exrc file: "$HOME/.exrc"                                                                                                                                                                        
  fall-back for $VIM: "/usr/share/vim"                                                                                                                                                                     
Compilation: x86_64-pc-linux-gnu-gcc -c -I. -Iproto -DHAVE_CONFIG_H     -O2 
-march=native -pipe -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1                       

Linking: 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 -lncurses -lelf 
-lnsl   -lacl -lattr -lgpm -ldl    -L/usr/lib64/python2.7/config -lpython2.7 
-lpthread -ldl -lutil -lm -Xlinker -export-dynamic

Please provide any additional information below.
*) gdb shows that vim enters an infinite call loop and runs out of stack space.
*) Was not able to reproduce in vim 7.2 and 7.3.

Original issue reported on code.google.com by rebanere...@gmail.com on 5 Nov 2014 at 2:53

GoogleCodeExporter commented 9 years ago
This was already reported and fixed by patch 7.4.421

Original comment by brammool...@gmail.com on 5 Nov 2014 at 3:37