From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#68690: Segmentation fault building with native-comp Date: Fri, 26 Jan 2024 16:36:52 +0200 Message-ID: <86plxo9n5n.fsf@gnu.org> References: <87wmryel78.fsf@pub.pink> <86zfwud5cv.fsf@gnu.org> <86sf2mcwa2.fsf@gnu.org> <86le8dd7ze.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9366"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, 68690@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 26 15:38:29 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 1rTNLg-000291-6D for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Jan 2024 15:38:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rTNLM-0001BO-R5; Fri, 26 Jan 2024 09:38:08 -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 1rTNLA-0000oT-7H for bug-gnu-emacs@gnu.org; Fri, 26 Jan 2024 09:37:58 -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 1rTNL9-0000TS-HY for bug-gnu-emacs@gnu.org; Fri, 26 Jan 2024 09:37:55 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rTNLF-0004wI-P1 for bug-gnu-emacs@gnu.org; Fri, 26 Jan 2024 09:38:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Jan 2024 14:38: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.170627983518931 (code B ref 68690); Fri, 26 Jan 2024 14:38:01 +0000 Original-Received: (at 68690) by debbugs.gnu.org; 26 Jan 2024 14:37:15 +0000 Original-Received: from localhost ([127.0.0.1]:50754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTNKV-0004vG-Be for submit@debbugs.gnu.org; Fri, 26 Jan 2024 09:37:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTNKT-0004v3-DD for 68690@debbugs.gnu.org; Fri, 26 Jan 2024 09:37:14 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rTNKG-0000MO-So; Fri, 26 Jan 2024 09:37:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=79qfXQsUHg6HlrePSYptGu5Dndmf64XE2HqT7lqxMoY=; b=BZkv3LVgi+mn kRSisDFwZ90Z9kRoIF87q6F3RIL7LDZJEA4P8XZoueSTaSZpF6sf/fJ/XzUPvPHS33xiSSEXXsd0L zqTFxTfC3+qJdSADEzRAxX6HBPoue9HOZS8ONcI3Hem45oS3uGWbVCkHk6+gO096w/aihxjefp6jw QRZ1r07bSzyfK2nn3Ud50iXw5ISiqd+Vcmt3FNDU0uXPJtALTSpd/AOGMComfNuAm0L87iKIAUEj3 3za4iDBxAHfLBrcd3fHeEzfzNoDxLK42PWfzzqAUswpgvJflyG4jqrjNL0Slgjy1e794Fx92adOY9 PGCjLfV0Owdqo73cB2D1jA==; In-Reply-To: (message from Stefan Monnier on Fri, 26 Jan 2024 08:48:46 -0500) 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:278930 Archived-At: > From: Stefan Monnier > Cc: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of > text editors" , Eli Zaretskii , > jm@pub.pink, 68690@debbugs.gnu.org > Date: Fri, 26 Jan 2024 08:48:46 -0500 > > > I remembered seeing something in pdumper.c that could be related, namely > > > > /* Start the cold section. This section contains bytes that should > > never change and so can be direct-mapped from the dump without > > special processing. */ > > dump_drain_cold_data (ctx); > > > > And if you follow that function you'll see that it treats charsets > > specially. > > > > I find the comment about directly mapping very suspicious, when the > > charset contains a Lisp_Object, possibly requiring relocation. But it > > could well be that I misundertand something here. > > Hmm... would a patch like the one below fix the problem, then? What is the logic behind this patch? Anyway, the offending charset (ASCII) doesn't have a non-NULL code_space_mask, so it is not processed by dump_cold_charset. I therefore doubt that this will have any effect on the problem.