Variable: attempt-stack-overflow-recovery
attempt-stack-overflow-recovery is a variable defined in keyboard.c.
Value
t
Documentation
If non-nil, attempt to recover from C stack overflows.
This recovery is potentially unsafe and may lead to deadlocks or data corruption, but it usually works and may preserve modified buffers that would otherwise be lost. If nil, treat stack overflow like any other kind of crash or fatal error.
Probably introduced at or before Emacs version 26.1.
Source Code
// Defined in /usr/src/emacs/src/keyboard.c
DEFVAR_BOOL ("attempt-stack-overflow-recovery",
attempt_stack_overflow_recovery,
doc: /* If non-nil, attempt to recover from C stack overflows.
This recovery is potentially unsafe and may lead to deadlocks or data
corruption, but it usually works and may preserve modified buffers
that would otherwise be lost. If nil, treat stack overflow like any
other kind of crash or fatal error. */);