From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#17170: 24.3.50; debug: Terminal 3 is locked, cannot read from it Date: Sun, 06 Apr 2014 19:25:35 +0300 Message-ID: <831txa8lxc.fsf@gnu.org> References: <87vbusouwu.fsf@yahoo.fr> <83r45fbsur.fsf@gnu.org> <87r45aepnk.fsf@yahoo.fr> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1396801584 13122 80.91.229.3 (6 Apr 2014 16:26:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Apr 2014 16:26:24 +0000 (UTC) Cc: 17170@debbugs.gnu.org To: Nicolas Richard Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 06 18:26:17 2014 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 1WWpth-0003iU-4i for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Apr 2014 18:26:17 +0200 Original-Received: from localhost ([::1]:58655 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWptg-0004mk-OE for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Apr 2014 12:26:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWptZ-0004mb-Ir for bug-gnu-emacs@gnu.org; Sun, 06 Apr 2014 12:26:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WWptU-0001Qi-G1 for bug-gnu-emacs@gnu.org; Sun, 06 Apr 2014 12:26:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37069) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWptU-0001Qe-Ar for bug-gnu-emacs@gnu.org; Sun, 06 Apr 2014 12:26:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WWptT-0003W1-5g for bug-gnu-emacs@gnu.org; Sun, 06 Apr 2014 12:26:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Apr 2014 16:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17170 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 17170-submit@debbugs.gnu.org id=B17170.139680155413499 (code B ref 17170); Sun, 06 Apr 2014 16:26:02 +0000 Original-Received: (at 17170) by debbugs.gnu.org; 6 Apr 2014 16:25:54 +0000 Original-Received: from localhost ([127.0.0.1]:38251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WWptI-0003Vb-Ut for submit@debbugs.gnu.org; Sun, 06 Apr 2014 12:25:53 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:56477) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WWptE-0003VM-O2 for 17170@debbugs.gnu.org; Sun, 06 Apr 2014 12:25:50 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0N3M00H00ALD1500@a-mtaout23.012.net.il> for 17170@debbugs.gnu.org; Sun, 06 Apr 2014 19:25:47 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N3M00G5WAYZVQB0@a-mtaout23.012.net.il>; Sun, 06 Apr 2014 19:25:47 +0300 (IDT) In-reply-to: <87r45aepnk.fsf@yahoo.fr> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:87809 Archived-At: > From: Nicolas Richard > Cc: Nicolas Richard , 17170@debbugs.gnu.org > Date: Sun, 06 Apr 2014 12:08:31 +0200 > > Eli Zaretskii writes: > > Please try "C-h l" next time, and report the commands that cause this. > > It just happened again. Again, I'm in emacs -nw through gdb through tmux > through ssh. Again, I apparently have left one GUI frame open on my > remote box. I'm confused: you in "emacs -nw", but you have a GUI frame open? How can both of these happen in the same session? > C-c NUL ;; rcirc-next-active-buffer > C-x K > C-u C-u C-c NUL ;; rcirc-next-active-buffer > C-z ;; suspend-frame > C-x C-k e ;; edit-kbd-macro > C-h l ;; view-lossage > > The error appeared when I did C-z for suspend-frame. "C-x K" kills > current buffer. > > Note that suspend-frame makes an error: > x-win-suspend-error: Cannot suspend Emacs while running under X Looks like Emacs doesn't know it has a TTY frame, and thinks you are in a GUI frame? > If I do M-: (debug) RET, I get the "Terminal locked" message, and enter > another level of recursive edit and can't exit it (because of "No catch > for tag: exit"). > > At this moment I have three pairs of brackets in the modeline. > > Now, I deleted the distant graphical frame (with (delete-frame (car > (frame-list)))) > > At this point M-: (debug) doesn't throw the terminal locked error > anymore and enter the debugger correctly (entering a 4th pair of > brackets ), and I can exit the debugger correctly too, but I'm stuck > within those 3 pairs of brackets. So it seems that the remote graphical > frame really was a problem and entered me into a weird state. Please describe how you started the remote session, and how you got into "emacs -nw" in the same session. There's something I must be missing here.