Crash with vimgrep

37 views
Skip to first unread message

Yukihiro Nakadaira

unread,
Jul 16, 2009, 6:34:29 PM7/16/09
to vim...@googlegroups.com
Vim crash when writing a file in BufRead event while vimgrep search.
I tested with vim7.2.234 on Ubuntu9.04 and Windows Vista.
This problem appeared at 7.2.203.

Steps To Reproduce:
$ echo x > foo.txt
$ vim -u NONE
:au BufRead *.txt w bar (this is what gzip plugin do for .gz)
:vimgrep x foo.txt
Vim: Caught deadly signal SEGV

Vim: Finished.
Segmentation fault

Backtrace:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb72ddac0 (LWP 9214)]
0x080bda7e in aucmd_restbuf (aco=0xbfdc6a04) at fileio.c:8518
8518 curbuf = curwin->w_buffer;
(gdb) bt
#0 0x080bda7e in aucmd_restbuf (aco=0xbfdc6a04) at fileio.c:8518
#1 0x08149273 in ex_vimgrep (eap=0xbfdc8b18) at quickfix.c:3447
#2 0x080abe3f in do_one_cmd (cmdlinep=0xbfdc8c90, sourcing=0, cstack=0xbfdc8c94, fgetline=0x80bb980 <getexline>,
cookie=0x0) at ex_docmd.c:2627
#3 0x080aa133 in do_cmdline (cmdline=0x0, getline=0x80bb980 <getexline>, cookie=0x0, flags=0) at ex_docmd.c:1096
#4 0x08122960 in nv_colon (cap=0xbfdc9018) at normal.c:5224
#5 0x08124a00 in normal_cmd (oap=0xbfdc907c, toplevel=1) at normal.c:1188
#6 0x080e3d77 in main_loop (cmdwin=0, noexmode=0) at main.c:1186
#7 0x080e712b in main (argc=2, argv=0x0) at main.c:942

--
Yukihiro Nakadaira - yukihiro....@gmail.com

Bram Moolenaar

unread,
Jul 17, 2009, 12:15:15 PM7/17/09
to Yukihiro Nakadaira, vim...@googlegroups.com

Yukihiro Nakadaira wrote:

I will look into it.

--
From "know your smileys":
(X0||) Double hamburger with lettuce and tomato

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Reply all
Reply to author
Forward
0 new messages