From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#12447: 24.1.50; Stuck in garbage collection on OS X Date: Sat, 15 Sep 2012 20:59:09 +0200 Message-ID: <61FFB506-42BA-4DE7-8AE3-092E940DD7AC@swipnet.se> References: <20120914.230819.731988138196046556.hanche@math.ntnu.no> <20120915.130710.337227137258656213.hanche@math.ntnu.no> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\)) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1347735606 3825 80.91.229.3 (15 Sep 2012 19:00:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Sep 2012 19:00:06 +0000 (UTC) Cc: 12447@debbugs.gnu.org To: Harald Hanche-Olsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 15 21:00:10 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TCxb6-0005zu-6G for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Sep 2012 21:00:08 +0200 Original-Received: from localhost ([::1]:32897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCxb1-0001Y7-Da for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Sep 2012 15:00:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCxax-0001XY-8T for bug-gnu-emacs@gnu.org; Sat, 15 Sep 2012 15:00:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCxav-0004Na-W3 for bug-gnu-emacs@gnu.org; Sat, 15 Sep 2012 14:59:59 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCxav-0004NW-SS for bug-gnu-emacs@gnu.org; Sat, 15 Sep 2012 14:59:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TCxbx-000743-Lc for bug-gnu-emacs@gnu.org; Sat, 15 Sep 2012 15:01:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Sep 2012 19:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12447 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.134773562626201 (code B ref -1); Sat, 15 Sep 2012 19:01:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Sep 2012 19:00:26 +0000 Original-Received: from localhost ([127.0.0.1]:35772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCxbN-0006o2-CT for submit@debbugs.gnu.org; Sat, 15 Sep 2012 15:00:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58266) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCxbK-0006jZ-9y for submit@debbugs.gnu.org; Sat, 15 Sep 2012 15:00:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCxaG-0004JY-SC for submit@debbugs.gnu.org; Sat, 15 Sep 2012 14:59:17 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:42468) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCxaG-0004JU-Oq for submit@debbugs.gnu.org; Sat, 15 Sep 2012 14:59:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42120) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCxaF-0001J7-Pv for bug-gnu-emacs@gnu.org; Sat, 15 Sep 2012 14:59:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCxaE-0004JH-CC for bug-gnu-emacs@gnu.org; Sat, 15 Sep 2012 14:59:15 -0400 Original-Received: from mailout.attendit.se ([83.140.103.4]:50498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCxaE-0004J4-5n for bug-gnu-emacs@gnu.org; Sat, 15 Sep 2012 14:59:14 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.attendit.se (Postfix) with ESMTP id 4EFE950196 for ; Sat, 15 Sep 2012 20:53:10 +0200 (CEST) Original-Received: (qmail 26023 invoked by uid 89); 15 Sep 2012 18:58:45 -0000 Original-Received: from h-46-59-42-18.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.18) by mail01.melmac.se with ESMTPA; 15 Sep 2012 18:58:45 -0000 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id AE2AC7FA05E; Sat, 15 Sep 2012 20:59:10 +0200 (CEST) In-Reply-To: <20120915.130710.337227137258656213.hanche@math.ntnu.no> X-Mailer: Apple Mail (2.1486) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64369 Archived-At: 15 sep 2012 kl. 13:07 skrev Harald Hanche-Olsen : > [Jan Dj=E4rv (2012-09-15 09:55:55 UTC)] >=20 >> I think this is probably the same bug as in #12326. I.e. a timer = gets added over and over again. >> Please consider how to fix the original problem as described in = http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D12326#11 before removing = the break statement. >=20 > Thanks for the pointer. There are certainly timers involved in the = code that runs when I get the hangs; I'll review it and see if that is = where the problem lies. >=20 > However, I am not sure exactly what to look for. Or, more precisely, = what is the undefined behaviour in js2-mode that you complain about it = bug 12326? >=20 The undefined behaviour was before adding the break, timers could run at = a time in the future that depended on other timers. The defined = behaviour is with the break, timers run when they should. I suspect there is some bug in the C code when adding a timer from = within a timer callback. > On a side note, I see that only a few timer functions are described in = the elisp manual. It appears one has to read timer.el to find out how = timers work at a lower level. Or did I miss something? As Eli has answered, the timers are handeled in C as a list sorted by = time when the timers are to be run. I.e. the next timer to run is at = the head of the list. Jan D.