From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vincent =?UTF-8?Q?Bela=C3=AFche?= Newsgroups: gmane.emacs.bugs Subject: bug#22301: 25.1.50; Emacs crashes while lisp debugging Date: Tue, 05 Jan 2016 08:17:17 +0100 Message-ID: <84ziwkv6ki.fsf@gmail.com> References: <84oad2z3lp.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1451978309 21640 80.91.229.3 (5 Jan 2016 07:18:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Jan 2016 07:18:29 +0000 (UTC) Cc: 22301@debbugs.gnu.org, Vincent =?UTF-8?Q?Bela=C3=AFche?= To: Eli Zaretskii , Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 05 08:18:16 2016 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 1aGLsl-0005lI-34 for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Jan 2016 08:18:15 +0100 Original-Received: from localhost ([::1]:48371 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGLsg-0005SK-TV for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Jan 2016 02:18:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGLsc-0005Rz-2d for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2016 02:18:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGLsY-0004N7-QL for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2016 02:18:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGLsY-0004N3-N1 for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2016 02:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aGLsY-0007iv-Gi for bug-gnu-emacs@gnu.org; Tue, 05 Jan 2016 02:18:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <84oad2z3lp.fsf@gmail.com> Resent-From: Vincent =?UTF-8?Q?Bela=C3=AFche?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Jan 2016 07:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22301 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 22301-submit@debbugs.gnu.org id=B22301.145197824529645 (code B ref 22301); Tue, 05 Jan 2016 07:18:02 +0000 Original-Received: (at 22301) by debbugs.gnu.org; 5 Jan 2016 07:17:25 +0000 Original-Received: from localhost ([127.0.0.1]:38086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aGLrx-0007i4-4p for submit@debbugs.gnu.org; Tue, 05 Jan 2016 02:17:25 -0500 Original-Received: from smtp04.smtpout.orange.fr ([80.12.242.126]:50915 helo=smtp.smtpout.orange.fr) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aGLru-0007hn-I9 for 22301@debbugs.gnu.org; Tue, 05 Jan 2016 02:17:23 -0500 Original-Received: from AigleRoyal ([2.10.181.99]) by mwinf5d08 with ME id 27H81s00K294V9N037H8jU; Tue, 05 Jan 2016 08:17:15 +0100 X-ME-Helo: AigleRoyal X-ME-Auth: dmluY2VudGJlbGFpY2hlQG9yYW5nZS5mcg== X-ME-Date: Tue, 05 Jan 2016 08:17:15 +0100 X-ME-IP: 2.10.181.99 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:111229 Archived-At: Dear =C9li, Something I had forgotten to tell you: I think that I have compiled this Emacs with Mingw-w64 --- well I am not 100% sure now because at some point of time I had problems with Minfw-64 (see https://sourceforge.net/p/mingw-w64/bugs/519/) and I have re-installed the 32 bit version (both coexist now on my machine and I select the one in use by editing the fstab file). Anyway, I still don't get the debugger prompt, neither Ctrl-C (well C-Q C-C because I am running it from Emacs), nor F-12 do anything. However, if I do: M-x signal-process RET shell RET 3 RET then something happens with the debugger, I did it several times, I still don't get the prompt, but there is that sort of output: Program received signal SIGTRAP, Trace/breakpoint trap So below, I copied the full gdb session with these. Please make me know whether this session is ruined or not. Le 05/01/2016 04:34, Eli Zaretskii a =E9crit : >> From: Vincent Bela=EFche >> Cc: Vincent Bela=EFche , >> 22301@debbugs.gnu.org >> Date: Mon, 04 Jan 2016 23:49:53 +0100 >> [...] >> Please note that I don't get again the debugger prompt --- I am running >> the debugger from an Emacs shell buffer, could it be some interaction >> that the buffer process sentinel could not capture ? Anyway, I am >> keeping the gdb session open, as you asked... > > Do you get the GDB prompt back if you press F-12 or Ctrl-C? If not, > this session is ruined, and you can stop it. > > Next time when it happens, type these commands instead: > > (gdb) thread 1 > (gdb) bt > > Better yet, run Emacs from GDB to begin with, it will make the > backtrace more reliable. > > Thanks. Here is the full session (you already got the beginning of it): --8<----8<----8<----8<----8<-- begin -->8---->8---->8---->8---->8---- $ gdb -p 11676 GNU gdb (GDB) 7.6.1 Copyright (C) 2013 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 "mingw32". For bug reporting instructions, please see: . Attaching to process 11676 [New Thread 11676.0x1edc] [New Thread 11676.0x2f4] [New Thread 11676.0x2c48] [New Thread 11676.0x1ec8] [New Thread 11676.0x267c] [New Thread 11676.0x2aa0] [New Thread 11676.0x430] Reading symbols from C:\Nos_Programmes\GNU\Emacs\bin\emacs.exe...done. SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from te= rminal] DISPLAY =3D w32 TERM =3D emacs Breakpoint 1 at 0x10951bb: file emacs.c, line 370. Temporary breakpoint 2 at 0x10aabd6: file sysdep.c, line 901. (gdb) bt full #0 0x771b8c51 in ntdll!DbgBreakPoint () from C:\WINDOWS\SYSTEM32\ntdll.dll No symbol table info available. #1 0x771e9e09 in ntdll!DbgUiRemoteBreakin () from C:\WINDOWS\SYSTEM32\ntdll.dll No symbol table info available. #2 0xfb32daaf in ?? () No symbol table info available. #3 0x771e9dd0 in ntdll!DbgUiIssueRemoteBreakin () from C:\WINDOWS\SYSTEM32\ntdll.dll No symbol table info available. #4 0x760238f4 in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\SYSTEM32\kernel32.dll No symbol table info available. #5 0x771a56c3 in ntdll!RtlUnicodeStringToInteger () from C:\WINDOWS\SYSTEM32\ntdll.dll No symbol table info available. #6 0x00000000 in ?? () No symbol table info available. Lisp Backtrace: "backtrace" (0xbfedac) "debugger-setup-buffer" (0xbfefe0) "debug" (0xbff1b4) "ses-relocate-all" (0xbff200) "let" (0xbff3bc) "ses-delete-row" (0xbff598) "funcall-interactively" (0xbff594) "call-interactively" (0xbff710) "command-execute" (0xbff8dc) (gdb) xbacktrace "backtrace" (0xbfedac) "debugger-setup-buffer" (0xbfefe0) "debug" (0xbff1b4) "ses-relocate-all" (0xbff200) "let" (0xbff3bc) "ses-delete-row" (0xbff598) "funcall-interactively" (0xbff594) "call-interactively" (0xbff710) "command-execute" (0xbff8dc) (gdb) thread 1 [Switching to thread 1 (Thread 11676.0x1edc)] #0 SDATA (string=3D1461725984) at lisp.h:1325 1325 return XSTRING (string)->data; (gdb) thread apply all bt Thread 7 (Thread 11676.0x430): #0 0x771b8c51 in ntdll!DbgBreakPoint () from C:\WINDOWS\SYSTEM32\ntdll.dll #1 0x771e9e09 in ntdll!DbgUiRemoteBreakin () from C:\WINDOWS\SYSTEM32\ntdll.dll #2 0xfb32daaf in ?? () #3 0x771e9dd0 in ntdll!DbgUiIssueRemoteBreakin () from C:\WINDOWS\SYSTEM32\ntdll.dll #4 0x760238f4 in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\SYSTEM32\kernel32.dll #5 0x771a56c3 in ntdll!RtlUnicodeStringToInteger () from C:\WINDOWS\SYSTEM32\ntdll.dll #6 0x00000000 in ?? () Lisp Backtrace: "backtrace" (0xbfedac) "debugger-setup-buffer" (0xbfefe0) "debug" (0xbff1b4) "ses-relocate-all" (0xbff200) "let" (0xbff3bc) "ses-delete-row" (0xbff598) "funcall-interactively" (0xbff594) "call-interactively" (0xbff710) "command-execute" (0xbff8dc) Thread 6 (Thread 11676.0x2aa0): #0 0x771b868c in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\WINDOWS\SYSTEM32\ntdll.dll #1 0x7718a246 in ntdll!EtwNotificationRegister () from C:\WINDOWS\SYSTEM32\ntdll.dll #2 0x760238f4 in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\SYSTEM32\kernel32.dll #3 0x771a56c3 in ntdll!RtlUnicodeStringToInteger () from C:\WINDOWS\SYSTEM32\ntdll.dll #4 0x00c844c0 in ?? () #5 0x771a568e in ntdll!RtlUnicodeStringToInteger () from C:\WINDOWS\SYSTEM32\ntdll.dll #6 0xffffffff in ?? () #7 0x771cb6c3 in ntdll!RtlCaptureContext () from C:\WINDOWS\SYSTEM32\ntdll.dll #8 0x00000000 in ?? () [New Thread 11676.0x1f00] Program received signal SIGTRAP, Trace/breakpoint trap. [Switching to Thread 11676.0x1f00] 0x771b8c51 in ntdll!DbgBreakPoint () from C:\WINDOWS\SYSTEM32\ntdll.dll (gdb) The program received a signal in another thread while making a function call from GDB. Evaluation of the expression containing the function (backtrace_top) will be abandoned. When the function is done executing, GDB will silently stop. Thread 8 (Thread 11676.0x1f00): #0 0x771b8c51 in ntdll!DbgBreakPoint () from C:\WINDOWS\SYSTEM32\ntdll.dll #1 0x771e9e09 in ntdll!DbgUiRemoteBreakin () from C:\WINDOWS\SYSTEM32\ntdll.dll #2 0xfb32daaf in ?? () #3 0x771e9dd0 in ntdll!DbgUiIssueRemoteBreakin () from C:\WINDOWS\SYSTEM32\ntdll.dll #4 0x760238f4 in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\SYSTEM32\kernel32.dll #5 0x771a56c3 in ntdll!RtlUnicodeStringToInteger () from C:\WINDOWS\SYSTEM32\ntdll.dll #6 0x00000000 in ?? () Lisp Backtrace: "backtrace" (0xbfedac) "debugger-setup-buffer" (0xbfefe0) "debug" (0xbff1b4) "ses-relocate-all" (0xbff200) "let" (0xbff3bc) "ses-delete-row" (0xbff598) "funcall-interactively" (0xbff594) "call-interactively" (0xbff710) "command-execute" (0xbff8dc) Thread 6 (Thread 11676.0x2aa0): #0 backtrace_top () at eval.c:183 #1 #2 0x771b868c in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\WINDOWS\SYSTEM32\ntdll.dll #3 0x7718a246 in ntdll!EtwNotificationRegister () from C:\WINDOWS\SYSTEM32\ntdll.dll #4 0x760238f4 in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\SYSTEM32\kernel32.dll #5 0x771a56c3 in ntdll!RtlUnicodeStringToInteger () from C:\WINDOWS\SYSTEM32\ntdll.dll #6 0x00c844c0 in ?? () #7 0x771a568e in ntdll!RtlUnicodeStringToInteger () from C:\WINDOWS\SYSTEM32\ntdll.dll #8 0xffffffff in ?? () #9 0x771cb6c3 in ntdll!RtlCaptureContext () from C:\WINDOWS\SYSTEM32\ntdll.dll #10 0x00000000 in ?? () [New Thread 11676.0x2e80] Program received signal SIGTRAP, Trace/breakpoint trap. [Switching to Thread 11676.0x2e80] 0x771b8c51 in ntdll!DbgBreakPoint () from C:\WINDOWS\SYSTEM32\ntdll.dll (gdb) The program received a signal in another thread while making a function call from GDB. Evaluation of the expression containing the function (backtrace_top) will be abandoned. When the function is done executing, GDB will silently stop. Thread 9 (Thread 11676.0x2e80): #0 0x771b8c51 in ntdll!DbgBreakPoint () from C:\WINDOWS\SYSTEM32\ntdll.dll #1 0x771e9e09 in ntdll!DbgUiRemoteBreakin () from C:\WINDOWS\SYSTEM32\ntdll.dll #2 0xfb32daaf in ?? () #3 0x771e9dd0 in ntdll!DbgUiIssueRemoteBreakin () from C:\WINDOWS\SYSTEM32\ntdll.dll #4 0x760238f4 in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\SYSTEM32\kernel32.dll #5 0x771a56c3 in ntdll!RtlUnicodeStringToInteger () from C:\WINDOWS\SYSTEM32\ntdll.dll #6 0x00000000 in ?? () Lisp Backtrace: "backtrace" (0xbfedac) "debugger-setup-buffer" (0xbfefe0) "debug" (0xbff1b4) "ses-relocate-all" (0xbff200) "let" (0xbff3bc) "ses-delete-row" (0xbff598) "funcall-interactively" (0xbff594) "call-interactively" (0xbff710) "command-execute" (0xbff8dc) Thread 6 (Thread 11676.0x2aa0): #0 backtrace_top () at eval.c:183 #1 #2 backtrace_top () at eval.c:183 #3 #4 0x771b868c in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\WINDOWS\SYSTEM32\ntdll.dll #5 0x7718a246 in ntdll!EtwNotificationRegister () from C:\WINDOWS\SYSTEM32\ntdll.dll #6 0x760238f4 in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\SYSTEM32\kernel32.dll #7 0x771a56c3 in ntdll!RtlUnicodeStringToInteger () from C:\WINDOWS\SYSTEM32\ntdll.dll #8 0x00c844c0 in ?? () #9 0x771a568e in ntdll!RtlUnicodeStringToInteger () from C:\WINDOWS\SYSTEM32\ntdll.dll #10 0xffffffff in ?? () #11 0x771cb6c3 in ntdll!RtlCaptureContext () from C:\WINDOWS\SYSTEM32\ntdll.dll #12 0x00000000 in ?? () [New Thread 11676.0x1f78] Program received signal SIGTRAP, Trace/breakpoint trap. [Switching to Thread 11676.0x1f78] 0x771b8c51 in ntdll!DbgBreakPoint () from C:\WINDOWS\SYSTEM32\ntdll.dll (gdb) The program received a signal in another thread while making a function call from GDB. Evaluation of the expression containing the function (backtrace_top) will be abandoned. When the function is done executing, GDB will silently stop. Thread 10 (Thread 11676.0x1f78): #0 0x771b8c51 in ntdll!DbgBreakPoint () from C:\WINDOWS\SYSTEM32\ntdll.dll #1 0x771e9e09 in ntdll!DbgUiRemoteBreakin () from C:\WINDOWS\SYSTEM32\ntdll.dll #2 0xfb32daaf in ?? () #3 0x771e9dd0 in ntdll!DbgUiIssueRemoteBreakin () from C:\WINDOWS\SYSTEM32\ntdll.dll #4 0x760238f4 in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\SYSTEM32\kernel32.dll #5 0x771a56c3 in ntdll!RtlUnicodeStringToInteger () from C:\WINDOWS\SYSTEM32\ntdll.dll #6 0x00000000 in ?? () Lisp Backtrace: "backtrace" (0xbfedac) "debugger-setup-buffer" (0xbfefe0) "debug" (0xbff1b4) "ses-relocate-all" (0xbff200) "let" (0xbff3bc) "ses-delete-row" (0xbff598) "funcall-interactively" (0xbff594) "call-interactively" (0xbff710) "command-execute" (0xbff8dc) Thread 6 (Thread 11676.0x2aa0): #0 backtrace_top () at eval.c:183 #1 #2 backtrace_top () at eval.c:183 #3 #4 backtrace_top () at eval.c:183 #5 #6 0x771b868c in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\WINDOWS\SYSTEM32\ntdll.dll #7 0x7718a246 in ntdll!EtwNotificationRegister () from C:\WINDOWS\SYSTEM32\ntdll.dll #8 0x760238f4 in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\SYSTEM32\kernel32.dll #9 0x771a56c3 in ntdll!RtlUnicodeStringToInteger () from C:\WINDOWS\SYSTEM32\ntdll.dll #10 0x00c844c0 in ?? () #11 0x771a568e in ntdll!RtlUnicodeStringToInteger () from C:\WINDOWS\SYSTEM32\ntdll.dll #12 0xffffffff in ?? () #13 0x771cb6c3 in ntdll!RtlCaptureContext () from C:\WINDOWS\SYSTEM32\ntdll.dll #14 0x00000000 in ?? () [New Thread 11676.0x2134] Program received signal SIGTRAP, Trace/breakpoint trap. [Switching to Thread 11676.0x2134] 0x771b8c51 in ntdll!DbgBreakPoint () from C:\WINDOWS\SYSTEM32\ntdll.dll (gdb) The program received a signal in another thread while making a function call from GDB. Evaluation of the expression containing the function (backtrace_top) will be abandoned. When the function is done executing, GDB will silently stop. Thread 11 (Thread 11676.0x2134): #0 0x771b8c51 in ntdll!DbgBreakPoint () from C:\WINDOWS\SYSTEM32\ntdll.dll #1 0x771e9e09 in ntdll!DbgUiRemoteBreakin () from C:\WINDOWS\SYSTEM32\ntdll.dll #2 0xfb32daaf in ?? () #3 0x771e9dd0 in ntdll!DbgUiIssueRemoteBreakin () from C:\WINDOWS\SYSTEM32\ntdll.dll #4 0x760238f4 in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\SYSTEM32\kernel32.dll #5 0x771a56c3 in ntdll!RtlUnicodeStringToInteger () from C:\WINDOWS\SYSTEM32\ntdll.dll #6 0x00000000 in ?? () Lisp Backtrace: "backtrace" (0xbfedac) "debugger-setup-buffer" (0xbfefe0) "debug" (0xbff1b4) "ses-relocate-all" (0xbff200) "let" (0xbff3bc) "ses-delete-row" (0xbff598) "funcall-interactively" (0xbff594) "call-interactively" (0xbff710) "command-execute" (0xbff8dc) Thread 6 (Thread 11676.0x2aa0): #0 backtrace_top () at eval.c:183 #1 #2 backtrace_top () at eval.c:183 #3 #4 backtrace_top () at eval.c:183 #5 #6 backtrace_top () at eval.c:183 #7 #8 0x771b868c in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\WINDOWS\SYSTEM32\ntdll.dll #9 0x7718a246 in ntdll!EtwNotificationRegister () from C:\WINDOWS\SYSTEM32\ntdll.dll #10 0x760238f4 in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\SYSTEM32\kernel32.dll #11 0x771a56c3 in ntdll!RtlUnicodeStringToInteger () from C:\WINDOWS\SYSTEM32\ntdll.dll #12 0x00c844c0 in ?? () #13 0x771a568e in ntdll!RtlUnicodeStringToInteger () from C:\WINDOWS\SYSTEM32\ntdll.dll #14 0xffffffff in ?? () #15 0x771cb6c3 in ntdll!RtlCaptureContext () from C:\WINDOWS\SYSTEM32\ntdll.dll #16 0x00000000 in ?? () --8<----8<----8<----8<----8<-- end -->8---->8---->8---->8---->8---- VBR, Vincent