[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash robustness (Was: Re: Dynamic modules: MODULE_HANDLE_SIGNALS et

From: Eli Zaretskii
Subject: Re: Crash robustness (Was: Re: Dynamic modules: MODULE_HANDLE_SIGNALS etc.)
Date: Wed, 23 Dec 2015 19:55:17 +0200

> Cc: address@hidden, address@hidden,
>  address@hidden, address@hidden, address@hidden
> From: Daniel Colascione <address@hidden>
> Date: Wed, 23 Dec 2015 09:41:20 -0800
> > We could try calling shut_down_emacs from the signal handler, but I'm
> > not sure if the small alternate stack will be enough for write-region.
> > Something to investigate, I guess.
> We can make the alternate signal stack as large as we want.

Not as large as is safe to run arbitrary Lisp.

> >> The next time Emacs starts, we can restore the buffers we've saved
> >> this way and ask users to save them --- just like autosave, but done
> >> on-demand, at crash time, in C code, on the alternate signal stack.
> > 
> > Why "like autosave"?  What will be different from actually
> > auto-saving?  shut_down_emacs does that automatically.
> > 
> Er, yes, I noticed that after I wrote the email that we already do what
> I propose, more or less. In this case, we don't lose very much by just
> deleting the stack overflow code and relying on autosave.

Auto-save will only save buffers that visit files.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]