From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#68690: Segmentation fault building with native-comp Date: Fri, 26 Jan 2024 10:26:00 +0100 Message-ID: References: <87wmryel78.fsf@pub.pink> <86zfwud5cv.fsf@gnu.org> <86sf2mcwa2.fsf@gnu.org> <86le8dd7ze.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38922"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: eliz@gnu.org, jm@pub.pink, monnier@iro.umontreal.ca To: 68690@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 26 10:27:22 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 1rTIUc-0009ug-DE for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Jan 2024 10:27:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rTIUD-0007JK-Jj; Fri, 26 Jan 2024 04:26: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 1rTIUC-0007Ir-BS for bug-gnu-emacs@gnu.org; Fri, 26 Jan 2024 04:26:56 -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 1rTIUC-0001Yp-2o for bug-gnu-emacs@gnu.org; Fri, 26 Jan 2024 04:26:56 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rTIUI-00084y-D7 for bug-gnu-emacs@gnu.org; Fri, 26 Jan 2024 04:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Jan 2024 09:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68690 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: Eli Zaretskii , jm@pub.pink, 68690@debbugs.gnu.org, Stefan Monnier Original-Received: via spool by 68690-submit@debbugs.gnu.org id=B68690.170626117630982 (code B ref 68690); Fri, 26 Jan 2024 09:27:02 +0000 Original-Received: (at 68690) by debbugs.gnu.org; 26 Jan 2024 09:26:16 +0000 Original-Received: from localhost ([127.0.0.1]:50439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTITX-00083e-Tc for submit@debbugs.gnu.org; Fri, 26 Jan 2024 04:26:16 -0500 Original-Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]:46400) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTITW-00083P-4o for 68690@debbugs.gnu.org; Fri, 26 Jan 2024 04:26:14 -0500 Original-Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a34b468154fso13423466b.1 for <68690@debbugs.gnu.org>; Fri, 26 Jan 2024 01:26:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706261161; x=1706865961; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=k3aXYfyflOUTqAyEKXPZH2GKn6CSEOrQGxj7311EhQ0=; b=iZ1yQMrBcr9LdGZrDZcBFJ1z+8KPFMZg77KNvmGReZC0FwhtR8wRZglq8vEFrOaUsa Y7BezaQs5iVe33ztmRyYc4AAYrqOTn5XHtd2e/5kU8uzgMr2X2KrE42zOqvVFIjhIkwj R1v0968dNM8Trrt+vuaj4rt7BFrWmxP1TlNSkbOUyKqlu3D9B13fSOX0ZvFMQf869/ut LQvum88t8mrD5GuCBSvlr2uU6sPjLCQWwY6AWyWdEn8XKVzTMszpCryC1j/N3xnSpHnJ 5bbExMzS73YeUYrhgWbJR6g9+opqzREMfqR4y4GvM5MHjkb8ho/GJOgdpfzw7Klz9bYx OuCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706261161; x=1706865961; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=k3aXYfyflOUTqAyEKXPZH2GKn6CSEOrQGxj7311EhQ0=; b=XHqmzSqDCpBQCYJFwFoeBjW43t9Edv4qk7cvJDw3ocZmXxgMk1spH7SKGoRVrdp+m+ 8h8zYEBoHytTUMp1wtViQ9BiUmTz299Cw/eoWKZmMt8Dq/QIixeJQrhQ3YzzGKjt5KA9 xLYxci3K+8kYtOm9B9SgkVEVd0Nov9Cc6FQDhWFW10ZBEdIogVFQtyVWXNRODo6NGq/m WPXjnPSPLjhlJwtI1IwFjC0Z1WqRBOuNmnP9KSflmfK1oPHAH2JS95w0HlWM/cc40+Nk BakAWekRCwG4A7wDuYYe1tzcMnmNdmDkDDPNAXT5WCGqX/PbfZLiymoOj8+q6mVB0n+C D8gw== X-Gm-Message-State: AOJu0YwR4LGlmBtGGBW5pQ2yy1Bl9YfLCviO0bkYyFgAqtwIPx5fL0Mw oZeCTqb0oICkw29umTYifn/jVkgqAqWlOmmzR1ktbt4V0nhOGhcPklRP7kUq X-Google-Smtp-Source: AGHT+IH78Ve3GhxPs0781ezluzc9T0tN6Q8sJ4vo/jKYWvJyYBwdKQGj5aAmy1KR8xaBlAgBkO6Tew== X-Received: by 2002:a17:906:b2d0:b0:a27:7de8:9cd9 with SMTP id cf16-20020a170906b2d000b00a277de89cd9mr345915ejb.23.1706261161362; Fri, 26 Jan 2024 01:26:01 -0800 (PST) Original-Received: from Pro.fritz.box (pd9e36b3f.dip0.t-ipconnect.de. [217.227.107.63]) by smtp.gmail.com with ESMTPSA id k25-20020a17090646d900b00a316490ddbbsm412060ejs.200.2024.01.26.01.26.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 01:26:00 -0800 (PST) In-Reply-To: (Stefan Monnier via's message of "Thu, 25 Jan 2024 21:43:01 -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:278908 Archived-At: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: >> For example, I cannot understand why some fields which are >> Lisp objects are dumped with dump_field_lv while others with >> dump_field_lv_or_rawptr, and what is the significance of WEIGHT_NORMAL >> vs WEIGHT_STRONG. Hopefully, the above gives enough information for >> you to figure this out. > > I'm just as lost as you are in pdumper.c, sadly. 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.