From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: reproducible .pdmp generation Date: Tue, 01 Oct 2024 09:32:32 -0700 Message-ID: <0F7CB96F-5A23-4B36-950F-27D76E2EE232@dancol.org> References: <65874876-d30b-4a35-818f-50e135c77b76@lsmod.de> <861q0z3j3p.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24873"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: K-9 Mail for Android Cc: emacs-devel@gnu.org To: Eli Zaretskii , "Bernhard M. Wiedemann" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 01 18:33:03 2024 Return-path: Envelope-to: ged-emacs-devel@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 1svfo6-0006KI-Fn for ged-emacs-devel@m.gmane-mx.org; Tue, 01 Oct 2024 18:33:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1svfnl-0002hZ-8X; Tue, 01 Oct 2024 12:32:41 -0400 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 1svfni-0002h4-J3 for emacs-devel@gnu.org; Tue, 01 Oct 2024 12:32:38 -0400 Original-Received: from dancol.org ([2600:3c01:e000:3d8::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1svfng-0005Ra-RL; Tue, 01 Oct 2024 12:32:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: References:In-Reply-To:Subject:CC:To:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=c/97IgGgXYJPm9m8GPOM0glMmdPChyGHofIJrTXwL4k=; b=BV2mAek3Lz75pAb4PORWVQp4Pe Wft0Lh4wAF9e9WNeGqbYZO+uFPt9I/MR2oG3wBnb+OgHMBo73brwIHv4hWdT/f46+EfkGnf5xlKwy aljaDOu4dMEh6ksRyy6D8ngwiAMURdr6dxVBbaxsqqXK1ho/zIx5aKrl2axNhY5j/ptL4TFJ5cPDT q1D1ERWJT7ohOhR7nULCF+50dbRpB99YoCEQD6p86NjLh0hS4bJXc491GjrHtq88N3Ggw+Iv6KTpH jgIMBMRsKkv64ZhzXEZGSf4mRIF/iCzBvasO/cWt1CPB9O0wz+UQMr1oXJu5AsAUIme3kANTFvK9g 5A3fk58w==; Original-Received: from [12.51.135.7] (port=47214 helo=[127.0.0.1]) by dancol.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1svfnb-0008Ao-0t; Tue, 01 Oct 2024 12:32:31 -0400 In-Reply-To: <861q0z3j3p.fsf@gnu.org> Received-SPF: pass client-ip=2600:3c01:e000:3d8::1; envelope-from=dancol@dancol.org; helo=dancol.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:324233 Archived-At: On October 1, 2024 9:04:26 AM PDT, Eli Zaretskii wrote: >> Date: Tue, 1 Oct 2024 17:08:30 +0200 >> From: "Bernhard M=2E Wiedemann" >>=20 >> But there might be other issues involved=2E >> One pair of =2Epdmp files had this noteworthy hunk in the diff: >>=20 >> > 009ca3a0 73 20 74 6f 20 64 6f 63 20 73 74 72 69 6e 67 73 |s to do= c strings| >> > 009ca3b0 2e 2e 2e 64 6f 6e 65 0a 50 75 72 65 2d 68 61 73 |=2E=2E= =2Edone=2EPure-has| >> > 009ca3c0 68 65 64 3a 20 31 35 39 35 37 20 73 74 72 69 6e |hed: 15= 957 strin| >> > -009ca3d0 67 73 2c 20 31 39 35 33 20 76 65 63 74 6f 72 73 |gs, 195= 3 vectors| >> > +009ca3d0 67 73 2c 20 31 39 34 37 20 76 65 63 74 6f 72 73 |gs, 194= 7 vectors| >> > 009ca3e0 2c 20 34 39 35 33 31 20 63 6f 6e 73 65 73 2c 20 |, 49531= conses, | >> > 009ca3f0 31 32 33 33 20 62 79 74 65 63 6f 64 65 73 2c 20 |1233 by= tecodes, | >> > 009ca400 33 37 31 20 6f 74 68 65 72 73 0a 44 75 6d 70 69 |371 oth= ers=2EDumpi| >>=20 >> Is there a tool to convert =2Epdmp files into some readable text form, = so=20 >> that I can better understand what differs there? > >Not that I know of=2E Maybe Daniel (CC'ed) does=2E > >> What other approaches could help to track down the source of=20 >> non-determinism here? > >Ditto=2E > >> Are these files actually needed to use emacs? > >You mean, the =2Epdmp files? Without them, you can only start temacs >and load all the preloaded Lisp files from scratch, before you can >have a fully-functional Emacs=2E > >If you meant other files, please name them=2E pdmp files are basically packed Emacs heap images with embedded relocation= s=2E If you want to make them deterministic, make the temacs run that produ= ces them deterministic=2E For example, you can try turning off ASLR and mak= ing sure that if anything is using a PRNG, it's seeded=2E Above, it seems l= ike the string table is differing somewhat between two runs=2E I'd start wi= th tracking down the origins of the strings=2E