emacs-devel
[Top][All Lists]
Advanced

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

[RFC] sigaltstack + longjmp to protect from C stack overflow


From: Dmitry Antipov
Subject: [RFC] sigaltstack + longjmp to protect from C stack overflow
Date: Mon, 25 Aug 2014 18:46:18 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0

This is an experimental and most probably non-portable method to handle
C stack overflow by using well-known sigaltstack/siglongjmp approach.
This can help if someone do something like:

(setq max-specpdl-size 83200000
      max-lisp-eval-depth 640000)

(defun f1 () (f1))

(f1) ==> Re-entering top level after C stack overflow

Comments?

Dmitry

Attachment: c_stack_overflow.patch
Description: Text Data


reply via email to

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