Dominique Pelle wrote: > Vim-7.3.382 (tiny) built with -DEXITFREE crashes when exiting. > It happens when FEAT_WINDOW is is not enabled. > > Steps to reproduce: > > 1/ Make sure -DEXITFREE is not commented in vim/src/Makefile > > 2/ $ cd vim > $ ./configure --with-features=tiny > $ make > $ cd src > $ ./vim -u NONE -c q > Vim: Caught deadly signal SEGV
[...] > The 'win' pointer is NULL in buffer.c:423: > > #7 0x0000000000409c2a in close_buffer (win=0x0, buf=0x7e0070, > action=4) at buffer.c:423 > 423 win->w_buffer == buf) > (gdb) list > 418 buf_freeall(buf, (del_buf ? BFA_DEL : 0) + (wipe_buf ? BFA_WIPE : 0)); > 419 if ( > 420 #ifdef FEAT_WINDOWS > 421 win_valid(win) && > 422 #endif > 423 win->w_buffer == buf) > 424 win->w_buffer = NULL; /* make sure we don't use the buffer now */ > 425 > 426 #ifdef FEAT_AUTOCMD > 427 /* Autocommands may have deleted the buffer. */ > (gdb) p win > $1 = (win_T *) 0x0 > > Note that 'win' was checked for NULL a few lines above at line but > not where it crashes. The lines where it crashes where introduced > in Vim-7.3.312. > > Attached patch fixes it. Thanks Dominique! -- I still remember when I gave up Smoking, Drinking and Sex. It was the most *horrifying* hour of my life! /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- 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
