From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#68690: Segmentation fault building with native-comp Date: Fri, 26 Jan 2024 19:08:55 -0500 Message-ID: References: <87wmryel78.fsf@pub.pink> <86zfwud5cv.fsf@gnu.org> <86sf2mcwa2.fsf@gnu.org> <86le8dd7ze.fsf@gnu.org> <86sf2k9nfo.fsf@gnu.org> <86msss9ma6.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34204"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Gerd =?UTF-8?Q?M=C3=B6llmann?= , 68690@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 27 01:10:20 2024 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 1rTWH4-0008fr-Mx for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Jan 2024 01:10:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rTWGj-0006lz-0y; Fri, 26 Jan 2024 19:09:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rTWGh-0006lq-Dn for bug-gnu-emacs@gnu.org; Fri, 26 Jan 2024 19:09:55 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rTWGh-0008VH-5b for bug-gnu-emacs@gnu.org; Fri, 26 Jan 2024 19:09:55 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rTWGn-0007UD-Rl for bug-gnu-emacs@gnu.org; Fri, 26 Jan 2024 19:10:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Jan 2024 00:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68690 X-GNU-PR-Package: emacs Original-Received: via spool by 68690-submit@debbugs.gnu.org id=B68690.170631415128624 (code B ref 68690); Sat, 27 Jan 2024 00:10:01 +0000 Original-Received: (at 68690) by debbugs.gnu.org; 27 Jan 2024 00:09:11 +0000 Original-Received: from localhost ([127.0.0.1]:53067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTWFz-0007Rc-CW for submit@debbugs.gnu.org; Fri, 26 Jan 2024 19:09:11 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:36207) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTWFx-0007RP-Sc for 68690@debbugs.gnu.org; Fri, 26 Jan 2024 19:09:10 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 72D8144471C; Fri, 26 Jan 2024 19:08:57 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1706314136; bh=E8LEValce/G3dyJwJ3Mcy2eluNLGYw+EAE0ZevYHczQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=SKJl7KDmue3IM3MRG6LqWR97hBkT7scg9QaiQuSZnfKsdWZOXZ+lrTMMkFrHkNilr B9d/W4yMpt+NDiOQsOqtKkhjte3CkBSjJgL3h/7YVhohn2X9tyC8HObBlDiFjNSnzk /NCFht478dXPJXw9GkieT1V3GIUIRa2z3dOh+V6GLnmoJSoR836dXMK7bNTELjZwZO UaTNtvGOkcs5AaG2YYth3fddhvvUQYDW9hhH6GKk/iC5iYio2ApS5w16ruRsStNquv R54XmzVF8s0UhIZgF6aPoi2HdxnSH2MkDf63xTcekKApY5fVhJBA13XHzKd/9TE2U5 A4XGxyXzOYa/w== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 49C58444716; Fri, 26 Jan 2024 19:08:56 -0500 (EST) Original-Received: from pastel (unknown [45.72.206.68]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 20C85120209; Fri, 26 Jan 2024 19:08:56 -0500 (EST) In-Reply-To: <86msss9ma6.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 26 Jan 2024 16:55:45 +0200") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:278953 Archived-At: I've been spending a lot of time on this and still haven't found the origin of the problem nor a fix. Here's what I have currently, in short: % src/bootstrap-emacs --batch -f batch-byte-compile lisp/ido.el charset 0: a0000000f20e1328 => f1f2c070 CHARSET_ATTRIBUTES(ID=0, cs=f1f2c064) = f20e132800000000 (@ f1f2c06c) lisp.h:1784: Emacs fatal error: assertion failed: VECTORLIKEP (a) The first message comes from `dump_do_dump_relocation` when we load the dump file and shows (I believe) the relocation we do for the `attributes` field of the charset 0: we write the (relocated) Lisp_Object value `a0000000f20e1328` at address `f1f2c070`. The second message comes from `CHARSET_ATTRIBUTES` which tells us that it reads the Lisp_Object value `f20e132800000000` at address `f1f2c06c`. I sadly have no clue yet why there is this 4byte difference between those two addresses (but it does explain the bogus Lisp_Object we get). Stefan