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:55:45 +0200 Message-ID: <86msss9ma6.fsf@gnu.org> References: <87wmryel78.fsf@pub.pink> <86zfwud5cv.fsf@gnu.org> <86sf2mcwa2.fsf@gnu.org> <86le8dd7ze.fsf@gnu.org> <86sf2k9nfo.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29527"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68690@debbugs.gnu.org, monnier@iro.umontreal.ca To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 26 15:57:17 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 1rTNds-0007Sk-0k for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Jan 2024 15:57:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rTNdZ-0005Ia-HI; Fri, 26 Jan 2024 09:56: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 1rTNdX-0005EW-TF for bug-gnu-emacs@gnu.org; Fri, 26 Jan 2024 09:56: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 1rTNdX-00069S-Ll for bug-gnu-emacs@gnu.org; Fri, 26 Jan 2024 09:56:55 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rTNdd-0005us-KP for bug-gnu-emacs@gnu.org; Fri, 26 Jan 2024 09:57: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:57: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.170628096322719 (code B ref 68690); Fri, 26 Jan 2024 14:57:01 +0000 Original-Received: (at 68690) by debbugs.gnu.org; 26 Jan 2024 14:56:03 +0000 Original-Received: from localhost ([127.0.0.1]:52312 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTNcg-0005uM-KD for submit@debbugs.gnu.org; Fri, 26 Jan 2024 09:56:02 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTNcf-0005sM-Dy for 68690@debbugs.gnu.org; Fri, 26 Jan 2024 09:56:02 -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 1rTNcS-00061y-VQ; Fri, 26 Jan 2024 09:55:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=omd3gCj2IWwa3UeNc+VzZx/3TuTopQtNlGQ6L7PKeD4=; b=RB8bDaDWteZ+4qyUqng0 tpI0gUC0vvKRZq8SCUIXYEKMhZU2+UIdzcOu1vHbxCq6u24E4X/841NcJnV6YskfJ4pb7ysmipohL /AvMog8e7MZSINIrFgQjNQslXlkQAgve7FWjCR8K/C6hV6hA44jCfHtOmzMLlaG/rEh5boj6ayhDW HxNbMefVjlcABCGH+LRxplVH/4JTNhfaqxgAtE4dx51HNWaE6vpaxm6wEThG8z02DNqxQM+yZ2z6v gPT+HQWRKhN72wTodTkU7yOH89meQPN7OoktgTLMwN5HtaAdeM/4uA+JrDOmNRMRDhKh44ncBb8lz zyKwfOscrLSVaQ==; In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Fri, 26 Jan 2024 15:47:06 +0100) 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:278934 Archived-At: > From: Gerd Möllmann > Cc: 68690@debbugs.gnu.org, monnier@iro.umontreal.ca > Date: Fri, 26 Jan 2024 15:47:06 +0100 > > > And second, what do you mean by "possibly requiring relocation"? Do > > you mean relocation after restoring from dump, or do you mean > > relocation during dumping? Or something else entirely? > > Lisp_Object fields require writing something to the dump file that can > be used, when the dump is loaded, to compute the real value in the the > new Emacs session. So, something is done when dumping, and when loading. Something _is_ being done, AFAIU. If you step through dump_field_lv, you will see that it dumps a placeholder (0xDEADF00D) instead of the actual value, and records a "fixup" to be processed later. When the fixup is processed, it schedules a "relocation", which AFAIU is supposed to replace the placeholder with the offset of the actual Lisp object in the dump file. So the machinery seems to be in place, it just doesn't work somehow in this case...