From unknown Sun Jun 22 00:52:51 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4970: 23.1; Emacs Gtk running nuts Reply-To: Werner Fink , 4970@debbugs.gnu.org Resent-From: Werner Fink Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 19 Nov 2009 10:40:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 4970 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125862687615419 (code B ref -1); Thu, 19 Nov 2009 10:40:04 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 19 Nov 2009 10:34:36 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=1.3 required=4.0 tests=FOURLA,IMPRONONCABLE_1, MURPHY_WRONG_WORD2 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAJAYXAp015416 for ; Thu, 19 Nov 2009 02:34:35 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NB4LR-0004dB-BV for bug-gnu-emacs@gnu.org; Thu, 19 Nov 2009 05:34:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NB4LM-0004Vk-Qq for bug-gnu-emacs@gnu.org; Thu, 19 Nov 2009 05:34:32 -0500 Received: from [199.232.76.173] (port=38753 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NB4LM-0004V0-DJ for bug-gnu-emacs@gnu.org; Thu, 19 Nov 2009 05:34:28 -0500 Received: from cantor2.suse.de ([195.135.220.15]:43438 helo=mx2.suse.de) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NB4LL-0006vW-F4 for bug-gnu-emacs@gnu.org; Thu, 19 Nov 2009 05:34:27 -0500 Received: from relay1.suse.de (mail2.suse.de [195.135.221.8]) by mx2.suse.de (Postfix) with ESMTP id 26276867E2 for ; Thu, 19 Nov 2009 11:34:25 +0100 (CET) Date: Thu, 19 Nov 2009 11:34:22 +0100 Message-Id: <200911191034.nAJAYMV2001017@boole.suse.de> From: Werner Fink To: bug-gnu-emacs@gnu.org X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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 To read the full report please you may have a look at In GNU Emacs 23.1.1 (i586-suse-linux-gnu, GTK+ Version 2.14.4) of 2009-08-13 on oldboy Windowing system distributor `The X.Org Foundation', version 11.0.10502000 configured using `configure '--with-pop' '--without-hesiod' '--with-kerberos' '--with-kerberos5' '--with-xim' '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--with-x' '--with-sound' '--with-sync-input' '--with-xpm' '--with-jpeg' '--with-tiff' '--with-gif' '--with-png' '--with-rsvg' '--with-dbus' '--without-gpm' '--with-x-toolkit=gtk' '--x-includes=/usr/include' '--x-libraries=/usr/lib:/usr/share/X11' '--with-xft' '--with-libotf' '--with-m17n-flt' '--build=i586-suse-linux-gnu' 'build_alias=i586-suse-linux-gnu' 'CC=gcc' 'CFLAGS=-O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -D_GNU_SOURCE -std=gnu89 -pipe -Wno-pointer-sign -Wno-unused-variable -Wno-unused-label -Wno-unprototyped-calls -DSYSTEM_PURESIZE_EXTRA=55000 -DSITELOAD_PURESIZE_EXTRA=10000 ' 'LDFLAGS=-Wl,-O2 ! -Wl,--hash-size=65521'' Important settings: value of $LANG: POSIX value of $XMODIFIERS: @im=local locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: show-paren-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. call-interactively: End of buffer [9 times] From unknown Sun Jun 22 00:52:51 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4970: 23.1; Emacs Gtk running nuts Reply-To: Dan Nicolaescu , 4970@debbugs.gnu.org Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 19 Nov 2009 20:00:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4970 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 4970-submit@emacsbugs.donarmstrong.com id=B4970.12586606307236 (code B ref 4970); Thu, 19 Nov 2009 20:00:04 +0000 Received: (at 4970) by emacsbugs.donarmstrong.com; 19 Nov 2009 19:57:10 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.2 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER, IMPRONONCABLE_1,IMPRONONCABLE_2,MURPHY_WRONG_WORD2,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from paul-mcgann-v0.ics.uci.edu (paul-mcgann-v0.ics.uci.edu [128.195.1.147]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAJJv9DJ007229 for <4970@emacsbugs.donarmstrong.com>; Thu, 19 Nov 2009 11:57:10 -0800 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 nAJJuxRd017061 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 19 Nov 2009 11:56:59 -0800 Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id nAJJuw6Z012264; Thu, 19 Nov 2009 11:56:58 -0800 (PST) Date: Thu, 19 Nov 2009 11:56:58 -0800 (PST) Message-Id: <200911191956.nAJJuw6Z012264@godzilla.ics.uci.edu> From: Dan Nicolaescu To: Werner Fink Cc: 4970@debbugs.gnu.org References: <200911191034.nAJAYMV2001017@boole.suse.de> In-Reply-To: <200911191034.nAJAYMV2001017@boole.suse.de> (Werner Fink's message of "Thu, 19 Nov 2009 11:34:22 +0100") Lines: 58 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: nAJJuxRd017061 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.363, required 5, autolearn=disabled, ALL_TRUSTED -1.44, TW_GT 0.08) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu 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. 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. From unknown Sun Jun 22 00:52:51 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4970: 23.1; Emacs Gtk running nuts Reply-To: Jan =?UTF-8?Q?Dj=C3=A4rv?= , 4970@debbugs.gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 20 Nov 2009 08:35:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4970 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 4970-submit@emacsbugs.donarmstrong.com id=B4970.125870587613531 (code B ref 4970); Fri, 20 Nov 2009 08:35:04 +0000 Received: (at 4970) by emacsbugs.donarmstrong.com; 20 Nov 2009 08:31:16 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.4 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER, IMPRONONCABLE_1,IMPRONONCABLE_2,MURPHY_WRONG_WORD2 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 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 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" 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 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) Message-ID: <4B0653CB.7020804@swipnet.se> Date: Fri, 20 Nov 2009 09:31:07 +0100 From: Jan =?UTF-8?Q?Dj=C3=A4rv?= User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Dan Nicolaescu , 4970@debbugs.gnu.org CC: Werner Fink References: <200911191034.nAJAYMV2001017@boole.suse.de> <200911191956.nAJJuw6Z012264@godzilla.ics.uci.edu> In-Reply-To: <200911191956.nAJJuw6Z012264@godzilla.ics.uci.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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. > > From unknown Sun Jun 22 00:52:51 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4970: 23.1; Emacs Gtk running nuts Reply-To: Dan Nicolaescu , 4970@debbugs.gnu.org Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 20 Nov 2009 09:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4970 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 4970-submit@emacsbugs.donarmstrong.com id=B4970.125870829118067 (code B ref 4970); Fri, 20 Nov 2009 09:20:03 +0000 Received: (at 4970) by emacsbugs.donarmstrong.com; 20 Nov 2009 09:11:31 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.7 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER, IMPRONONCABLE_1,MURPHY_WRONG_WORD2,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from paul-mcgann-v0.ics.uci.edu (paul-mcgann-v0.ics.uci.edu [128.195.1.147]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAK9BURA018058 for <4970@emacsbugs.donarmstrong.com>; Fri, 20 Nov 2009 01:11:31 -0800 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 nAK9BJmk030038 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 20 Nov 2009 01:11:19 -0800 Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id nAK9BJHW021267; Fri, 20 Nov 2009 01:11:19 -0800 (PST) Date: Fri, 20 Nov 2009 01:11:19 -0800 (PST) Message-Id: <200911200911.nAK9BJHW021267@godzilla.ics.uci.edu> From: Dan Nicolaescu To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Cc: 4970@debbugs.gnu.org References: <200911191034.nAJAYMV2001017@boole.suse.de> <200911191956.nAJJuw6Z012264@godzilla.ics.uci.edu> <4B0653CB.7020804@swipnet.se> In-Reply-To: <4B0653CB.7020804@swipnet.se> ("Jan =?UTF-8?Q?Dj=C3=A4rv"'s?= message of "Fri, 20 Nov 2009 09:31:07 +0100") Lines: 49 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: nAK9BJmk030038 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.363, required 5, autolearn=disabled, ALL_TRUSTED -1.44, TW_GT 0.08) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu Jan Dj=C3=A4rv writes: > Dan Nicolaescu skrev: > > Werner Fink writes: > > > > > A user runs "emacs -nw" within xterm, and often stop them with CT= RL-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.=20=20 > > > > 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. > > >=20 > What happens is that reading from the terminal fails and Emacs tries > to remove that terminal, but in term.c: >=20 > if (last_terminal) > error ("Attempt to delete the sole terminal device with live fram= es"); >=20 >=20 > which goes back to the command loop, tries to read agan, fails, and > tries to delete the terminal again, and so on. >=20 > If you remove this check, Emacs exits. But I suppose it is there for > a reason, but I don't know what. Anybody? It's there so that if you do: emacs -Q -nw C-x 5 0 does not exit emacs. From unknown Sun Jun 22 00:52:51 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4970: 23.1; Emacs Gtk running nuts Reply-To: Jan =?UTF-8?Q?Dj=C3=A4rv?= , 4970@debbugs.gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 20 Nov 2009 10:45:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4970 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 4970-submit@emacsbugs.donarmstrong.com id=B4970.125871342826235 (code B ref 4970); Fri, 20 Nov 2009 10:45:04 +0000 Received: (at 4970) by emacsbugs.donarmstrong.com; 20 Nov 2009 10:37:08 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.6 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from proxy1.bredband.net (proxy1.bredband.net [195.54.101.71]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAKAb6gF026232 for <4970@emacsbugs.donarmstrong.com>; Fri, 20 Nov 2009 02:37:08 -0800 Received: from ipb2.telenor.se (195.54.127.165) by proxy1.bredband.net (7.3.140.3) id 4AD3E1C0010FBCF4 for 4970@emacsbugs.donarmstrong.com; Fri, 20 Nov 2009 11:37:02 +0100 X-SMTPAUTH-B2: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: As5UAFYABktV4S1uPGdsb2JhbACBToJ3lF6CXgEBAQE3pzOQY4EwgjhUBI0C X-IronPort-AV: E=Sophos;i="4.44,776,1249250400"; d="scan'208";a="5633295" 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 11:37:02 +0100 Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id ECB4A7FA07B; Fri, 20 Nov 2009 11:37:01 +0100 (CET) Message-ID: <4B06714D.5020807@swipnet.se> Date: Fri, 20 Nov 2009 11:37:01 +0100 From: Jan =?UTF-8?Q?Dj=C3=A4rv?= User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Dan Nicolaescu CC: 4970@debbugs.gnu.org References: <200911191034.nAJAYMV2001017@boole.suse.de> <200911191956.nAJJuw6Z012264@godzilla.ics.uci.edu> <4B0653CB.7020804@swipnet.se> <200911200911.nAK9BJHW021267@godzilla.ics.uci.edu> In-Reply-To: <200911200911.nAK9BJHW021267@godzilla.ics.uci.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Dan Nicolaescu skrev: > Jan Djärv writes: > > > 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? > > It's there so that if you do: > emacs -Q -nw > C-x 5 0 > does not exit emacs. Well, the check in term.c isn't preventing that. It is the check in frame.c delete_frame that does that: if (NILP (force) && !other_visible_frames (f)) error ("Attempt to delete the sole visible or iconified frame"); Try it and see the error text that is shown. I suggest that the term.c check is removed. Jan D. From unknown Sun Jun 22 00:52:51 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4970: 23.1; Emacs Gtk running nuts Reply-To: Eli Zaretskii , 4970@debbugs.gnu.org Resent-From: Eli Zaretskii Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 20 Nov 2009 11:20:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4970 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 4970-submit@emacsbugs.donarmstrong.com id=B4970.125871568129692 (code B ref 4970); Fri, 20 Nov 2009 11:20:04 +0000 Received: (at 4970) by emacsbugs.donarmstrong.com; 20 Nov 2009 11:14:41 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.8 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mtaout21.012.net.il (mtaout21.012.net.il [80.179.55.169]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAKBEcvs029689 for <4970@emacsbugs.donarmstrong.com>; Fri, 20 Nov 2009 03:14:39 -0800 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0KTE00J00N7EOF00@a-mtaout21.012.net.il> for 4970@emacsbugs.donarmstrong.com; Fri, 20 Nov 2009 13:14:22 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.70.37.193]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KTE00GA4N7XO2D0@a-mtaout21.012.net.il>; Fri, 20 Nov 2009 13:14:22 +0200 (IST) Date: Fri, 20 Nov 2009 13:14:30 +0200 From: Eli Zaretskii In-reply-to: <4B06714D.5020807@swipnet.se> X-012-Sender: halo1@inter.net.il To: Jan =?UTF-8?Q?Dj=C3=A4rv?= , 4970@debbugs.gnu.org Cc: dann@ics.uci.edu Message-id: <83ws1lphwp.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <200911191034.nAJAYMV2001017@boole.suse.de> <200911191956.nAJJuw6Z012264@godzilla.ics.uci.edu> <4B0653CB.7020804@swipnet.se> <200911200911.nAK9BJHW021267@godzilla.ics.uci.edu> <4B06714D.5020807@swipnet.se> > Date: Fri, 20 Nov 2009 11:37:01 +0100 > From: Jan =?UTF-8?Q?Dj=C3=A4rv?= > Cc: 4970@emacsbugs.donarmstrong.com > > Dan Nicolaescu skrev: > > Jan Djärv writes: > > > > > 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? > > > > It's there so that if you do: > > emacs -Q -nw > > C-x 5 0 > > does not exit emacs. > > Well, the check in term.c isn't preventing that. It is the check in frame.c > delete_frame that does that: > > if (NILP (force) && !other_visible_frames (f)) > error ("Attempt to delete the sole visible or iconified frame"); What about delete-terminal? And btw, are there any live frames when the test in term.c is made, in the recipe to reproduce the original bug? If not, maybe it needs to check for live frames explicitly. From unknown Sun Jun 22 00:52:51 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4970: 23.1; Emacs Gtk running nuts Reply-To: Jan =?UTF-8?Q?Dj=C3=A4rv?= , 4970@debbugs.gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 20 Nov 2009 12:15:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4970 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 4970-submit@emacsbugs.donarmstrong.com id=B4970.12587190842970 (code B ref 4970); Fri, 20 Nov 2009 12:15:04 +0000 Received: (at 4970) by emacsbugs.donarmstrong.com; 20 Nov 2009 12:11:24 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.6 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from proxy1.bredband.net (proxy1.bredband.net [195.54.101.71]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAKCBMtR002966 for <4970@emacsbugs.donarmstrong.com>; Fri, 20 Nov 2009 04:11:24 -0800 Received: from ipb1.telenor.se (195.54.127.164) by proxy1.bredband.net (7.3.140.3) id 4AD3E1C001106B81 for 4970@emacsbugs.donarmstrong.com; Fri, 20 Nov 2009 13:11:17 +0100 X-SMTPAUTH-B2: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: As5UAJsWBktV4S1uPGdsb2JhbACBToJ3lF+CXAEBAQE3pm+QYYEwgjhUBA X-IronPort-AV: E=Sophos;i="4.44,777,1249250400"; d="scan'208";a="5665004" Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by ipb1.telenor.se with ESMTP; 20 Nov 2009 13:11:16 +0100 Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id D8BD87FA07B; Fri, 20 Nov 2009 13:11:15 +0100 (CET) Message-ID: <4B068763.8040509@swipnet.se> Date: Fri, 20 Nov 2009 13:11:15 +0100 From: Jan =?UTF-8?Q?Dj=C3=A4rv?= User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Eli Zaretskii CC: 4970@debbugs.gnu.org, dann@ics.uci.edu References: <200911191034.nAJAYMV2001017@boole.suse.de> <200911191956.nAJJuw6Z012264@godzilla.ics.uci.edu> <4B0653CB.7020804@swipnet.se> <200911200911.nAK9BJHW021267@godzilla.ics.uci.edu> <4B06714D.5020807@swipnet.se> <83ws1lphwp.fsf@gnu.org> In-Reply-To: <83ws1lphwp.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Eli Zaretskii skrev: >> Date: Fri, 20 Nov 2009 11:37:01 +0100 >> From: Jan =?UTF-8?Q?Dj=C3=A4rv?= >> Cc: 4970@emacsbugs.donarmstrong.com >> >> Dan Nicolaescu skrev: >>> Jan Djärv writes: >>> >>> > 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? >>> >>> It's there so that if you do: >>> emacs -Q -nw >>> C-x 5 0 >>> does not exit emacs. >> Well, the check in term.c isn't preventing that. It is the check in frame.c >> delete_frame that does that: >> >> if (NILP (force) && !other_visible_frames (f)) >> error ("Attempt to delete the sole visible or iconified frame"); > > What about delete-terminal? Rhat check in term.c prevents delete-terminal from working when the FORCE argument is t. Deleting an X11 terminal woth FORCE set to t makes a core dump... > > And btw, are there any live frames when the test in term.c is made, in > the recipe to reproduce the original bug? If not, maybe it needs to > check for live frames explicitly. Yes there are. When read_socket_hook returns -2 and this is the last terminal, a SIGHUP is sent to ourselves (why not just call shutdown_emacs and exit?) and Fdelete_terminal is called. So frames has not been removed yet. Jan D. From unknown Sun Jun 22 00:52:51 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4970: 23.1; Emacs Gtk running nuts Reply-To: Eli Zaretskii , 4970@debbugs.gnu.org Resent-From: Eli Zaretskii Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 20 Nov 2009 13:20:08 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4970 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 4970-submit@emacsbugs.donarmstrong.com id=B4970.12587226918550 (code B ref 4970); Fri, 20 Nov 2009 13:20:08 +0000 Received: (at 4970) by emacsbugs.donarmstrong.com; 20 Nov 2009 13:11:31 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.1 required=4.0 tests=AWL,HAS_BUG_NUMBER, RCVD_IN_NIX1 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mtaout22.012.net.il (mtaout22.012.net.il [80.179.55.172]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAKDBSIf008547 for <4970@emacsbugs.donarmstrong.com>; Fri, 20 Nov 2009 05:11:30 -0800 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0KTE00E00S1KLP00@a-mtaout22.012.net.il> for 4970@emacsbugs.donarmstrong.com; Fri, 20 Nov 2009 15:11:22 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.70.37.193]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KTE00EA5SMXSF10@a-mtaout22.012.net.il>; Fri, 20 Nov 2009 15:11:22 +0200 (IST) Date: Fri, 20 Nov 2009 15:11:30 +0200 From: Eli Zaretskii In-reply-to: <4B068763.8040509@swipnet.se> X-012-Sender: halo1@inter.net.il To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Cc: 4970@debbugs.gnu.org, dann@ics.uci.edu Message-id: <83vdh5pchp.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <200911191034.nAJAYMV2001017@boole.suse.de> <200911191956.nAJJuw6Z012264@godzilla.ics.uci.edu> <4B0653CB.7020804@swipnet.se> <200911200911.nAK9BJHW021267@godzilla.ics.uci.edu> <4B06714D.5020807@swipnet.se> <83ws1lphwp.fsf@gnu.org> <4B068763.8040509@swipnet.se> > Date: Fri, 20 Nov 2009 13:11:15 +0100 > From: Jan Djärv > CC: 4970@emacsbugs.donarmstrong.com, dann@ics.uci.edu > > > And btw, are there any live frames when the test in term.c is made, in > > the recipe to reproduce the original bug? If not, maybe it needs to > > check for live frames explicitly. > > Yes there are. When read_socket_hook returns -2 and this is the last terminal, > a SIGHUP is sent to ourselves (why not just call shutdown_emacs and exit?) and > Fdelete_terminal is called. So frames has not been removed yet. Perhaps we should delete the frames instead of erroring out. Would that work? From unknown Sun Jun 22 00:52:51 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4970: 23.1; Emacs Gtk running nuts Reply-To: Dan Nicolaescu , 4970@debbugs.gnu.org Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 20 Nov 2009 16:10:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4970 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 4970-submit@emacsbugs.donarmstrong.com id=B4970.125873316525280 (code B ref 4970); Fri, 20 Nov 2009 16:10:05 +0000 Received: (at 4970) by emacsbugs.donarmstrong.com; 20 Nov 2009 16:06:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-6.3 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from paul-mcgann-v0.ics.uci.edu (paul-mcgann-v0.ics.uci.edu [128.195.1.147]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAKG64Ch025274 for <4970@emacsbugs.donarmstrong.com>; Fri, 20 Nov 2009 08:06:05 -0800 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 nAKG5rWD000385 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 20 Nov 2009 08:05:53 -0800 Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id nAKG5qXX024396; Fri, 20 Nov 2009 08:05:52 -0800 (PST) Date: Fri, 20 Nov 2009 08:05:52 -0800 (PST) Message-Id: <200911201605.nAKG5qXX024396@godzilla.ics.uci.edu> From: Dan Nicolaescu To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Cc: 4970@debbugs.gnu.org References: <200911191034.nAJAYMV2001017@boole.suse.de> <200911191956.nAJJuw6Z012264@godzilla.ics.uci.edu> <4B0653CB.7020804@swipnet.se> <200911200911.nAK9BJHW021267@godzilla.ics.uci.edu> <4B06714D.5020807@swipnet.se> In-Reply-To: <4B06714D.5020807@swipnet.se> ("Jan =?UTF-8?Q?Dj=C3=A4rv"'s?= message of "Fri, 20 Nov 2009 11:37:01 +0100") Lines: 44 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: nAKG5rWD000385 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 Jan Dj=C3=A4rv writes: > Dan Nicolaescu skrev: > > Jan Dj=C3=A4rv writes: > > > > > What happens is that reading from the terminal fails and Emacs tr= ies > > > to remove that terminal, but in term.c: > > > > if (last_terminal) > > > error ("Attempt to delete the sole terminal device with liv= e 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? > > > > It's there so that if you do: > > emacs -Q -nw > > C-x 5 0 > > does not exit emacs. >=20 > Well, the check in term.c isn't preventing that. It is the check in > frame.c delete_frame that does that: >=20 > if (NILP (force) && !other_visible_frames (f)) > error ("Attempt to delete the sole visible or iconified frame"); Right. Hmm, I think the check was intended to catch this situation: emacs -nw -Q -f server-start in different xterm emacsclient -c (or emacsclient -t) and then back into the emacs xterm: C-x 5 0 But this does not work now, and I think it used to. :-( From unknown Sun Jun 22 00:52:51 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4970: 23.1; Emacs Gtk running nuts Reply-To: Jan =?UTF-8?Q?Dj=C3=A4rv?= , 4970@debbugs.gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 20 Nov 2009 16:50:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4970 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 4970-submit@emacsbugs.donarmstrong.com id=B4970.125873547228082 (code B ref 4970); Fri, 20 Nov 2009 16:50:04 +0000 Received: (at 4970) by emacsbugs.donarmstrong.com; 20 Nov 2009 16:44:32 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.6 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from proxy2.bredband.net (proxy2.bredband.net [195.54.101.72]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAKGiUjc028079 for <4970@emacsbugs.donarmstrong.com>; Fri, 20 Nov 2009 08:44:31 -0800 Received: from ipb2.telenor.se (195.54.127.165) by proxy2.bredband.net (7.3.140.3) id 4AD3E1BC0113F5F7 for 4970@emacsbugs.donarmstrong.com; Fri, 20 Nov 2009 17:44:24 +0100 X-SMTPAUTH-B2: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: As5UAO9VBktV4S1uPGdsb2JhbACBToJ3lF+CVgEBAQE3qBKQVYEwgjhUBA X-IronPort-AV: E=Sophos;i="4.44,778,1249250400"; d="scan'208";a="5768326" 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 17:44:24 +0100 Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id 7A62B7FA07B; Fri, 20 Nov 2009 17:44:24 +0100 (CET) Message-ID: <4B06C768.2030608@swipnet.se> Date: Fri, 20 Nov 2009 17:44:24 +0100 From: Jan =?UTF-8?Q?Dj=C3=A4rv?= User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Eli Zaretskii CC: 4970@debbugs.gnu.org, dann@ics.uci.edu References: <200911191034.nAJAYMV2001017@boole.suse.de> <200911191956.nAJJuw6Z012264@godzilla.ics.uci.edu> <4B0653CB.7020804@swipnet.se> <200911200911.nAK9BJHW021267@godzilla.ics.uci.edu> <4B06714D.5020807@swipnet.se> <83ws1lphwp.fsf@gnu.org> <4B068763.8040509@swipnet.se> <83vdh5pchp.fsf@gnu.org> In-Reply-To: <83vdh5pchp.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Eli Zaretskii skrev: >> Date: Fri, 20 Nov 2009 13:11:15 +0100 >> From: Jan Djärv >> CC: 4970@emacsbugs.donarmstrong.com, dann@ics.uci.edu >> >>> And btw, are there any live frames when the test in term.c is made, in >>> the recipe to reproduce the original bug? If not, maybe it needs to >>> check for live frames explicitly. >> Yes there are. When read_socket_hook returns -2 and this is the last terminal, >> a SIGHUP is sent to ourselves (why not just call shutdown_emacs and exit?) and >> Fdelete_terminal is called. So frames has not been removed yet. > > Perhaps we should delete the frames instead of erroring out. Would > that work? I don't think so. Delete-frame would complain about deleteing the last frame. Jan D. From unknown Sun Jun 22 00:52:51 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4970: 23.1; Emacs Gtk running nuts Reply-To: "Dr. Werner Fink" , 4970@debbugs.gnu.org Resent-From: "Dr. Werner Fink" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Mon, 23 Nov 2009 13:50:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4970 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 4970-submit@emacsbugs.donarmstrong.com id=B4970.125898385311176 (code B ref 4970); Mon, 23 Nov 2009 13:50:04 +0000 Received: (at 4970) by emacsbugs.donarmstrong.com; 23 Nov 2009 13:44:13 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.8 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nANDiBJl011173 for <4970@emacsbugs.donarmstrong.com>; Mon, 23 Nov 2009 05:44:12 -0800 Received: from relay1.suse.de (mail2.suse.de [195.135.221.8]) by mx2.suse.de (Postfix) with ESMTP id D7FE286391; Mon, 23 Nov 2009 14:44:09 +0100 (CET) Date: Mon, 23 Nov 2009 14:44:06 +0100 From: "Dr. Werner Fink" To: dann@ics.uci.edu Cc: 4970@debbugs.gnu.org Message-ID: <20091123134406.GA13955@boole.suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Hi, I'd like to ask if there is a solution for this problem. I've read the thread carefully but at last I've not seen any real solution. is it allowed to remove the check if (last_terminal) error ("Attempt to delete the sole terminal device with live frames"); in delete_tty() of src/term.c or will emacs then loop with if (NILP (force) && !other_visible_frames (f)) error ("Attempt to delete the sole visible or iconified frame"); in delete_frame() of src/frame.c ... ? Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr From unknown Sun Jun 22 00:52:51 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4970: 23.1; Emacs Gtk running nuts Reply-To: Jan =?UTF-8?Q?Dj=C3=A4rv?= , 4970@debbugs.gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 25 Nov 2009 18:10:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4970 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 4970-submit@emacsbugs.donarmstrong.com id=B4970.125917213712847 (code B ref 4970); Wed, 25 Nov 2009 18:10:06 +0000 Received: (at 4970) by emacsbugs.donarmstrong.com; 25 Nov 2009 18:02:17 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.6 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER autolearn=unavailable version=3.2.5-bugs.debian.org_2005_01_02 Received: from proxy1.bredband.net (proxy1.bredband.net [195.54.101.71]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAPI2FMR012842; Wed, 25 Nov 2009 10:02:17 -0800 Received: from ipb1.telenor.se (195.54.127.164) by proxy1.bredband.net (7.3.140.3) id 4AD3E1C00131FAA6; Wed, 25 Nov 2009 19:02:10 +0100 X-SMTPAUTH-B2: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ar5tACQADUtV4S1uPGdsb2JhbACBTYdakA6CWQEBAQE3uWWEMgQ X-IronPort-AV: E=Sophos;i="4.47,287,1257116400"; d="scan'208";a="7621431" Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by ipb1.telenor.se with ESMTP; 25 Nov 2009 19:02:09 +0100 Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id 9E1DC7FA07B; Wed, 25 Nov 2009 19:02:09 +0100 (CET) Message-ID: <4B0D7121.2090001@swipnet.se> Date: Wed, 25 Nov 2009 19:02:09 +0100 From: Jan =?UTF-8?Q?Dj=C3=A4rv?= User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: "Dr. Werner Fink" , 4970@debbugs.gnu.org CC: dann@ics.uci.edu, 4970-done@debbugs.gnu.org References: <20091123134406.GA13955@boole.suse.de> In-Reply-To: <20091123134406.GA13955@boole.suse.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-CrossAssassin-Score: 2 Dr. Werner Fink skrev: > Hi, > > I'd like to ask if there is a solution for this problem. > I've read the thread carefully but at last I've not seen > any real solution. is it allowed to remove the check > > if (last_terminal) > error ("Attempt to delete the sole terminal device with live frames"); > > in delete_tty() of src/term.c or will emacs then loop > with > > if (NILP (force) && !other_visible_frames (f)) > error ("Attempt to delete the sole visible or iconified frame"); > > in delete_frame() of src/frame.c ... ? > For the case you posted, it is safe. delete_frame is called with force set to Qnoelisp, which is not NILP (force) so the test is not run. I've checked that in, it fixes this bug. Jan D. From unknown Sun Jun 22 00:52:51 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Werner Fink Subject: bug#4970 closed by Jan =?UTF-8?Q?Dj=C3=A4rv?= (Re: bug#4970: 23.1; Emacs Gtk running nuts) Message-ID: References: <4B0D7121.2090001@swipnet.se> <200911191034.nAJAYMV2001017@boole.suse.de> X-Emacs-PR-Message: they-closed 4970 X-Emacs-PR-Package: emacs Reply-To: 4970@debbugs.gnu.org Date: Wed, 25 Nov 2009 18:10:09 +0000 Content-Type: multipart/mixed; boundary="----------=_1259172609-14282-1" This is a multi-part message in MIME format... ------------=_1259172609-14282-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #4970: 23.1; Emacs Gtk running nuts It has been closed by Jan Dj=C3=A4rv . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Jan Dj=C3=A4rv by replying to this email. --=20 4970: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D4970 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1259172609-14282-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 4970-done) by emacsbugs.donarmstrong.com; 25 Nov 2009 18:02:17 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.6 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from proxy1.bredband.net (proxy1.bredband.net [195.54.101.71]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAPI2FMR012842; Wed, 25 Nov 2009 10:02:17 -0800 Received: from ipb1.telenor.se (195.54.127.164) by proxy1.bredband.net (7.3.140.3) id 4AD3E1C00131FAA6; Wed, 25 Nov 2009 19:02:10 +0100 X-SMTPAUTH-B2: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ar5tACQADUtV4S1uPGdsb2JhbACBTYdakA6CWQEBAQE3uWWEMgQ X-IronPort-AV: E=Sophos;i="4.47,287,1257116400"; d="scan'208";a="7621431" Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by ipb1.telenor.se with ESMTP; 25 Nov 2009 19:02:09 +0100 Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id 9E1DC7FA07B; Wed, 25 Nov 2009 19:02:09 +0100 (CET) Message-ID: <4B0D7121.2090001@swipnet.se> Date: Wed, 25 Nov 2009 19:02:09 +0100 From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: "Dr. Werner Fink" , 4970@debbugs.gnu.org CC: dann@ics.uci.edu, 4970-done@debbugs.gnu.org Subject: Re: bug#4970: 23.1; Emacs Gtk running nuts References: <20091123134406.GA13955@boole.suse.de> In-Reply-To: <20091123134406.GA13955@boole.suse.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Dr. Werner Fink skrev: > Hi, > > I'd like to ask if there is a solution for this problem. > I've read the thread carefully but at last I've not seen > any real solution. is it allowed to remove the check > > if (last_terminal) > error ("Attempt to delete the sole terminal device with live frames"); > > in delete_tty() of src/term.c or will emacs then loop > with > > if (NILP (force) && !other_visible_frames (f)) > error ("Attempt to delete the sole visible or iconified frame"); > > in delete_frame() of src/frame.c ... ? > For the case you posted, it is safe. delete_frame is called with force set to Qnoelisp, which is not NILP (force) so the test is not run. I've checked that in, it fixes this bug. Jan D. ------------=_1259172609-14282-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 19 Nov 2009 10:34:36 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=1.3 required=4.0 tests=FOURLA,IMPRONONCABLE_1, MURPHY_WRONG_WORD2 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAJAYXAp015416 for ; Thu, 19 Nov 2009 02:34:35 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NB4LR-0004dB-BV for bug-gnu-emacs@gnu.org; Thu, 19 Nov 2009 05:34:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NB4LM-0004Vk-Qq for bug-gnu-emacs@gnu.org; Thu, 19 Nov 2009 05:34:32 -0500 Received: from [199.232.76.173] (port=38753 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NB4LM-0004V0-DJ for bug-gnu-emacs@gnu.org; Thu, 19 Nov 2009 05:34:28 -0500 Received: from cantor2.suse.de ([195.135.220.15]:43438 helo=mx2.suse.de) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NB4LL-0006vW-F4 for bug-gnu-emacs@gnu.org; Thu, 19 Nov 2009 05:34:27 -0500 Received: from relay1.suse.de (mail2.suse.de [195.135.221.8]) by mx2.suse.de (Postfix) with ESMTP id 26276867E2 for ; Thu, 19 Nov 2009 11:34:25 +0100 (CET) Date: Thu, 19 Nov 2009 11:34:22 +0100 Message-Id: <200911191034.nAJAYMV2001017@boole.suse.de> From: Werner Fink To: bug-gnu-emacs@gnu.org Subject: 23.1; Emacs Gtk running nuts X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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 To read the full report please you may have a look at In GNU Emacs 23.1.1 (i586-suse-linux-gnu, GTK+ Version 2.14.4) of 2009-08-13 on oldboy Windowing system distributor `The X.Org Foundation', version 11.0.10502000 configured using `configure '--with-pop' '--without-hesiod' '--with-kerberos' '--with-kerberos5' '--with-xim' '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--with-x' '--with-sound' '--with-sync-input' '--with-xpm' '--with-jpeg' '--with-tiff' '--with-gif' '--with-png' '--with-rsvg' '--with-dbus' '--without-gpm' '--with-x-toolkit=gtk' '--x-includes=/usr/include' '--x-libraries=/usr/lib:/usr/share/X11' '--with-xft' '--with-libotf' '--with-m17n-flt' '--build=i586-suse-linux-gnu' 'build_alias=i586-suse-linux-gnu' 'CC=gcc' 'CFLAGS=-O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -D_GNU_SOURCE -std=gnu89 -pipe -Wno-pointer-sign -Wno-unused-variable -Wno-unused-label -Wno-unprototyped-calls -DSYSTEM_PURESIZE_EXTRA=55000 -DSITELOAD_PURESIZE_EXTRA=10000 ' 'LDFLAGS=-Wl,-O2 ! -Wl,--hash-size=65521'' Important settings: value of $LANG: POSIX value of $XMODIFIERS: @im=local locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: show-paren-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. call-interactively: End of buffer [9 times] ------------=_1259172609-14282-1-- From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 18 03:06:05 2011 Received: (at control) by debbugs.gnu.org; 18 Oct 2011 07:06:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RG3kQ-0003Yj-Bq for submit@debbugs.gnu.org; Tue, 18 Oct 2011 03:06:04 -0400 Received: from fencepost.gnu.org ([140.186.70.10] ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RG3kM-0003YG-DT for control@debbugs.gnu.org; Tue, 18 Oct 2011 03:06:00 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RG3jR-00084V-4f for control@debbugs.gnu.org; Tue, 18 Oct 2011 03:05:01 -0400 Date: Tue, 18 Oct 2011 03:05:01 -0400 Message-Id: Subject: control message for bug 7951 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) unarchive 4970 forcemerge 4970 7951