On 16-Aug-2010 Peter Odding <[email protected]> wrote:
> Hi list,
>
> In the last few weeks I've had Vim crash on me several times with
> messages like "Vim: Caught deadly signal SEGV" and the following:
>
> *** glibc detected *** /usr/local/bin/gvim: double free or corruption
> (out): 0x0000000002aaf9c0 ***
>
> I think I finally found the problem: It's a BufWritePost autocmd that
> checks for syntax errors in Python source code. With the attached
> files "crash.vim" and "example.py" in my working directory Vim
> crashes once every three or four times when I execute the following
> command repeatedly:
>
> gvim -u NONE -U NONE -N --noplugin -S crash.vim example.py
The problem is a double free.
The attached patch fixes the problem.
--
Cheers,
Lech
--
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
diff --git a/src/quickfix.c b/src/quickfix.c
index c67397a..7ff4318 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -2125,6 +2125,7 @@ qf_free(qi, idx)
--qi->qf_lists[idx].qf_count;
}
vim_free(qi->qf_lists[idx].qf_title);
+ qi->qf_lists[idx].qf_title = NULL;
}
/*