From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#13103: 24.3.50; Trunk --with-ns eats 100% CPU Date: Fri, 07 Dec 2012 08:21:09 +0200 Message-ID: <83txryo016.fsf@gnu.org> References: <83fw3joxya.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1354861314 17039 80.91.229.3 (7 Dec 2012 06:21:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Dec 2012 06:21:54 +0000 (UTC) Cc: 13103@debbugs.gnu.org To: Didier Verna Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 07 07:22:07 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 1TgrJz-0006kU-7G for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Dec 2012 07:22:03 +0100 Original-Received: from localhost ([::1]:48248 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgrJm-0004jz-Fu for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Dec 2012 01:21:50 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgrJi-0004jp-Kg for bug-gnu-emacs@gnu.org; Fri, 07 Dec 2012 01:21:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TgrJh-0005ME-Jn for bug-gnu-emacs@gnu.org; Fri, 07 Dec 2012 01:21:46 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47432) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgrJh-0005M0-Gf for bug-gnu-emacs@gnu.org; Fri, 07 Dec 2012 01:21:45 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TgrJy-0006QU-8X for bug-gnu-emacs@gnu.org; Fri, 07 Dec 2012 01:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Dec 2012 06:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13103 X-GNU-PR-Package: emacs,ns X-GNU-PR-Keywords: Original-Received: via spool by 13103-submit@debbugs.gnu.org id=B13103.135486130924684 (code B ref 13103); Fri, 07 Dec 2012 06:22:02 +0000 Original-Received: (at 13103) by debbugs.gnu.org; 7 Dec 2012 06:21:49 +0000 Original-Received: from localhost ([127.0.0.1]:57681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TgrJl-0006Q2-Cv for submit@debbugs.gnu.org; Fri, 07 Dec 2012 01:21:49 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:48347) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TgrJi-0006Pi-3c for 13103@debbugs.gnu.org; Fri, 07 Dec 2012 01:21:47 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MEN00000DFCIB00@a-mtaout21.012.net.il> for 13103@debbugs.gnu.org; Fri, 07 Dec 2012 08:21:27 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MEN000HNDNNGH40@a-mtaout21.012.net.il>; Fri, 07 Dec 2012 08:21:24 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il 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.x 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:68087 Archived-At: > From: Didier Verna > Cc: 13103@debbugs.gnu.org > Date: Thu, 06 Dec 2012 22:24:11 +0100 > > Here's the result of gdb's 'where' when I kill -TSTP the Emacs.app > process, after attaching GDB to it. Not sure that's very useful. Also, > I should point out that Emacs itself does NOT hang or become > unresponsive. It works like a charm. It's just that the CPU usage goes > way up. > > > > #0 0x00007fff838dfd7a in mach_msg_trap () > #1 0x00007fff838e0444 in mach_msg () > #2 0x00007fff89580902 in __CFRunLoopRun () > #3 0x00007fff8957fd8f in CFRunLoopRunSpecific () > #4 0x00007fff809507ee in RunCurrentEventLoopInMode () > #5 0x00007fff809505f3 in ReceiveNextEventCommon () > #6 0x00007fff809504ac in BlockUntilNextEventMatchingListInMode () > #7 0x00007fff83ae4eb2 in _DPSNextEvent () > #8 0x00007fff83ae4801 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] () > #9 0x00007fff83aaa68f in -[NSApplication run] () > #10 0x0000000100191d95 in ns_select (nfds=1, readfds=0x7fff5fbfa290, writefds=0x7fff5fbfa210, exceptfds=, timeout=0x7fff5fbfa330, sigmask=) at /usr/local/src/emacs/trunk/src/nsterm.m:3537 > #11 0x000000010015dfad in wait_reading_process_output > #(time_limit=, > #nsecs=0, read_kbd Next step is to see which file descriptor is being watched here. (There's only one because nfds = 1.) Also, I suggest to do this experiment several times, to make sure that this is indeed related to the call to ns_select.