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#66744: 30.0.50; Emacs crashes when re-dumping into the same dump file another Emacs instance is using Date: Thu, 26 Oct 2023 21:18:25 +0300 Message-ID: <83lebpfdse.fsf@gnu.org> References: <87o7gnnhqz.fsf@localhost> <87a5s5bg83.fsf@localhost> <83msw5fk9h.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="36359"; mail-complaints-to="usenet@ciao.gmane.io" Cc: yantar92@posteo.net, 66744@debbugs.gnu.org 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 Thu Oct 26 20:19:12 2023 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 1qw4wo-0009A3-7O for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Oct 2023 20:19:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qw4wK-0004CZ-L7; Thu, 26 Oct 2023 14:18:40 -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 1qw4wC-0004Ah-KN for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2023 14:18:32 -0400 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 1qw4wB-0006Lb-EZ for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2023 14:18:32 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qw4wg-0007dZ-3O for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2023 14:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Oct 2023 18:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66744 X-GNU-PR-Package: emacs Original-Received: via spool by 66744-submit@debbugs.gnu.org id=B66744.169834433729347 (code B ref 66744); Thu, 26 Oct 2023 18:19:02 +0000 Original-Received: (at 66744) by debbugs.gnu.org; 26 Oct 2023 18:18:57 +0000 Original-Received: from localhost ([127.0.0.1]:34448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qw4wa-0007dH-SU for submit@debbugs.gnu.org; Thu, 26 Oct 2023 14:18:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qw4wW-0007d0-UI for 66744@debbugs.gnu.org; Thu, 26 Oct 2023 14:18:56 -0400 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 1qw4vv-0006KU-Fo; Thu, 26 Oct 2023 14:18:15 -0400 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=HtWjvBlfY/Cmu/gVOzguBeiQDyR31eYXG3thIwdKVHo=; b=GLhHjAbHDciaYuLoJEfK 25aP4FB4/bRCugWcjFZoh+Ch2fU0InjSW+ganu2PRlQIqVIqjTnq2iiTkU+Z4lT5hAz4rsp3sua2O mfTo9PT7P0L2XWz8q52UbhO/qQNVoO39V154aDN2SElJk0UJeR+weqdwl3nIpPE/iWLTBKTpmd8Fh Jm0Z/Xy8JPW9QBpf0VfHZsgC+tYRNUVW8niDtkPdKtY+bwRsTqHnS4RyWMSc/jG477QsfAD+Vv4Fp 30Z/Et15mL9RTYKqDbVBG5Zv+oSwHDnIP9vAt6FgMjDBhtPRY+2qfIAXba3/4de4Kpz1carEBQGHT jVA2fmGTSUSVpA==; In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Thu, 26 Oct 2023 18:32:23 +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:273308 Archived-At: > From: Gerd Möllmann > Cc: yantar92@posteo.net, 66744@debbugs.gnu.org > Date: Thu, 26 Oct 2023 18:32:23 +0200 > > Eli Zaretskii writes: > > >> Cc: 66744@debbugs.gnu.org > >> From: Gerd Möllmann > >> Date: Thu, 26 Oct 2023 17:45:49 +0200 > >> > >> The linux man page for mmap says, according to Google, > >> > >> MAP_PRIVATE > >> ... > >> It is unspecified whether changes made to the file > >> after the mmap() call are visible in the mapped region. > >> > >> So, if the changes made to the dump file in step 3 are visible in the > >> mmaped dump file that Emacs from step 2 uses, that would be a bit > >> suboptimal :-). > > > > Emacs on GNU/Linux doesn't use mmap, we stopped doing this many years > > ago. > > Ok, but I must admit that I don't see how that is done in pdumper.c. Then maybe I don't understand what bothers you. What are the "changes made to the dump file in step 3" to which you allude? AFRAIU, step 3 simply loads the dump file, it doesn't change the file. What did I miss?