To: vim_dev@googlegroups.com Subject: Patch 7.4.1914 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.1914 Problem: Executing autocommands while using the signal stack has a high chance of crashing Vim. Solution: Don't invoke autocommands when on the signal stack. Files: src/os_unix.c *** ../vim-7.4.1913/src/os_unix.c 2016-06-04 14:37:17.726277995 +0200 --- src/os_unix.c 2016-06-10 19:42:37.806894982 +0200 *************** *** 1090,1095 **** --- 1090,1101 ---- /* Remember how often we have been called. */ ++entered; + #ifdef FEAT_AUTOCMD + /* Executing autocommands is likely to use more stack space than we have + * available in the signal stack. */ + block_autocmds(); + #endif + #ifdef FEAT_EVAL /* Set the v:dying variable. */ set_vim_var_nr(VV_DYING, (long)entered); *************** *** 1171,1176 **** --- 1177,1184 ---- * calling free(). */ preserve_exit(); + /* NOTREACHED */ + #ifdef NBDEBUG reset_signals(); may_core_dump(); *** ../vim-7.4.1913/src/version.c 2016-06-09 22:52:56.207926413 +0200 --- src/version.c 2016-06-10 19:49:03.718889673 +0200 *************** *** 755,756 **** --- 755,758 ---- { /* Add new patch number below this line */ + /**/ + 1914, /**/ -- hundred-and-one symptoms of being an internet addict: 88. Every single time you press the 'Get mail' button...it does get new mail. /// Bram Moolenaar -- Bram@Moolenaar.net -- 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 ///