GNU bug report logs - #7920
24.0.50; Crash in balance_an_interval + 26

Previous Next

Package: emacs;

Reported by: David Reitter <david.reitter <at> gmail.com>

Date: Wed, 26 Jan 2011 15:26:02 UTC

Severity: normal

Found in version 24.0.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 7920 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Edgar Gonçalves <edgar.goncalves <at> gmail.com>
Cc: David Reitter <david.reitter <at> gmail.com>, 7920 <at> debbugs.gnu.org
Subject: Re: bug#7920: 24.0.50; Crash in balance_an_interval + 26
Date: Thu, 27 Jan 2011 12:37:35 -0500
> sent the email... But in short, this has been happening when I'm using slime
> to connect to an emacs-launched clojure shell process.  In particular, it
> happens when clojure hangs, and I don't know how to collect more details at
> this point - next time it happens I'll provide you with more.

Thanks.

> Hmm, this may be indeed the case that my max-specdpl-size is too high.
> This is in part due to me not knowing what "too high" means for my
> machine - how can I calculate the optimal value? I remember having set
> it up to 100000 to be able to use a cedet/javasee function (guided by
> some solution posted on a blog whose name, i'm afraid, i can't
> recall).

Try to set it to a much lower value.  The current default is somewhere
around 1000.  It's not completely abnormal if it turns out to be too low
for some cases, but when you set it higher, be careful to do it in small
increments, at most doubling each time.

> Why should Emacs set this value to anything lower than the
> maximum supported value, does it affect the system
> performance/resources?

There is no "correct" value, sadly.  Basically the value should be set
to "OS-enforced-max-stack-size / expected-stack-frame-size-of-recursion".
AFAIK Emacs doesn't try to find out neither the numerator nor the
denominator, and I don't think the denominator is fixed: it depends on
the exact pattern of recursion.
We should replace (or complete) this test with something that really
tests whether we're running out of stack space: patches welcome.

> It has been working thus far, though, except with this occasional infinite
> recursion using slime. I've now set that variable's value to the default
> (removing my customization), and I'll see if I run into more problems.

Make sure you run with debug-on-error set to t, so that if you bump into
this problem, you should get a (Lisp) backtrace which should help figure
out where's that inf-recursion.


        Stefan




This bug report was last modified 13 years and 117 days ago.

Previous Next


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