Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 16B67431FC2 for ; Wed, 12 Jun 2013 10:10:26 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FvZkX2gWPDFG for ; Wed, 12 Jun 2013 10:10:18 -0700 (PDT) Received: from dmz-mailsec-scanner-1.mit.edu (dmz-mailsec-scanner-1.mit.edu [18.9.25.12]) by olra.theworths.org (Postfix) with ESMTP id 240AB431FBC for ; Wed, 12 Jun 2013 10:10:18 -0700 (PDT) X-AuditID: 1209190c-b7f026d000006c21-f5-51b8ab799b39 Received: from mailhub-auth-1.mit.edu ( [18.9.21.35]) by dmz-mailsec-scanner-1.mit.edu (Symantec Messaging Gateway) with SMTP id B4.C3.27681.97BA8B15; Wed, 12 Jun 2013 13:10:17 -0400 (EDT) Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id r5CHAGE7019650; Wed, 12 Jun 2013 13:10:17 -0400 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r5CHADHV005363 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 12 Jun 2013 13:10:15 -0400 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.80) (envelope-from ) id 1UmoYg-0008QE-CA; Wed, 12 Jun 2013 13:10:08 -0400 Date: Wed, 12 Jun 2013 13:10:05 -0400 From: Austin Clements To: David Bremner Subject: Re: notmuch zombie apocolypse Message-ID: <20130612171004.GG22196@mit.edu> References: <87txl4glmv.fsf@maritornes.cs.unb.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87txl4glmv.fsf@maritornes.cs.unb.ca> User-Agent: Mutt/1.5.21 (2010-09-15) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmphleLIzCtJLcpLzFFi42IR4hRV1q1cvSPQ4PALXYsbrd2MFtdvzmR2 YPJ4tuoWs8eWQ++ZA5iiuGxSUnMyy1KL9O0SuDKWXH7FVHCJt6Lx533WBsY27i5GTg4JAROJ /T82sEDYYhIX7q1n62Lk4hAS2Mco8fX6f3YIZyOjRNeTiawQzmkmiZUnN0M5SxglHrQ8Aetn EVCV2LDkEpjNJqAhsW3/ckYQWwQofnXbZDYQmxnIblx7kRnEFhZQk1jQ3AxWzyugI7G9fRYr iC0kYCjR9LYHKi4ocXImxHxmAS2JG/9eMnUxcgDZ0hLL/3GAhDkFjCQ+tq0HKxEVUJGYcnIb 2wRGoVlIumch6Z6F0L2AkXkVo2xKbpVubmJmTnFqsm5xcmJeXmqRrqFebmaJXmpK6SZGcGBL 8uxgfHNQ6RCjAAejEg/vi9YdgUKsiWXFlbmHGCU5mJREeXVXAIX4kvJTKjMSizPii0pzUosP MUpwMCuJ8DpMAMrxpiRWVqUW5cOkpDlYlMR5L6fc9BcSSE8sSc1OTS1ILYLJynBwKEnwzloF 1ChYlJqeWpGWmVOCkGbi4AQZzgM0fD9IDW9xQWJucWY6RP4Uo6KUOG8zSEIAJJFRmgfXC0s8 rxjFgV4R5l0KUsUDTFpw3a+ABjMBDS7K2A4yuCQRISXVwLjqQJNp8be7iU/XSn+plhV5G/mn bp/m+8XtysfOcugf29eoY+6wcL2WV+SVruu6+xq2hr44Yvd6zqljxu08/wzWS9hfvb9gIcdn t4QNmStCMh5ud98gz++4bnFt5vGVgsvdcw86cwdUN3JMTU6btu+gja1of9eLdxtqYpwrA0Vf 8fssUFnzpF6JpTgj0VCLuag4EQAlZabXFwMAAA== Cc: notmuch X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jun 2013 17:10:26 -0000 TL;DR: This is a bug caused by GTK Emacs 24 and recent glib (introduced somewhere between 2.33.12 and 2.36.1) when there's no D-BUS session daemon running. It was "fixed" in Emacs git two weeks ago, but you can temporarily work around the problem by running DBUS or by exporting GSETTINGS_BACKEND=memory. Quoth David Bremner on Jun 12 at 10:31 am: > > Hi All; > > I've noticed some strange behaviour with zombie processes and > notmuch-emacs. > > * 0.15.2 > - start large search, quit (with q) > - zombie is created > - repeat as many times as you like. > - first search to complete, all zombies are gone. > - CPU is not pegged. > > * 0.15.2+174 > - even searches that complete create zombies > - cpu usage of emacs process hits 100% > > Defining the former as "good" and the latter as "bad", > bisect reveals 08fde50bf3a4c5 as the first "bad" commit. > > I am running emacs 24.3.1 on Debian jessie, with linux kernel 3.9.5-1 > from unstable. > > The bug is pretty annoying since it runs down the battery on my > laptop. In a quick test on another machine running Debian wheezy but > still emacs 24.3.1, I don't see any zombies created at all. I'm not sure > what the imprtant variable is, libc, glib, kernel... This is Emacs bug #14474: http://lists.gnu.org/archive/html/bug-gnu-emacs/2013-05/msg00705.html http://lists.gnu.org/archive/html/bug-gnu-emacs/2013-06/msg00002.html Paul Eggert found the same cause that David and I painstakingly tracked down over IRC: http://lists.gnu.org/archive/html/bug-gnu-emacs/2013-05/msg00726.html This workaround was committed to Emacs git master on May 30th in 8dea8fe0: http://lists.gnu.org/archive/html/bug-gnu-emacs/2013-05/msg00752.html