From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#29183: 27.0.50; SIGSEGV on C-g on Windows Date: Wed, 8 Nov 2017 14:46:53 -0800 Organization: UCLA Computer Science Department Message-ID: <571b940d-666b-c650-429d-5fc7bfc0d078@cs.ucla.edu> References: <83mv3ysqth.fsf@gnu.org> <83d14tswq6.fsf@gnu.org> <834lq5saeu.fsf@gnu.org> <83wp30r48u.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1510181290 11823 195.159.176.226 (8 Nov 2017 22:48:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 8 Nov 2017 22:48:10 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 Cc: 29183@debbugs.gnu.org To: Eli Zaretskii , John Mastro Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 08 23:48:05 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 1eCZ8e-0002pY-Hl for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Nov 2017 23:48:04 +0100 Original-Received: from localhost ([::1]:34242 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCZ8l-0004Es-TP for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Nov 2017 17:48:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCZ8f-0004Ek-KL for bug-gnu-emacs@gnu.org; Wed, 08 Nov 2017 17:48:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCZ8c-0005Y9-DY for bug-gnu-emacs@gnu.org; Wed, 08 Nov 2017 17:48:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50398) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eCZ8c-0005Y5-9R for bug-gnu-emacs@gnu.org; Wed, 08 Nov 2017 17:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eCZ8c-0001hK-35 for bug-gnu-emacs@gnu.org; Wed, 08 Nov 2017 17:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Nov 2017 22:48: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.15101812236425 (code B ref 29183); Wed, 08 Nov 2017 22:48:02 +0000 Original-Received: (at 29183) by debbugs.gnu.org; 8 Nov 2017 22:47:03 +0000 Original-Received: from localhost ([127.0.0.1]:59074 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCZ7f-0001fZ-Ep for submit@debbugs.gnu.org; Wed, 08 Nov 2017 17:47:03 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:49408) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCZ7d-0001f2-NC for 29183@debbugs.gnu.org; Wed, 08 Nov 2017 17:47:02 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id ACDC9160800; Wed, 8 Nov 2017 14:46:55 -0800 (PST) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id PVCoOwPB5kXg; Wed, 8 Nov 2017 14:46:53 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 9A7EC160866; Wed, 8 Nov 2017 14:46:53 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id O__jBorQb0_Z; Wed, 8 Nov 2017 14:46:53 -0800 (PST) Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 823D1160800; Wed, 8 Nov 2017 14:46:53 -0800 (PST) In-Reply-To: <83wp30r48u.fsf@gnu.org> Content-Language: en-US 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:139640 Archived-At: On 11/08/2017 10:53 AM, Eli Zaretskii wrote: > it sounds like our assumption that this attribute should be a no-op in=20 > this case is incorrect, or maybe it's a bug in GCC 7.2?=20 The GCC 7.2 documentation=20 =20 says: > When used on a struct, or struct member, the |aligned| attribute can=20 > only increase the alignment; in order to decrease it, the |packed|=20 > attribute must be specified as well. so it appears to be a bug. What is the difference in assembly-language output when you compile with=20 this: =C2=A0 static struct thread_state GCALIGNED main_thread; versus this? static struct thread_state main_thread; What is the assembly-language output when compiling the following little = program, when compiled the same way that you compile thread.c? struct thread_state { int x; }; static struct thread_state __attribute__ ((aligned (8))) a; static struct thread_state b; struct thread_state *c[] =3D { &a, &b }; On my platform, compiling this with gcc -S yields the following, which lo= oks properly aligned: .file "t.c" .local a .comm a,4,8 .local b .comm b,4,4 .globl c .data .align 16 .type c, @object .size c, 16 c: .quad a .quad b .ident "GCC: (GNU) 7.2.1 20170915 (Red Hat 7.2.1-2)" .section .note.GNU-stack,"",@progbits