http://www.mail-archive.com/vim_dev@googlegroups.com/msg04770.html http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38136 With -O2: "foo.txt" [New File]*** buffer overflow detected ***: vim terminated Vim: Caught deadly signal ABRT Vim: Finished. Aborted With -O2 -D_FORTIFY_SOURCE=1, it does not ABRT. See the above links for upstream discussion. A quick fix would be to append -D_FORTIFY_SOURCE=1. I think.
The question is, why doesn't ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.251 get applied? This is in Gentoo Prefix, btw. Maybe we screwed something up... =/
Dang, our fault. While overriding src_prepare() in vim's ebuild, we never called vim_src_prepare() Doh! Sorry for the noise!!
Heh, as soon as I saw your name, I thought to myself: is there a 'resolved: prefix_is_crazy'? ;)