murisfurder / vim

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

Seg fault when turning on syntax with re=2 on ruby file #200

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
*What steps will reproduce the problem?*
1. Open the attached 'test.rb' file with vim 7.4 (also available in this gist: 
https://gist.github.com/bradleesand/9028736)

*What is the expected output? What do you see instead?*
I expect to open the file for editing.
I see:
Vim: Caught deadly signal SEGV

Vim: Finished.
Segmentation fault

*What version of the product are you using? On what operating system?*
vim 7.4 on Ubuntu 13.10 64-bit
See attached bugreport.txt

*Please provide any additional information below.*
Crashes when the vimrc contains the following two lines:
set re=2 " or omit this line if re=2 is default (which it probably is)
syntax on

Original issue reported on code.google.com by Bradlees...@gmail.com on 16 Feb 2014 at 3:32

Attachments:

GoogleCodeExporter commented 9 years ago
Comments on the formatting of the test.rb file:

Crashes on vim 4.7 with 22 or more spaces between regex and comment.
There must be one or fewer spaces surrounding the equal sign.
Right side: crashes on regex, not string.

Original comment by Bradlees...@gmail.com on 16 Feb 2014 at 3:37

GoogleCodeExporter commented 9 years ago
This looks like a bug fixed shortly after Vim-7.4 was released.
See description of patch 7.4.003 here:
ftp://ftp.vim.org/pub/vim/patches/7.4/README

Can you try to use a more recent version of Vim?

On Ubuntu, you can build the latest Vim from sources
as follows:

$ apt-get build-dep vim-gnome
$ hg clone https://code.google.com/p/vim/
$ cd vim
$ ./configure --with-features=huge --enable-gui=gtk2
$ make -j 4
$ sudo make install

Vim will be installed in /usr/local/bin/vim

Original comment by dominiqu...@gmail.com on 16 Feb 2014 at 7:33

GoogleCodeExporter commented 9 years ago
Yep. Looks like that did it. Thanks.

Original comment by Bradlees...@gmail.com on 17 Feb 2014 at 5:39

GoogleCodeExporter commented 9 years ago

Original comment by lech.lor...@gmail.com on 17 Feb 2014 at 5:48