From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#11939: 24.1; `save-buffers-kill-emacs' loses minibuffer focus when it calls `list-processes' Date: Mon, 23 Jul 2012 09:28:00 -0700 Message-ID: <81CFBB36FDCB4CD6B3762F9E00AC8290@us.oracle.com> References: <500173A5.3040608@gmx.at> <1986D90E22154321A44B6E0110CA4F5A@us.oracle.com> <50019C2F.8060103@gmx.at> <6B9036DBFDEF4881AB39804520BF63B3@us.oracle.com> <5002BEC6.3040106@gmx.at> <893E59C2E4F94D6EB910560C9E8C42CD@us.oracle.com> <5002EAF4.5080107@gmx.at> <6F73D04E8EE144E780D602DFEBA48E7B@us.oracle.com> <5003DAF2.2060400@gmx.at> <50043C3D.7090201@gmx.at> <208B7D7BB4BC4339ADCC1166F76C1CD2@us.oracle.com> <500449B7.6070309@gmx.at> <023F63BCBF9442EBAEDCCE9D8A59E5E4@us.oracle.com> <5005354E.6040306@gmx.at> <62CF21F0010048E2BC1391192EB943FF@us.oracle.com> <5006E14B.3000407@gmx.at> <47731CC5C6EC4ED9AB9E9E05E259572C@us.oracle.com> <5007E47B.3050907@gmx.at> <446B437450EC47968D15C20D7142296B@us.oracle.com> <500A8C0E.4040006@gmx.at> <96A974694CF64567A3EAB85185AB3A5C@us.oracle.com> <500BBE6F.6020007@gmx.at> <1403DD3D67534F53BC023CC99A258DF5@us.oracle.com> <838veb209m.fsf@gnu.org> <83! 4noz1pxm.fsf@gnu.org> <8AEB9C65F733427397188CD0D3C799E8@us.oracle.com> <83r4s2zcp9.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1343060917 12709 80.91.229.3 (23 Jul 2012 16:28:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 23 Jul 2012 16:28:37 +0000 (UTC) Cc: 11939@debbugs.gnu.org To: "'Eli Zaretskii'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 23 18:28:36 2012 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 1StLUp-0000L4-0T for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Jul 2012 18:28:35 +0200 Original-Received: from localhost ([::1]:49390 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StLUo-0008BO-4O for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Jul 2012 12:28:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StLUl-0008B8-Dr for bug-gnu-emacs@gnu.org; Mon, 23 Jul 2012 12:28:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1StLUi-0003M8-9n for bug-gnu-emacs@gnu.org; Mon, 23 Jul 2012 12:28:31 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51740) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StLUi-0003M2-6K for bug-gnu-emacs@gnu.org; Mon, 23 Jul 2012 12:28:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1StLb4-0001Xh-BI for bug-gnu-emacs@gnu.org; Mon, 23 Jul 2012 12:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Jul 2012 16:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11939 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11939-submit@debbugs.gnu.org id=B11939.13430612825874 (code B ref 11939); Mon, 23 Jul 2012 16:35:02 +0000 Original-Received: (at 11939) by debbugs.gnu.org; 23 Jul 2012 16:34:42 +0000 Original-Received: from localhost ([127.0.0.1]:33051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1StLaj-0001We-W3 for submit@debbugs.gnu.org; Mon, 23 Jul 2012 12:34:42 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:34039) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1StLah-0001WT-G1 for 11939@debbugs.gnu.org; Mon, 23 Jul 2012 12:34:41 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q6NGS3Vu026257 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 23 Jul 2012 16:28:04 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q6NGS27p018504 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 23 Jul 2012 16:28:02 GMT Original-Received: from abhmt109.oracle.com (abhmt109.oracle.com [141.146.116.61]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q6NGS1FD023254; Mon, 23 Jul 2012 11:28:01 -0500 Original-Received: from dradamslap1 (/130.35.179.10) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 23 Jul 2012 09:28:01 -0700 X-Mailer: Microsoft Office Outlook 11 In-reply-to: <83r4s2zcp9.fsf@gnu.org> Thread-Index: Ac1o7MnAQR+wNINiQhCTyKN49Vzq9AAAYxsw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:62317 Archived-At: > I suggest that instead of invoking Emacs from GDB, you > invoke it normally (presumably from a desktop shortcut); then > immediately attach GDB to it, like you do when Emacs crashes; then > type "continue" at GDB's prompt to let Emacs run; and finally do > whatever Martin asked you to for which he wanted GDB to kick in. That I would like to try, but I don't know the recipe. What I have done in the past I did after getting the Emacs popup dialog window about a fatal crash (what you have called the "Emacs abort dialog"), following instructions that you gave me in the past. For the current crash, which presents no such dialog box, I tried following Martin's instructions for invoking gdb from within Emacs. You then instructed me not to do that but to instead invoke gdb outside Emacs. That's when I tried doing invoking it from a bash shell etc. If you give me the recipe for invoking gdb from within Emacs the right way then I will be glad to try it. In sum, this is not clear to me: "immediately attach GDB to it, like you do when Emacs crashes". Thx. P.S. These are the instructions from you that I follow when I do get the "Emacs abort dialog" box: > when you see the Emacs abort dialog do this in order: > > . Find out the PID of the Emacs process > . Open a shell window and chdir to the directory where you have GDB > and .gdbinit > . Type "./gdb -p PID" and hit RET > . When you see the "(gdb)" prompt, type "c RET" > . Click YES on the Emacs abort dialog > > You should then see GDB announcing the crash, something like this: > > Program received signal SIGTRAP, Trace/breakpoint trap. > [Switching to Thread 3684.0x1210] > 0x7c90120f in ntdll!DbgUiConnectToDbg () from C:\WINDOWS\system32\ntdll.dll > > and then the GDB prompt "(gdb)". Now you are ready to debug the > crash. At that point, I type `bt'. And perhaps `frame N' for some N followed by `p XYZ' for something XYZ such as `selected_window'. Then I type `xtype'. If you can tell me what to do differently here, where there is no "Emacs abort dialog" box, I will follow the recipe and let you know what I see.