From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#5535: 23.1.50; emacs daemon high CPU load even while ununsed Date: Sat, 6 Feb 2010 10:34:18 -0800 (PST) Message-ID: <201002061834.o16IYInw028968@godzilla.ics.uci.edu> References: <867hqqnyqp.fsf@djcbsoftware.nl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1265482677 20270 80.91.229.12 (6 Feb 2010 18:57:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Feb 2010 18:57:57 +0000 (UTC) Cc: 5535@debbugs.gnu.org To: djcb@djcbsoftware.nl Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 06 19:57:53 2010 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 1Ndpqp-0001Zn-Is for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Feb 2010 19:57:51 +0100 Original-Received: from localhost ([127.0.0.1]:57064 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ndpqo-0002ri-TH for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Feb 2010 13:57:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ndpqk-0002qu-NY for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2010 13:57:46 -0500 Original-Received: from [199.232.76.173] (port=40346 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ndpqk-0002qH-8B for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2010 13:57:46 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ndpqi-00028E-9S for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2010 13:57:45 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52724) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ndpqh-00027y-6b for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2010 13:57:43 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NdpUj-0000kH-P9; Sat, 06 Feb 2010 13:35:01 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Dan Nicolaescu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Feb 2010 18:35:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5535 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5535-submit@debbugs.gnu.org id=B5535.12654812752848 (code B ref 5535); Sat, 06 Feb 2010 18:35:01 +0000 Original-Received: (at 5535) by debbugs.gnu.org; 6 Feb 2010 18:34:35 +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 1NdpUI-0000jt-KK for submit@debbugs.gnu.org; Sat, 06 Feb 2010 13:34:34 -0500 Original-Received: from paul-mcgann-v0.ics.uci.edu ([128.195.1.147]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NdpUG-0000jl-6V for 5535@debbugs.gnu.org; Sat, 06 Feb 2010 13:34:33 -0500 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by paul-mcgann-v0.ics.uci.edu (8.13.8/8.13.8) with ESMTP id o16IYJ24006575 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 6 Feb 2010 10:34:19 -0800 Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id o16IYInw028968; Sat, 6 Feb 2010 10:34:18 -0800 (PST) In-Reply-To: <867hqqnyqp.fsf@djcbsoftware.nl> (djcb@djcbsoftware.nl's message of "Sat, 06 Feb 2010 17:57:18 +0200") Original-Lines: 47 X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: o16IYJ24006575 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 06 Feb 2010 13:35:01 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:34931 Archived-At: djcb@djcbsoftware.nl writes: > I noted that Emacs (emacs --daemon) takes a lot of of CPU (up to 80%), even > when I am not using it. I am starting emacs --daemon from my ~/.gnomerc, which > is invoked when I start my X session. > > I used strace to see what was going on: > > gettimeofday({1265471350, 42334}, NULL) = 0 > read(0, "", 4096) = 0 > write(2, "Back to top level.", 18) = 18 > write(2, "\n", 1) = 1 > poll([{fd=7, events=POLLIN}], 1, 0) = 0 (Timeout) > gettimeofday({1265471350, 42538}, NULL) = 0 > read(0, "", 4096) = 0 > write(2, "Back to top level.", 18) = 18 > write(2, "\n", 1) = 1 > poll([{fd=7, events=POLLIN}], 1, 0) = 0 (Timeout) > gettimeofday({1265471350, 42736}, NULL) = 0 > read(0, "", 4096) = 0 > write(2, "Back to top level.", 18) = 18 > write(2, "\n", 1) = 1 > > [...] > > and this continues at high speed. Apparently, emacs calling the lisp function > normal-top-level in lisp/startup.el many, many times. > Hope this helps tracking down the issue. Did you have X11 emacs frames and kill the frames, or kill X11? If yes, then it's probably a long time bug in Gtk+ that causes this. http://bugzilla.gnome.org/show_bug.cgi?id=85715 > Best wishes, > Dirk. > > > If you would like to further debug the crash, please read the file > /usr/share/emacs/23.1.50/etc/DEBUG for instructions. > > > In GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.0) > of 2009-09-27 on crested, modified by Debian > (emacs-snapshot package, version 1:20090909-1) This is an old snapshot, you might want to try a newer version.