GNU bug report logs - #16999
calc crashes when computation limit is increased

Previous Next

Package: emacs;

Reported by: Florian Beck <fb <at> miszellen.de>

Date: Wed, 12 Mar 2014 18:56:01 UTC

Severity: normal

Done: Mattias EngdegÄrd <mattiase <at> acm.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Dmitry Antipov <dmantipov <at> yandex.ru>
To: 16999 <at> debbugs.gnu.org
Cc: Eli Zaretskii <eliz <at> gnu.org>, Paul Eggert <eggert <at> cs.ucla.edu>
Subject: bug#16999: calc crashes when computation limit is increased
Date: Thu, 13 Mar 2014 13:11:50 +0400
[Message part 1 (text/plain, inline)]
On 03/13/2014 09:13 AM, Dmitry Antipov wrote:

> Perhaps there should be a kind of protection against this. For example,
> eval_sub can check current stack depth against getrlimit (RLIMIT_STACK,...).

This is rather simple on general *NIX. But:

1) it should be implemented for MS-Windows and OSX too if we really need this;
2) Linux has prlimit to tweak limits of another process at run time,
   so actual limit should be checked each time eval_sub is called, thus
   introducing a (minor?) slowdown.

Dmitry

[error_if_c_stack_overflow.patch (text/x-patch, attachment)]

This bug report was last modified 4 years and 307 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.