From: Jay Belanger <jay.p.belanger@gmail.com>
To: Florian Beck <fb@miszellen.de>
Cc: 16999@debbugs.gnu.org
Subject: bug#16999: calc crashes when computation limit is increased
Date: Wed, 12 Mar 2014 17:44:15 -0500 [thread overview]
Message-ID: <87vbvjca0w.fsf@gmail.com> (raw)
In-Reply-To: <5320A7D9.3000802@miszellen.de>
> M-x calc
> 2n
> 0
> kc
>
> I.e. try to calculate the binomial coefficient of (-2 0).
This causes Calc to enter an infinite loop. It needs to be fixed, but
the problem has been around for a while so it probably needs to wait
until after the release.
> Computation got stuck or ran too long. Type `M' to increase the limit
>
> So do
>
> M
> kc
>
> and repeat a couple of times.
>
> Once `max-lisp-eval-depth' hits 64000 emacs crashes.
This seems to be an Emacs problem, rather than a problem specific to Calc.
Typing M doubles the sizes of `max-lisp-eval-depth' and
`max-specpdl-size'. Having `max-lisp-eval-depth' equal to 64000 by
itself doesn't seem to cause problems, but having `max-lisp-eval-depth'
equal to 64000 and `max-specpdl-size' equal to 83200 does cause Emacs to
crash on an infinite loop; evaluating:
(setq max-specpdl-size 83200
max-lisp-eval-depth 64000)
(defun f ()
(f))
(f)
will crash Emacs.
next prev parent reply other threads:[~2014-03-12 22:44 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-12 18:30 bug#16999: calc crashes when computation limit is increased Florian Beck
2014-03-12 22:44 ` Jay Belanger [this message]
2014-03-13 5:13 ` Dmitry Antipov
2014-03-13 9:11 ` Dmitry Antipov
2014-03-13 14:06 ` Florian Beck
2014-03-13 14:30 ` Dmitry Antipov
2014-03-13 16:56 ` Eli Zaretskii
2014-03-13 13:42 ` Stefan Monnier
2014-03-13 14:12 ` Florian Beck
2014-03-13 21:15 ` Jay Belanger
2014-03-13 22:10 ` Stefan Monnier
2020-09-09 12:19 ` Lars Ingebrigtsen
2020-09-10 16:02 ` Mattias Engdegård
2020-09-11 10:29 ` Mattias Engdegård
2020-09-11 11:54 ` Lars Ingebrigtsen
2020-09-14 9:45 ` Mattias Engdegård
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vbvjca0w.fsf@gmail.com \
--to=jay.p.belanger@gmail.com \
--cc=16999@debbugs.gnu.org \
--cc=fb@miszellen.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.