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#50453: 27.2; Portable dumper broken on MSW Date: Tue, 07 Sep 2021 16:47:52 +0300 Message-ID: <83eea0pkdz.fsf@gnu.org> References: <871r60v9i0.fsf.ref@yahoo.com> <871r60v9i0.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34378"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50453@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 07 15:48:36 2021 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 1mNbSm-0008md-FF for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Sep 2021 15:48:36 +0200 Original-Received: from localhost ([::1]:36362 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNbSl-0006LV-C1 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Sep 2021 09:48:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNbSE-0006JM-RZ for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 09:48:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44104) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mNbSE-0006RT-IK for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 09:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mNbSE-0003kn-CP for bug-gnu-emacs@gnu.org; Tue, 07 Sep 2021 09:48: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: Tue, 07 Sep 2021 13:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50453 X-GNU-PR-Package: emacs Original-Received: via spool by 50453-submit@debbugs.gnu.org id=B50453.163102247314406 (code B ref 50453); Tue, 07 Sep 2021 13:48:02 +0000 Original-Received: (at 50453) by debbugs.gnu.org; 7 Sep 2021 13:47:53 +0000 Original-Received: from localhost ([127.0.0.1]:55650 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNbS4-0003kI-Nd for submit@debbugs.gnu.org; Tue, 07 Sep 2021 09:47:52 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNbS3-0003k3-Q7 for 50453@debbugs.gnu.org; Tue, 07 Sep 2021 09:47:52 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49702) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNbRy-0006HK-D9; Tue, 07 Sep 2021 09:47:46 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4219 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNbRx-0005uL-VS; Tue, 07 Sep 2021 09:47:46 -0400 In-Reply-To: <871r60v9i0.fsf@yahoo.com> (bug-gnu-emacs@gnu.org) 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" Xref: news.gmane.io gmane.emacs.bugs:213687 Archived-At: > Date: Tue, 07 Sep 2021 20:46:31 +0800 > From: Po Lu via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Having recently had an opportunity to update the Emacs installed on some > machines previously running 24.5, I noticed that Emacs 27.2 doesn't seem > to load portable dumps, and instead fails with an out-of-memory error, > the precise error message being: > > emacs: could not load dump file > "C:\PROGRAM FILES\EMACS\I686\libexec/emacs/27.2/i686-w64-mingw32/emacs.pdmp": out of memory. > > Emacs operates normally if the portable dump file is removed, or when > using unexec dumping. How do you mean "operates normally if the portable dump file is removed"? Without a pdmp file, Emacs should load all the preloaded Lisp files when it starts up, which is definitely not something I'd call "normal". Don't you see a long series of "Loading foo..." messages when Emacs starts without a pdmp file? > Admittedly, the machine is a Pentium 4 with 768 megabytes of memory (and > what would you expect from a PC used to operate legacy software), but I > see no reason loading pdumps should require more than that, as the > previous dumper worked just fine. First, the important figure is how much of the 768MB is free when Emacs loads. And second, you are using Emacs on Windows 9X, something that a few people do, so perhaps we have some bug related to that version of Windows. If you can run Emacs under GDB, please step through pdumper_load and tell where it bails out. "Out of memory" is its default error, so maybe the actual problem is something else, and we just mis-diagnose it. One possible issue could be with the way we read the pdumper file as a memory-mapped file: perhaps something there doesn't work on Windows 9X. Thanks.