From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Didier Verna Newsgroups: gmane.emacs.bugs Subject: bug#13103: 24.3.50; Trunk --with-ns eats 100% CPU Date: Thu, 06 Dec 2012 22:24:11 +0100 Message-ID: References: <83fw3joxya.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1354829094 7277 80.91.229.3 (6 Dec 2012 21:24:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Dec 2012 21:24:54 +0000 (UTC) Cc: 13103@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 06 22:25:06 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 1TgiwL-0005H6-KO for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Dec 2012 22:25:05 +0100 Original-Received: from localhost ([::1]:56581 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tgiw9-0003wS-Id for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Dec 2012 16:24:53 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tgiw5-0003vl-QQ for bug-gnu-emacs@gnu.org; Thu, 06 Dec 2012 16:24:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tgiw3-0007jY-GB for bug-gnu-emacs@gnu.org; Thu, 06 Dec 2012 16:24:49 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47104) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tgiw3-0007jP-Bp for bug-gnu-emacs@gnu.org; Thu, 06 Dec 2012 16:24:47 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TgiwI-0001kz-09 for bug-gnu-emacs@gnu.org; Thu, 06 Dec 2012 16:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Didier Verna Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Dec 2012 21:25:01 +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.13548290826711 (code B ref 13103); Thu, 06 Dec 2012 21:25:01 +0000 Original-Received: (at 13103) by debbugs.gnu.org; 6 Dec 2012 21:24:42 +0000 Original-Received: from localhost ([127.0.0.1]:57347 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tgivx-0001kB-Eh for submit@debbugs.gnu.org; Thu, 06 Dec 2012 16:24:41 -0500 Original-Received: from smtp1-g21.free.fr ([212.27.42.1]:35158) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tgivu-0001k2-B1 for 13103@debbugs.gnu.org; Thu, 06 Dec 2012 16:24:40 -0500 Original-Received: from Scofield.local.free.fr (unknown [IPv6:2a01:e35:8b50:e80:5ab0:35ff:fe7b:9220]) by smtp1-g21.free.fr (Postfix) with ESMTP id A601E94015F; Thu, 6 Dec 2012 22:24:13 +0100 (CET) In-Reply-To: <83fw3joxya.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 06 Dec 2012 20:08:29 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (darwin) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEWSJRv77NT7+fb7+f/7 +/37//+nezr////Ct7o2JCPeWwoRAAACaUlEQVQ4jW2Uv4+bMBTHXxer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b /NdQm5HWLh7X34Glcll8AnawIYTHyMV3obc3ULMK9MHMbh/66QbCNFhaYp5T/hRqAFgr+8Ja7BTu Ng99eMjs8zLlH/cAz8Q7AGb5O4fhTm5YsXMiJbpX6Lttbp9O4iVlLNlegR17G+iBJZVUsvd7GjYz FJtxsrBIfcQKzawHQsEqINoQrVhYJIlnjfC37m4yrQ2/cXbFJdXIQvNZlXbG1dxEnCZ1nBYXr7QU LfFniT7rezXl9QpUpEaIXjPsimnbwGxSkZIkakz68nhwkn5XMMymaJUTlUUXT8hDX+qRAMAscmP1 /mBtKr7sbWihzsAV8VtrP1RTtmdLqhWA2GoxjA9aaupnIBHGpqT7NdEvlXwcpgvInc+QvABYFnkm OzRLkBj7mojrzOnUwNxMdAkgMauo06xyOF5sh56YxEkUhKsqtHoyjKakvFRxqHas5wp0C72EPKRj lFoiGMdalS30ho3RFNk/44S4KoNT9H8WRAPBXY4+YtIBrthjUVe7AQDFq67gW1dA+W5BfQCoQ86D a3kL714h9z3DWNS2MSe6e9udTsfeGpwFWr+xw5sJ+2hrOPSF2cxQB1prD7ZFbtQy30y1v0N9b7V7 76j2b20kM29aO+G5Bbm7Gc729xTw6S9tjlvFTPX3+hrVC+ICqB/PVw7hahhtO9B1S9NC1z/D2HQC NCX/AHjt/u58WpMqAAAAAElFTkSuQmCC X-Face: compface: (warning) : excess data ignored X-Attribution: dvl X-Url: http://www.lrde.epita.fr/~didier X-Web: http://www.lrde.epita.fr/~didier X-Home-Page: http://www.lrde.epita.fr/~didier 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:68062 Archived-At: Eli Zaretskii wrote: >> From: Didier Verna >> Date: Thu, 06 Dec 2012 14:41:03 +0100 >> >> the Emacs trunk eats 100% CPU on one of my cores at startup, when >> compiled --with-ns. > > When this happens, please attach a debugger to Emacs and show us where > it loops. There's some guidance in etc/DEBUG regarding this; search > for "Emacs fails to respond". 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 #12 0x00000001000ac645 in read_char (commandflag=1, nmaps=2, maps=0x7fff5fbfa790, prev_event=, used_mouse_menu=0x7fff5fbfa9b7, end_time=0x0) at /usr/local/src/emacs/trunk/src/keyboard.c:3784 #13 0x00000001000aed5d in read_key_sequence (keybuf=0x7fff5fbfaa70, bufsize=30, prompt=4320145466, dont_downcase_last #14 0x00000001000b0e3a in command_loop_1 () at /usr/local/src/emacs/trunk/src/keyboard.c:1448 #15 0x0000000100117ea5 in internal_condition_case (bfun=0x1000b0be0 , handlers=4320211706, hfun=0x1000a91a0 ) at /usr/local/src/emacs/trunk/src/eval.c:1192 #16 0x00000001000a6e67 in command_loop_2 (ignore=) at /usr/local/src/emacs/trunk/src/keyboard.c:1163 #17 0x0000000100117fae in internal_catch (tag=, func=0x1000a6e30 , arg=4320145466) at /usr/local/src/emacs/trunk/src/eval.c:963 #18 0x00000001000a752c in recursive_edit_1 () at /usr/local/src/emacs/trunk/src/keyboard.c:1142 #19 0x00000001000a94d3 in Frecursive_edit () at /usr/local/src/emacs/trunk/src/keyboard.c:838 #20 0x000000010009f77e in main (argc=2, argv=0x7fff5fbfb038) at /usr/local/src/emacs/trunk/src/emacs.c:1560 -- ELS 2013, June 3/4, Madrid, Spain: http://els2013.european-lisp-symposium.org Scientific site: http://www.lrde.epita.fr/~didier Music (Jazz) site: http://www.didierverna.com