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 11:55:55 +0200 Message-ID: References: <20120914.230819.731988138196046556.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=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1347703267 30085 80.91.229.3 (15 Sep 2012 10:01:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Sep 2012 10:01:07 +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 12:01: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 1TCpBW-0006jT-5H for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Sep 2012 12:01:10 +0200 Original-Received: from localhost ([::1]:57136 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCpBS-0003xv-As for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Sep 2012 06:01:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCpBN-0003s6-It for bug-gnu-emacs@gnu.org; Sat, 15 Sep 2012 06:01:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCpBM-0005RF-Bl for bug-gnu-emacs@gnu.org; Sat, 15 Sep 2012 06:01:01 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53471) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCpBM-0005R9-8O for bug-gnu-emacs@gnu.org; Sat, 15 Sep 2012 06:01:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TCpCL-0007lw-SN for bug-gnu-emacs@gnu.org; Sat, 15 Sep 2012 06:02: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 10:02: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.134770329129828 (code B ref -1); Sat, 15 Sep 2012 10:02:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Sep 2012 10:01:31 +0000 Original-Received: from localhost ([127.0.0.1]:34781 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCpBq-0007l2-KV for submit@debbugs.gnu.org; Sat, 15 Sep 2012 06:01:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37991) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCpBn-0007ko-BB for submit@debbugs.gnu.org; Sat, 15 Sep 2012 06:01:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCpAc-0004o3-GB for submit@debbugs.gnu.org; Sat, 15 Sep 2012 06:00:19 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:38181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCpAc-0004aB-Bs for submit@debbugs.gnu.org; Sat, 15 Sep 2012 06:00:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCp6Z-0001oc-0G for bug-gnu-emacs@gnu.org; Sat, 15 Sep 2012 05:56:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCp6X-0003Y8-OK for bug-gnu-emacs@gnu.org; Sat, 15 Sep 2012 05:56:02 -0400 Original-Received: from mailout.attendit.se ([83.140.103.4]:36827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCp6X-0003XF-Dw for bug-gnu-emacs@gnu.org; Sat, 15 Sep 2012 05:56:01 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.attendit.se (Postfix) with ESMTP id C7722501B9 for ; Sat, 15 Sep 2012 11:49:55 +0200 (CEST) Original-Received: (qmail 20112 invoked by uid 89); 15 Sep 2012 09:55:30 -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 09:55:30 -0000 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 77B787FA05E; Sat, 15 Sep 2012 11:55:55 +0200 (CEST) In-Reply-To: <20120914.230819.731988138196046556.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:64349 Archived-At: Hello. 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. Jan D. 14 sep 2012 kl. 23:08 skrev Harald Hanche-Olsen : > This concerns emacs built with --with-ns from trunk on OS X. >=20 > To start with the symptom: Emacs seems to freeze, and spends a lot of > CPU time. Taking a sample with Activity monitor appears to indicate a > very deeply nested mark_object calls; from this I conclude that the > problem appears to happen in GC. >=20 > How to trigger the symptom: I always got it by trying to send an email > message with a large attachment. My mail client of choice is Mew, but > I suspect that any activity triggering garbage collection will also > trigger the bug. >=20 > After bisecting, I come to the conclusion that this revision is to > blame: >=20 > revno: 109470 > committer: Jan D. > branch nick: trunk > timestamp: Mon 2012-08-06 18:09:02 +0200 > message: > * keyboard.c (timer_check_2): Add break so timer_check returns next = timeout. >=20 > That revision only adds a single line of code. I also find that the > bug disappears if I patch the current tip of trunk (revision 110013) > as follows, which undoes revision 109470: >=20 > =3D=3D=3D modified file 'src/keyboard.c' > --- src/keyboard.c 2012-09-13 02:21:28 +0000 > +++ src/keyboard.c 2012-09-14 19:12:15 +0000 > @@ -4484,7 +4484,6 @@ > } >=20 > nexttime =3D make_emacs_time (0, 0); > - break; > } > else > /* When we encounter a timer that is still waiting, >=20 >=20 > I suppose the break was added for a good reason, so this is probably > not the right thing. But it does cure the present problem. >=20 > (This bug is also discussed on the emacs-devel list, in the thread > titled "Emacs seems awfully unstable on OS X lately".) >=20 > There seems to be a second bug, introduced later, that causes crashes > (as opposed to hangs). I mention this because the second bug could > interfere with attempts to work on this one. I will endeavour to track > down the other bug as well. >=20 > - Harald