The attached bash script crash.sh causes Vim to crash. I found where a NULL pointer is being dereferenced and fixed it (find the backtrace at the moment of the crash below at [1]). However (here's the question to Tim Pope), if I apply the patch (the attached fix.patch) that avoids the crash, I am left with only 1 window instead of 2. I have no idea whether this is another problem with Vim or maybe it's caused by fugitive. Can you have a look at this, Tim? Thanks!
Cheers, Lech 1. The backtrace: #0 0x081c5a96 in win_close (win=0x82faa70, free_buf=0) at window.c:2187 #1 0x08098ffe in do_ecmd (fnum=3, ffname=0x0, sfname=0x0, eap=0x0, newlnum=1, flags=0, oldwin=0x82faa70) at ex_cmds.c:3397 #2 0x08098995 in getfile (fnum=3, ffname=0x0, sfname=0x0, setpm=1, lnum=1, forceit=0) at ex_cmds.c:3061 #3 0x08054855 in buflist_getfile (n=3, lnum=1, options=5, forceit=0) at buffer.c:1987 #4 0x0815104f in qf_jump (qi=0x823e780, dir=1, errornr=-1, forceit=0) at quickfix.c:1787 #5 0x081534b1 in ex_cnext (eap=0xbfffe8cc) at quickfix.c:2990 #6 0x080a8c77 in do_one_cmd (cmdlinep=0xbfffea2c, sourcing=0, cstack=0xbfffea88, fgetline=0x80bc087 <getexline>, cookie=0x0) at ex_docmd.c:2668 #7 0x080a658a in do_cmdline (cmdline=0x0, fgetline=0x80bc087 <getexline>, cookie=0x0, flags=0) at ex_docmd.c:1122 #8 0x08126c7b in nv_colon (cap=0xbfffedec) at normal.c:5404 #9 0x081201e3 in normal_cmd (oap=0xbfffeeac, toplevel=1) at normal.c:1193 #10 0x081ed8a8 in main_loop (cmdwin=0, noexmode=0) at main.c:1294 #11 0x081ed2c1 in main (argc=1, argv=0xbffff0f4) at main.c:998 -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
fix.patch
Description: Binary data
crash.sh
Description: Bourne shell script
