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#4970: 23.1; Emacs Gtk running nuts Date: Fri, 20 Nov 2009 09:31:07 +0100 Message-ID: <4B0653CB.7020804@swipnet.se> References: <200911191034.nAJAYMV2001017@boole.suse.de> <200911191956.nAJJuw6Z012264@godzilla.ics.uci.edu> Reply-To: Jan =?UTF-8?Q?Dj=C3=A4rv?= , 4970@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1258706861 16207 80.91.229.12 (20 Nov 2009 08:47:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Nov 2009 08:47:41 +0000 (UTC) To: Dan Nicolaescu , 4970@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 20 09:47:34 2009 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.50) id 1NBP9R-0007T2-IK for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Nov 2009 09:47:33 +0100 Original-Received: from localhost ([127.0.0.1]:39731 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBP9Q-0000Cj-TO for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Nov 2009 03:47:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NBP9M-0000CW-FI for bug-gnu-emacs@gnu.org; Fri, 20 Nov 2009 03:47:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NBP9I-0000C4-Nt for bug-gnu-emacs@gnu.org; Fri, 20 Nov 2009 03:47:28 -0500 Original-Received: from [199.232.76.173] (port=58549 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBP9I-0000C1-Ht for bug-gnu-emacs@gnu.org; Fri, 20 Nov 2009 03:47:24 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:55666) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NBP9H-0003TT-Kd for bug-gnu-emacs@gnu.org; Fri, 20 Nov 2009 03:47:24 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAK8lLbJ015065; Fri, 20 Nov 2009 00:47:21 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nAK8Z4pJ013721; Fri, 20 Nov 2009 00:35:04 -0800 Resent-Date: Fri, 20 Nov 2009 00:35:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 20 Nov 2009 08:35:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4970 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4970-submit@emacsbugs.donarmstrong.com id=B4970.125870587613531 (code B ref 4970); Fri, 20 Nov 2009 08:35:04 +0000 Original-Received: (at 4970) by emacsbugs.donarmstrong.com; 20 Nov 2009 08:31:16 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from proxy3.bredband.net (proxy3.bredband.net [195.54.101.73]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAK8VEDL013528 for <4970@emacsbugs.donarmstrong.com>; Fri, 20 Nov 2009 00:31:16 -0800 Original-Received: from ipb2.telenor.se (195.54.127.165) by proxy3.bredband.net (7.3.140.3) id 4AD3E1BA010E9C42 for 4970@emacsbugs.donarmstrong.com; Fri, 20 Nov 2009 09:31:08 +0100 X-SMTPAUTH-B2: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlJ1ACDjBUtV4S1uPGdsb2JhbACBTodaj3mCYwEBAQE3uDCEOwSMdg X-IronPort-AV: E=Sophos;i="4.44,776,1249250400"; d="scan'208";a="5578145" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by ipb2.telenor.se with ESMTP; 20 Nov 2009 09:31:08 +0100 Original-Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id ABEC37FA07B; Fri, 20 Nov 2009 09:31:07 +0100 (CET) User-Agent: Thunderbird 2.0.0.23 (X11/20090817) In-Reply-To: <200911191956.nAJJuw6Z012264@godzilla.ics.uci.edu> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Fri, 20 Nov 2009 03:47:28 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:32743 Archived-At: Dan Nicolaescu skrev: > Werner Fink writes: > > > A user runs "emacs -nw" within xterm, and often stop them with CTRL-Z to > > keep them in background. Now Emacs loops and hogs both memory and cpu after > > shutting down X11 going to runlevel 3. Likely this was a leftover emacs from > > background. > > > > From top: > > > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > > 23902 xxxxxx 20 0 7222m 3.4g 608 R 100 88.9 59:28.72 emacs-gtk > > I have seen this in the past, but only with the info above I was able to > find a reliable way to reproduce this. > > It also happens with the lucid toolkit, so it's not related to gtk. > > > Xnest :1& > xterm -display :1 > > Now in that xterm window in Xnest do: > emacs -Q -nw > C-z > > kill the Xnest window > > and watch the emacs process grow in size. > What happens is that reading from the terminal fails and Emacs tries to remove that terminal, but in term.c: if (last_terminal) error ("Attempt to delete the sole terminal device with live frames"); which goes back to the command loop, tries to read agan, fails, and tries to delete the terminal again, and so on. If you remove this check, Emacs exits. But I suppose it is there for a reason, but I don't know what. Anybody? Jan D. > pstack shows it's doing things like this: > > #0 0xb72d76cb in brk () from /lib/tls/libc.so.6 > #1 0xb72d773f in sbrk () from /lib/tls/libc.so.6 > #2 0xb7277711 in __default_morecore () from /lib/tls/libc.so.6 > #3 0xb72760fb in sYSMALLOc () from /lib/tls/libc.so.6 > #4 0xb72730fd in malloc () from /lib/tls/libc.so.6 > #5 0x08136bf3 in lisp_align_malloc (nbytes=1020, type=MEM_TYPE_CONS) > #6 0x081379de in Fcons (car=138006754, cdr=139399917) > #7 0x0814e076 in specbind (symbol=138141378, value=138006802) > #8 0x081106a5 in signal_after_change (charpos=42, lendel=0, lenins=1) > #9 0x0810e4e5 in insert (string=0xbfffce60 ";", nbytes=1) > #10 0x0810e61d in insert_char (c=101) > #11 0x08161295 in strout ( > #12 0x0816161a in print_string (string=2103883921, printcharfun=138006802) > #13 0x08165a59 in print_object (obj=2103883921, printcharfun=138006802, > #14 0x081632a5 in Fprinc (object=2103883921, printcharfun=138006802) > #15 0x08163ba6 in print_error_message (data=2103870030, stream=138006802, > #16 0x080ee37e in cmd_error_internal (data=2103870030, context=0xbfffd2a0 "") > #17 0x080ee226 in cmd_error (data=2103870030) > #18 0x0814bcd3 in internal_condition_case (bfun=0x80ee6b0 , > #19 0x080ee452 in command_loop_2 () > #20 0x0814b88f in internal_catch (tag=138041786, > #21 0x080ee3e0 in command_loop () > #22 0x080eddfc in recursive_edit_1 () > #23 0x080edf38 in Frecursive_edit () > #24 0x080ecc70 in main (argc=3, argv=0xbfffd854) > > Unfortunately I can't investigate more now. > >