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#13103: 24.3.50; Trunk --with-ns eats 100% CPU Date: Sat, 8 Dec 2012 10:17:45 +0100 Message-ID: <3E47B4C5-02D7-4030-916E-8B7CAF2BDDAC@swipnet.se> References: <83fw3joxya.fsf@gnu.org> <83txryo016.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1354958324 31103 80.91.229.3 (8 Dec 2012 09:18:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Dec 2012 09:18:44 +0000 (UTC) Cc: 13103@debbugs.gnu.org, Didier Verna To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 08 10:18:57 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 1ThGYh-0003ho-Ia for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Dec 2012 10:18:55 +0100 Original-Received: from localhost ([::1]:44954 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThGYV-0001mi-9Y for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Dec 2012 04:18:43 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThGYS-0001ma-Rl for bug-gnu-emacs@gnu.org; Sat, 08 Dec 2012 04:18:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ThGYR-00066T-Ps for bug-gnu-emacs@gnu.org; Sat, 08 Dec 2012 04:18:40 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49585) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThGYR-00066M-MX for bug-gnu-emacs@gnu.org; Sat, 08 Dec 2012 04:18:39 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1ThGYo-0001CK-Gy for bug-gnu-emacs@gnu.org; Sat, 08 Dec 2012 04:19:02 -0500 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, 08 Dec 2012 09:19: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.13549582934547 (code B ref 13103); Sat, 08 Dec 2012 09:19:02 +0000 Original-Received: (at 13103) by debbugs.gnu.org; 8 Dec 2012 09:18:13 +0000 Original-Received: from localhost ([127.0.0.1]:59835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ThGY0-0001BH-HT for submit@debbugs.gnu.org; Sat, 08 Dec 2012 04:18:13 -0500 Original-Received: from mailout.melmac.se ([62.20.26.67]:49665) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ThGXy-0001B9-76 for 13103@debbugs.gnu.org; Sat, 08 Dec 2012 04:18:10 -0500 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 943169B8A for <13103@debbugs.gnu.org>; Sat, 8 Dec 2012 10:17:44 +0100 (CET) Original-Received: (qmail 16501 invoked by uid 89); 8 Dec 2012 09:17:44 -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; 8 Dec 2012 09:17:44 -0000 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 53FC67FA05E; Sat, 8 Dec 2012 10:17:44 +0100 (CET) In-Reply-To: <83txryo016.fsf@gnu.org> X-Mailer: Apple Mail (2.1499) 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:68173 Archived-At: Hello. 7 dec 2012 kl. 07:21 skrev Eli Zaretskii : >> From: Didier Verna >> Cc: 13103@debbugs.gnu.org >> Date: Thu, 06 Dec 2012 22:24:11 +0100 >>=20 >> 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. >>=20 >>=20 >>=20 >> #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=3D1, = readfds=3D0x7fff5fbfa290, writefds=3D0x7fff5fbfa210, exceptfds=3D, timeout=3D0x7fff5fbfa330, = sigmask=3D) at = /usr/local/src/emacs/trunk/src/nsterm.m:3537 >> #11 0x000000010015dfad in wait_reading_process_output >> #(time_limit=3D, >> #nsecs=3D0, read_kbd =20 >=20 > Next step is to see which file descriptor is being watched here. > (There's only one because nfds =3D 1.) >=20 > Also, I suggest to do this experiment several times, to make sure that > this is indeed related to the call to ns_select. If Emacs is started with -Q there shouldn't be any fds. So either = something is done after starting Emacs or some plugin/extension is doing = something. Print out the readfds, and figure out what the fd is. Then use lsof to = see what that fd really is. Jan D.