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.
/* 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);
* calling free(). */
preserve_exit();
+ /* NOTREACHED */
+
#ifdef NBDEBUG
reset_signals();
may_core_dump();
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1914,
/**/
1913,
/**/