GNU bug report logs - #30387
26.0.91; lisp_align_free is hanging Emacs on macOS 10.12

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: "John Wiegley" <johnw@HIDDEN>; merged with #30322; dated Thu, 8 Feb 2018 08:35:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Merged 30322 30387. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 8 Feb 2018 08:34:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 08 03:34:29 2018
Received: from localhost ([127.0.0.1]:33724 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ejhf2-0000Cu-PE
	for submit <at> debbugs.gnu.org; Thu, 08 Feb 2018 03:34:28 -0500
Received: from eggs.gnu.org ([208.118.235.92]:53819)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <johnw@HIDDEN>) id 1ejhf1-0000Ci-Tv
 for submit <at> debbugs.gnu.org; Thu, 08 Feb 2018 03:34:28 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <johnw@HIDDEN>) id 1ejhev-0001yy-OP
 for submit <at> debbugs.gnu.org; Thu, 08 Feb 2018 03:34:22 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,T_RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:33917)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <johnw@HIDDEN>) id 1ejhev-0001yp-Lp
 for submit <at> debbugs.gnu.org; Thu, 08 Feb 2018 03:34:21 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:44780)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <johnw@HIDDEN>) id 1ejheu-0002wS-MM
 for bug-gnu-emacs@HIDDEN; Thu, 08 Feb 2018 03:34:21 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <johnw@HIDDEN>) id 1ejher-0001wm-Gz
 for bug-gnu-emacs@HIDDEN; Thu, 08 Feb 2018 03:34:20 -0500
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51439)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <johnw@HIDDEN>)
 id 1ejher-0001we-DC; Thu, 08 Feb 2018 03:34:17 -0500
Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:46113)
 by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256)
 (Exim 4.82) (envelope-from <johnw@HIDDEN>)
 id 1ejheq-0000iz-Um; Thu, 08 Feb 2018 03:34:17 -0500
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44])
 by mailauth.nyi.internal (Postfix) with ESMTP id 0A1D620BF1;
 Thu,  8 Feb 2018 03:34:16 -0500 (EST)
Received: from frontend2 ([10.202.2.161])
 by compute4.internal (MEProxy); Thu, 08 Feb 2018 03:34:16 -0500
X-ME-Sender: <xms:iAt8WkoQ4uI3ip_Wm9taHApPMEWqDXWFILeiRvyDg6PBlHyc-r2-0Q>
Received: from localhost (76-234-69-149.lightspeed.frokca.sbcglobal.net
 [76.234.69.149])
 by mail.messagingengine.com (Postfix) with ESMTPA id 6730D24550;
 Thu,  8 Feb 2018 03:34:15 -0500 (EST)
From: "John Wiegley" <johnw@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 26.0.91; lisp_align_free is hanging Emacs on macOS 10.12
Date: Thu, 08 Feb 2018 00:34:09 -0800
Message-ID: <m2y3k33mny.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (darwin)
Mail-Followup-To: bug-gnu-emacs@HIDDEN
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

I've been unable to find reproducible conditions for this bug, since it only
happens after Emacs (built from emacs-26 release branch) has been running for
many hours. Basically, Emacs deadlocks -- showing the spinning beach ball of
death -- and when I sample the process using Instruments.app, I find that it's
gotten stuck in lisp_align_free.

Looking at that function, I see this loop:

      while (*tem)
	{
	  if (*tem >= (struct ablock *) abase && *tem < atop)
	    {
	      i++;
	      *tem = (*tem)->x.next_free;
	    }
	  else
	    tem = &(*tem)->x.next_free;
	}

There is no loop guard here to detect cycles, if that's what is happening.

I'll start running with full debugging on over the next few days to see if
that reveals how I'm getting stuck in this situation, but as for now, it has
required kill'ing Emacs twice in the past week.

-- 
John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2




Acknowledgement sent to "John Wiegley" <johnw@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#30387; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 8 Feb 2018 12:30:02 UTC

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