emacs-devel
[Top][All Lists]
Advanced

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

Re: Dynamic modules: MODULE_HANDLE_SIGNALS etc.


From: Eli Zaretskii
Subject: Re: Dynamic modules: MODULE_HANDLE_SIGNALS etc.
Date: Tue, 22 Dec 2015 19:51:54 +0200

> From: Philipp Stephani <address@hidden>
> Date: Tue, 22 Dec 2015 17:26:14 +0000
> Cc: address@hidden, address@hidden, address@hidden, 
>       address@hidden
> 
> IIUC this code (terminate_due_to_signal) already auto-saves without calling
> Lisp (or module) code, so this should be usable. We just need to make sure 
> that
> module code is not run after a stack overflow. Would it be possible to chose
> this path if a module function is running? 

I'm not sure I understand your proposal in enough detail to answer.
Are you suggesting to call terminate_due_to_signal where we detect
stack overflow, without unwinding the stack by longjmp?  If so, that
runs a high risk of crashing, due to several reasons (I can explain
them if you indeed suggested something similar to that).  We must
release enough stack space before we call any non-trivial code.
That's what longjmp to top level does.

If you are suggesting something else, please elaborate.



reply via email to

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