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 13:11:15 +0100 Message-ID: <4B068763.8040509@swipnet.se> 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> 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=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1258720067 24064 80.91.229.12 (20 Nov 2009 12:27:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Nov 2009 12:27:47 +0000 (UTC) Cc: dann@ics.uci.edu, 4970@emacsbugs.donarmstrong.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 20 13:27:40 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 1NBSaR-0004DA-77 for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Nov 2009 13:27:39 +0100 Original-Received: from localhost ([127.0.0.1]:46128 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBSaQ-0005xZ-GK for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Nov 2009 07:27:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NBSaI-0005wu-Ox for bug-gnu-emacs@gnu.org; Fri, 20 Nov 2009 07:27:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NBSaD-0005uf-9B for bug-gnu-emacs@gnu.org; Fri, 20 Nov 2009 07:27:29 -0500 Original-Received: from [199.232.76.173] (port=51372 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBSaD-0005uV-01 for bug-gnu-emacs@gnu.org; Fri, 20 Nov 2009 07:27:25 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:57192) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NBSaB-00035T-LE for bug-gnu-emacs@gnu.org; Fri, 20 Nov 2009 07:27: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 nAKCRLIu004193; Fri, 20 Nov 2009 04:27:21 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nAKCF41K003066; Fri, 20 Nov 2009 04:15:04 -0800 Resent-Date: Fri, 20 Nov 2009 04:15: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 12:15: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.12587190842970 (code B ref 4970); Fri, 20 Nov 2009 12:15:04 +0000 Original-Received: (at 4970) by emacsbugs.donarmstrong.com; 20 Nov 2009 12:11:24 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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 Original-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" Original-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 Original-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) User-Agent: Thunderbird 2.0.0.23 (X11/20090817) In-Reply-To: <83ws1lphwp.fsf@gnu.org> X-MIME-Autoconverted: from 8bit to quoted-printable by rzlab.ucr.edu id nAKCRLIu004193 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Fri, 20 Nov 2009 07:27:29 -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:32759 Archived-At: Eli Zaretskii skrev: >> Date: Fri, 20 Nov 2009 11:37:01 +0100 >> From: Jan =3D?UTF-8?Q?Dj=3DC3=3DA4rv?=3D >> Cc: 4970@emacsbugs.donarmstrong.com >> >> 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: >>> >=20 >>> > if (last_terminal) >>> > error ("Attempt to delete the sole terminal device with liv= e frames"); >>> >=20 >>> >=20 >>> > which goes back to the command loop, tries to read agan, fails, a= nd >>> > 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. >> Well, the check in term.c isn't preventing that. It is the check in f= rame.c=20 >> delete_frame that does that: >> >> if (NILP (force) && !other_visible_frames (f)) >> error ("Attempt to delete the sole visible or iconified frame"); >=20 > What about delete-terminal? Rhat check in term.c prevents delete-terminal from working when the FORCE= =20 argument is t. Deleting an X11 terminal woth FORCE set to t makes a core= dump... >=20 > 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 term= inal,=20 a SIGHUP is sent to ourselves (why not just call shutdown_emacs and exit?= ) and=20 Fdelete_terminal is called. So frames has not been removed yet. Jan D.