From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#41321: 27.0.91; Emacs aborts due to invalid pseudovector objects Date: Sat, 30 May 2020 12:14:14 -0700 Organization: UCLA Computer Science Department Message-ID: <5c746672-9f07-0314-500c-dc46e0c5b764@cs.ucla.edu> References: <83zha8cgpi.fsf@gnu.org> <83mu5xw50d.fsf@gnu.org> <83k110wxte.fsf@gnu.org> <4bab5f55-95fe-cf34-e490-1d4319728395@cs.ucla.edu> <837dwyvi74.fsf@gnu.org> <1484f569-c260-9fb0-bfe1-67897de289d3@cs.ucla.edu> <83blm9tn4j.fsf@gnu.org> <4aeb8963-4fd1-fcd4-e6e1-be409ab54775@cs.ucla.edu> <83tuzzrk30.fsf@gnu.org> <749bc7d0-6376-ec2e-7f84-dcd3a3cea465@cs.ucla.edu> <83sgfjqn49.fsf@gnu.org> <7c66e510-a8e6-17d0-94b1-793b49f87a37@cs.ucla.edu> <83tuzxl6gu.fsf@gnu.org> <782f3b14-ff24-fa26-5bd1-fa0db013bf8c@cs.ucla.edu> <83r1v1l4ls.fsf@gnu.org> <3399f152-27aa-3854-d741-e9dfaaa00fc7@cs.ucla.edu> <83mu5pl1wk.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="10877"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 Cc: 41321@debbugs.gnu.org, monnier@iro.umontreal.ca, pipcet@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 30 21:15:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jf6wo-0002iM-Qy for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 May 2020 21:15:10 +0200 Original-Received: from localhost ([::1]:48890 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jf6wn-0008UW-Nq for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 May 2020 15:15:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45884) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jf6wg-0008UI-7h for bug-gnu-emacs@gnu.org; Sat, 30 May 2020 15:15:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47693) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jf6wf-0004Jr-To for bug-gnu-emacs@gnu.org; Sat, 30 May 2020 15:15:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jf6wf-000449-OH for bug-gnu-emacs@gnu.org; Sat, 30 May 2020 15:15:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 May 2020 19:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41321 X-GNU-PR-Package: emacs Original-Received: via spool by 41321-submit@debbugs.gnu.org id=B41321.159086606515567 (code B ref 41321); Sat, 30 May 2020 19:15:01 +0000 Original-Received: (at 41321) by debbugs.gnu.org; 30 May 2020 19:14:25 +0000 Original-Received: from localhost ([127.0.0.1]:59239 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jf6w4-000431-O4 for submit@debbugs.gnu.org; Sat, 30 May 2020 15:14:24 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:40146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jf6w2-00042n-T7 for 41321@debbugs.gnu.org; Sat, 30 May 2020 15:14:23 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 0443C1600D9; Sat, 30 May 2020 12:14:17 -0700 (PDT) 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 qDTtAHgV4k23; Sat, 30 May 2020 12:14:16 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 4868F1600DA; Sat, 30 May 2020 12:14:16 -0700 (PDT) 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 gfyJuqVPj1r3; Sat, 30 May 2020 12:14:16 -0700 (PDT) Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id EEE401600D9; Sat, 30 May 2020 12:14:15 -0700 (PDT) In-Reply-To: <83mu5pl1wk.fsf@gnu.org> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:181258 Archived-At: On 5/30/20 11:21 AM, Eli Zaretskii wrote: > on current emacs-27, both LISP_ALIGNMENT > and alignof(max_align_t) are 16 in my builds. And I still don't > understand why using LISP_ALIGNMENT of 8 is not right in this case (on > emacs-27). You're right that LISP_ALIGNMENT is 16 on your host on the emacs-27 branch, because alignof (max_align_t) is 16 there. And you're also right that setting LISP_ALIGNMENT to be 8 on your host would fix the marker bug you observed there, because it would work around your host's bug where malloc returns a pointer that is not a multiple of alignof(max_align_t). However, C and POSIX allow platforms where LISP_ALIGNMENT should be greater than 8, or (if !USE_LSB_TAG) should be less than 8, so I'd be leery about changing LISP_ALIGNMENT on any host that doesn't have your host's idiosyncrasies. And that specific workaround should not be needed anyway if we install the emacs-27 patch that I have most-recently suggested (or Pip Cet's very-similar recent patch), since this patch solves the problem in a more-general way that should help to prevent more bugs like this one.