From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Edgar =?UTF-8?Q?Gon=C3=A7alves?= Newsgroups: gmane.emacs.bugs Subject: bug#7920: 24.0.50; Crash in balance_an_interval + 26 Date: Thu, 27 Jan 2011 16:32:55 +0000 Message-ID: References: <066CE4A2-8802-4B25-B51D-5E9DD732A288@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1296152812 32027 80.91.229.12 (27 Jan 2011 18:26:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 Jan 2011 18:26:52 +0000 (UTC) Cc: David Reitter , 7920@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 27 19:26:47 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 1PiWYQ-00029r-Ka for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Jan 2011 19:26:46 +0100 Original-Received: from localhost ([127.0.0.1]:37593 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PiWYQ-0001fe-3p for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Jan 2011 13:26:46 -0500 Original-Received: from [140.186.70.92] (port=56011 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PiW4R-00027Y-Fd for bug-gnu-emacs@gnu.org; Thu, 27 Jan 2011 12:57:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PiW3o-00005K-Ny for bug-gnu-emacs@gnu.org; Thu, 27 Jan 2011 12:55:47 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PiW3o-000059-JC for bug-gnu-emacs@gnu.org; Thu, 27 Jan 2011 12:55:08 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PiVpD-0002SV-4N; Thu, 27 Jan 2011 12:40:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Edgar =?UTF-8?Q?Gon=C3=A7alves?= 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:40: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.12961499709408 (code B ref 7920); Thu, 27 Jan 2011 17:40:03 +0000 Original-Received: (at 7920) by debbugs.gnu.org; 27 Jan 2011 17:39: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 1PiVof-0002Rg-Vc for submit@debbugs.gnu.org; Thu, 27 Jan 2011 12:39:30 -0500 Original-Received: from mail-ww0-f46.google.com ([74.125.82.46]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PiUej-0000mH-Kl for 7920@debbugs.gnu.org; Thu, 27 Jan 2011 11:25:10 -0500 Original-Received: by wwj40 with SMTP id 40so2397551wwj.15 for <7920@debbugs.gnu.org>; Thu, 27 Jan 2011 08:33:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer; bh=25Hiv2kFexn6/UNevN5MwL8R8vToAffOFfTfDa/AXLs=; b=mE8VsPRMsCkNqAmPGMqt+hWgzk9VNG7mP8elCX9cpWl3zgKFZ90ICaT1SnTnqDwAwI 1JuptYufl0UsBSYFE4MwIrS/DlGSPa7GT7aR5l9D4B8VG+CCA+F0DhKBVx/RcYw/LF8/ +kERqfBDOURTde3162jHE9DvsSn3RFkNKcrgg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=e+Y3Ks2OMAKpJvSerWVzMSxz3P4OzlRmuPjuhf3cpZ4KexV3JD/QuWtVBImd5JwFHB yqOSdtG+Yzr+tYw70DFhUy01JNBJC5va9mEfnPzZU/ftjEDKKuGXrsSgw5Mbh5xNKcYG /9i64F0bOR8LNfn2nV1GPlTePL/drN1EonwGk= Original-Received: by 10.216.48.70 with SMTP id u48mr2021695web.25.1296145999322; Thu, 27 Jan 2011 08:33:19 -0800 (PST) Original-Received: from bat.lan (bl13-164-249.dsl.telepac.pt [85.246.164.249]) by mx.google.com with ESMTPS id x3sm8492989wes.22.2011.01.27.08.32.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 27 Jan 2011 08:33:03 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1082) X-Mailman-Approved-At: Thu, 27 Jan 2011 12:39:29 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 27 Jan 2011 12:40:03 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Thu, 27 Jan 2011 13:26:05 -0500 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:43687 Archived-At: On Jan 27, 2011, at 3:31 AM, Stefan Monnier wrote: > Looking at the backtrace, the crash is probably not really in > balance_an_interval; instead what happened is that Emacs got stuck in = an > infinite recursion and the OS killed the process when it reached the > maximum allowed stack depth, which happened to be when Emacs was in > balance_an_interval. >=20 > I couldn't find any user-provided info in the bug-report, is that = right? I'm sorry I didn't file a description with this bug report, i forgot and = 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. > If I understand the backtrace right, it seems that the infinite > recursion went through `funcall', so it was an infinite recursion = within > Elisp, and those are supposed to be caught before reaching the > maximum allowed stack depth thanks to limits like max-specpdl-size. >=20 > So, maybe the bug is that max-specpdl-size is larger than the OS = allows, > in which case we should try and figure out why that is: is it because > someone set it explicitly higher (too high), or because the OS's = maximum > stack depth is lower than we thought? 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). = Why should Emacs set this value to anything lower than the maximum = supported value, does it affect the system performance/resources? 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. Thanks, -- Edgar Gon=E7alves=