From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#15575: 24.3.50; New tty menus crash Emacs Date: Wed, 16 Oct 2013 19:48:37 +0200 Message-ID: <525ED175.3090800@gmx.at> References: <7A5C065F-4E90-4846-80EE-650AF314DCB2@swipnet.se> <83a9iiqr49.fsf@gnu.org> <5D661800-C7B5-495B-BF9D-F2E1F16C9B93@swipnet.se> <834n8qqnfx.fsf@gnu.org> <97F9A2CA-8E08-4867-93C3-5BAE8DF80D72@swipnet.se> <83txgpp0f1.fsf@gnu.org> <5AFF19E5-0778-425A-AF0C-0C027DEFB3D6@swipnet.se> <83pprcq5nt.fsf@gnu.org> <5FC82EF1-4394-44C9-A9DB-30ED99DB186F@swipnet.se> <83fvs8p9ks.fsf@gnu.org> <5257CAF9.50307@gmx.at> <83eh7srrmu.fsf@gnu.org> <5257E42D.6000507@gmx.at> <838uxzsxi3.fsf@gnu.org> <525D891B.3020204@gmx.at> <83iowypddh.fsf@gnu.org> <525E43CA.5040408@gmx.at> <83a9i9p7gz.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1381945755 8608 80.91.229.3 (16 Oct 2013 17:49:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Oct 2013 17:49:15 +0000 (UTC) Cc: 15575@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 16 19:49:18 2013 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 1VWVDi-0003rX-Cj for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Oct 2013 19:49:18 +0200 Original-Received: from localhost ([::1]:48724 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWVDi-0006dz-1M for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Oct 2013 13:49:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60943) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWVDY-0006bb-BO for bug-gnu-emacs@gnu.org; Wed, 16 Oct 2013 13:49:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VWVDS-0006Oa-HR for bug-gnu-emacs@gnu.org; Wed, 16 Oct 2013 13:49:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40534) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWVDS-0006O5-D7 for bug-gnu-emacs@gnu.org; Wed, 16 Oct 2013 13:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VWVDR-0000Jd-RQ for bug-gnu-emacs@gnu.org; Wed, 16 Oct 2013 13:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Oct 2013 17:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15575 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15575-submit@debbugs.gnu.org id=B15575.13819457391199 (code B ref 15575); Wed, 16 Oct 2013 17:49:01 +0000 Original-Received: (at 15575) by debbugs.gnu.org; 16 Oct 2013 17:48:59 +0000 Original-Received: from localhost ([127.0.0.1]:54553 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VWVDO-0000JE-5W for submit@debbugs.gnu.org; Wed, 16 Oct 2013 13:48:58 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:56651) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VWVDK-0000Iv-SP for 15575@debbugs.gnu.org; Wed, 16 Oct 2013 13:48:56 -0400 Original-Received: from [62.47.58.166] ([62.47.58.166]) by mail.gmx.com (mrgmx103) with ESMTPA (Nemesis) id 0M6zvN-1ViekX0Vt7-00wmnI for <15575@debbugs.gnu.org>; Wed, 16 Oct 2013 19:48:48 +0200 In-Reply-To: <83a9i9p7gz.fsf@gnu.org> X-Provags-ID: V03:K0:YCuzHf9mlmXkvuas65zLywsi5Z1G3Us2GwitAnjL94WQTS3VLfM Vv9roECpHFsDN8cvG3ilvod9ONCjYQ1/vtt40xmJZ7DKKTjBEcb2JHw7rgIv72EMJt1Us6o DEeib7uM8RROKN6oNGnHHWZyf0hbenRxR6SNJdFEkRvq2Rxbapdxr1tYB+WPdtJa1K2QjU4 FSH5r8ah4pYf3jA5uVBEA== 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:79318 Archived-At: >> > Moreover, on GNU/Linux you can start Emacs as a daemon, attach a >> > debugger, and then open a TTY frame with emacsclient. >> >> But this won't help when Emacs crashes during startup, IIUC. > > When Emacs crashes during startup, you should be fine running it from > the same console where GDB runs. But I want to run GDB from within Emacs :-( > What did you set the inferior-tty to? I did for example ... Current directory is /home/martin/emacs/trunk/src/ GNU gdb (GDB) 7.4.1-debian Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /home/martin/emacs/trunk/src/bootstrap-emacs...done. SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] DISPLAY = :0.0 TERM = dumb (gdb) tty /dev/pts/3 (gdb) show inferior-tty Terminal for future runs of program being debugged is "/dev/pts/3". (gdb) run -Q -nw Starting program: /home/martin/emacs/trunk/src/bootstrap-emacs -Q -nw [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffefd46700 (LWP 4629)] [Thread 0x7ffff7fcd960 (LWP 4626) exited] (gdb) ... and it still tells me that my terminal is dumb. >> > The above commands should work from a graphical session. >> >> Do they for you? > > Yes, but I still have no clear idea what you tried to do, exactly. So > maybe we are talking about different things. I thought you meant the set new-console command. What I want is simple: Start a graphical Emacs session, within that session do M-x gdb in an Emacs source directory, and then run -Q -nw. What am I missing to make such a simple scenario work? Did anyone on GNU/Linux ever try that? martin