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#29040: Emacs 25 hangs on windows arbitrarily during search of a unicode file Date: Fri, 3 Nov 2017 02:25:17 -0700 Organization: UCLA Computer Science Department Message-ID: <367b0f8e-a575-7230-055e-88594d9ff356@cs.ucla.edu> References: <83wp38r87q.fsf@gnu.org> <136c8415-5027-e149-b8b1-5b08da5815f3@cs.ucla.edu> <83k1z8wgrw.fsf@gnu.org> <8d805311-7837-681b-55c0-32e61c8a3b60@cs.ucla.edu> <83bmkjwxsx.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------E7C1637ABA18D9353C9E2760" X-Trace: blaine.gmane.org 1509701175 30236 195.159.176.226 (3 Nov 2017 09:26:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 3 Nov 2017 09:26:15 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 Cc: 29040@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 03 10:26:08 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 1eAYEo-00075E-14 for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Nov 2017 10:26:06 +0100 Original-Received: from localhost ([::1]:35565 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAYEv-0006zB-FV for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Nov 2017 05:26:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57899) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAYEp-0006z2-GH for bug-gnu-emacs@gnu.org; Fri, 03 Nov 2017 05:26:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eAYEk-0006AD-Sq for bug-gnu-emacs@gnu.org; Fri, 03 Nov 2017 05:26:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40036) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eAYEk-00069u-PJ for bug-gnu-emacs@gnu.org; Fri, 03 Nov 2017 05:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eAYEk-00088Z-G2 for bug-gnu-emacs@gnu.org; Fri, 03 Nov 2017 05:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Nov 2017 09:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29040 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 29040-submit@debbugs.gnu.org id=B29040.150970112731231 (code B ref 29040); Fri, 03 Nov 2017 09:26:02 +0000 Original-Received: (at 29040) by debbugs.gnu.org; 3 Nov 2017 09:25:27 +0000 Original-Received: from localhost ([127.0.0.1]:48717 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAYEB-00087f-E8 for submit@debbugs.gnu.org; Fri, 03 Nov 2017 05:25:27 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:35170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAYE9-00087R-T9 for 29040@debbugs.gnu.org; Fri, 03 Nov 2017 05:25:26 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id E90AD1600EA; Fri, 3 Nov 2017 02:25:18 -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 sAPhXOQZQ7Fh; Fri, 3 Nov 2017 02:25:18 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 872081605ED; Fri, 3 Nov 2017 02:25:17 -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 X1EbS0UauAhH; Fri, 3 Nov 2017 02:25:17 -0700 (PDT) Original-Received: from [192.168.1.9] (unknown [47.154.18.85]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 2D2BB1600EA; Fri, 3 Nov 2017 02:25:17 -0700 (PDT) In-Reply-To: <83bmkjwxsx.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:139401 Archived-At: This is a multi-part message in MIME format. --------------E7C1637ABA18D9353C9E2760 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Eli Zaretskii wrote: > globals.h:1095:10: error: requested alignment is not an integer constant > struct Lisp_Symbol GCALIGNED s; > ^ Ouch, I had thought that only older MSVC had the problem. Sorry about that. I installed the attached into emacs-26 and merged it to master. --------------E7C1637ABA18D9353C9E2760 Content-Type: text/x-patch; name="0001-Change-GCALIGNMENT-back-to-an-integer-literal.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Change-GCALIGNMENT-back-to-an-integer-literal.patch" >From c911b27aff8dd15cd47a063dc958e6dae74dde06 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 3 Nov 2017 02:20:15 -0700 Subject: [PATCH] Change GCALIGNMENT back to an integer literal * src/lisp.h (GCALIGNMENT): Change it back to a macro that expands to a literal integer constant, for older GCC. I had mistakenly thought that only MSVC had the problem. Problem repored by Eli Zaretskii (Bug#29040#69). --- src/lisp.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lisp.h b/src/lisp.h index a71ba22..4dd4720 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -233,7 +233,9 @@ extern bool suppress_checking EXTERNALLY_VISIBLE; enum Lisp_Bits { - GCALIGNMENT = 1 << GCTYPEBITS, + /* 2**GCTYPEBITS. This must be a macro that expands to a literal + integer constant, for older versions of GCC (through at least 4.9). */ +#define GCALIGNMENT 8 /* Number of bits in a Lisp_Object value, not counting the tag. */ VALBITS = EMACS_INT_WIDTH - GCTYPEBITS, @@ -245,6 +247,10 @@ enum Lisp_Bits FIXNUM_BITS = VALBITS + 1 }; +#if GCALIGNMENT != 1 << GCTYPEBITS +# error "GCALIGNMENT and GCTYPEBITS are inconsistent" +#endif + /* The maximum value that can be stored in a EMACS_INT, assuming all bits other than the type bits contribute to a nonnegative signed value. This can be used in #if, e.g., '#if USE_LSB_TAG' below expands to an -- 2.7.4 --------------E7C1637ABA18D9353C9E2760--