From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#29183: 27.0.50; SIGSEGV on C-g on Windows Date: Tue, 07 Nov 2017 21:41:05 +0200 Message-ID: <83d14tswq6.fsf@gnu.org> References: <83mv3ysqth.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1510083736 31532 195.159.176.226 (7 Nov 2017 19:42:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 7 Nov 2017 19:42:16 +0000 (UTC) Cc: 29183@debbugs.gnu.org To: John Mastro Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 07 20:42:07 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eC9l8-0007oB-RR for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Nov 2017 20:42:06 +0100 Original-Received: from localhost ([::1]:55567 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eC9lG-0002yP-6f for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Nov 2017 14:42:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eC9l8-0002xE-NF for bug-gnu-emacs@gnu.org; Tue, 07 Nov 2017 14:42:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eC9l4-0000EE-NG for bug-gnu-emacs@gnu.org; Tue, 07 Nov 2017 14:42:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48355) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eC9l4-0000E7-JD for bug-gnu-emacs@gnu.org; Tue, 07 Nov 2017 14:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eC9l4-0006Hq-Bw for bug-gnu-emacs@gnu.org; Tue, 07 Nov 2017 14:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Nov 2017 19:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29183 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29183-submit@debbugs.gnu.org id=B29183.151008367024103 (code B ref 29183); Tue, 07 Nov 2017 19:42:02 +0000 Original-Received: (at 29183) by debbugs.gnu.org; 7 Nov 2017 19:41:10 +0000 Original-Received: from localhost ([127.0.0.1]:57036 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eC9kD-0006Gh-U5 for submit@debbugs.gnu.org; Tue, 07 Nov 2017 14:41:10 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53709) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eC9kB-0006GI-E6 for 29183@debbugs.gnu.org; Tue, 07 Nov 2017 14:41:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eC9k2-00087H-6F for 29183@debbugs.gnu.org; Tue, 07 Nov 2017 14:41:02 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eC9k2-00087D-2q; Tue, 07 Nov 2017 14:40:58 -0500 Original-Received: from [176.228.60.248] (port=4363 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eC9k1-0005ru-CP; Tue, 07 Nov 2017 14:40:57 -0500 In-reply-to: (message from John Mastro on Tue, 7 Nov 2017 10:14:09 -0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:139575 Archived-At: > From: John Mastro > Date: Tue, 7 Nov 2017 10:14:09 -0800 > Cc: Eli Zaretskii > > Eli Zaretskii wrote: > > Is this again bug#29040? Did main_thread become mis-aligned again? > > I repeated the commands Richard used in that bug report, and I believe > you're right: it's 8-byte aligned rather than 16-byte aligned. > Transcript below. > > Thread 1 received signal SIGSEGV, Segmentation fault. > 0x00007ff8cb7893a0 in ntdll!RtlCaptureContext () > from C:\Windows\SYSTEM32\ntdll.dll > (gdb) frame 0 > #0 0x00007ff8cb7893a0 in ntdll!RtlCaptureContext () > from C:\Windows\SYSTEM32\ntdll.dll > (gdb) p/x $rax > $1 = 0x4005d1d68 > (gdb) up > #1 0x00007ff8cb6f8f27 in ntdll!RtlUnwindEx () > from C:\Windows\SYSTEM32\ntdll.dll > (gdb) up > #2 0x00007ff8c91d1f4a in msvcrt!_setjmpex () > from C:\Windows\System32\msvcrt.dll > (gdb) up > #3 0x00000004000a93d4 in quit_throw_to_read_char ( > from_signal=from_signal@entry=false) at keyboard.c:10548 > 10548 sys_longjmp (getcjmp, 1); > (gdb) p &getcjmp > $2 = (sys_jmp_buf *) 0x4005d1d68 Yep. How did that happen?.. Can you show a preprocessed version of thread.c, where it does this: static struct thread_state GCALIGNED main_thread; Also, what is your GCC version?