From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#7920: 24.0.50; Crash in balance_an_interval + 26 Date: Thu, 27 Jan 2011 12:37:35 -0500 Message-ID: References: <066CE4A2-8802-4B25-B51D-5E9DD732A288@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1296151080 22291 80.91.229.12 (27 Jan 2011 17:58:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 Jan 2011 17:58:00 +0000 (UTC) Cc: David Reitter , 7920@debbugs.gnu.org To: Edgar =?UTF-8?Q?Gon=C3=A7alves?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 27 18:57:55 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PiW6S-00085V-Dh for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Jan 2011 18:57:52 +0100 Original-Received: from localhost ([127.0.0.1]:53617 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PiW6P-0002hm-39 for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Jan 2011 12:57:49 -0500 Original-Received: from [140.186.70.92] (port=56057 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PiW4a-0002LU-JR for bug-gnu-emacs@gnu.org; Thu, 27 Jan 2011 12:57:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PiW3q-00005r-Qa for bug-gnu-emacs@gnu.org; Thu, 27 Jan 2011 12:55:56 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PiW3q-00005n-P4 for bug-gnu-emacs@gnu.org; Thu, 27 Jan 2011 12:55:10 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PiVfX-0002FG-GV; Thu, 27 Jan 2011 12:30:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Jan 2011 17:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7920 X-GNU-PR-Package: emacs,ns X-GNU-PR-Keywords: Original-Received: via spool by 7920-submit@debbugs.gnu.org id=B7920.12961493708574 (code B ref 7920); Thu, 27 Jan 2011 17:30:03 +0000 Original-Received: (at 7920) by debbugs.gnu.org; 27 Jan 2011 17:29:30 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PiVez-0002EF-I7 for submit@debbugs.gnu.org; Thu, 27 Jan 2011 12:29:29 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PiVew-0002Dx-Aa for 7920@debbugs.gnu.org; Thu, 27 Jan 2011 12:29:27 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAEg8QU1FpZU//2dsb2JhbACkfHS8GIVPBIUXjHKCdw X-IronPort-AV: E=Sophos;i="4.60,386,1291611600"; d="scan'208";a="89436790" Original-Received: from 69-165-149-63.dsl.teksavvy.com (HELO pastel.home) ([69.165.149.63]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 27 Jan 2011 12:37:36 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id C18FF58C4E; Thu, 27 Jan 2011 12:37:35 -0500 (EST) In-Reply-To: ("Edgar =?UTF-8?Q?Gon=C3=A7alves?="'s message of "Thu, 27 Jan 2011 16:32:55 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 27 Jan 2011 12:30:03 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:43685 Archived-At: > 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