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: Thu, 09 Sep 2021 19:24:43 +0300 Message-ID: <83wnnpk984.fsf@gnu.org> References: <871r60v9i0.fsf.ref@yahoo.com> <871r60v9i0.fsf@yahoo.com> <83eea0pkdz.fsf@gnu.org> <87y287nsz5.fsf@yahoo.com> <83pmtjmc6e.fsf@gnu.org> <87bl52npea.fsf@yahoo.com> <87sfyem17q.fsf@yahoo.com> <8335qekllx.fsf@gnu.org> <87bl51ncq6.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35989"; 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 Thu Sep 09 18:25:14 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 1mOMrR-0009E8-SN for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Sep 2021 18:25:13 +0200 Original-Received: from localhost ([::1]:54466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOMrQ-000665-9h for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Sep 2021 12:25:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOMrG-00065m-Tt for bug-gnu-emacs@gnu.org; Thu, 09 Sep 2021 12:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52759) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mOMrG-0005ej-ML for bug-gnu-emacs@gnu.org; Thu, 09 Sep 2021 12:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mOMrG-00052r-7o for bug-gnu-emacs@gnu.org; Thu, 09 Sep 2021 12:25: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, 09 Sep 2021 16:25: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.163120467919350 (code B ref 50453); Thu, 09 Sep 2021 16:25:02 +0000 Original-Received: (at 50453) by debbugs.gnu.org; 9 Sep 2021 16:24:39 +0000 Original-Received: from localhost ([127.0.0.1]:36072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOMqt-000522-0T for submit@debbugs.gnu.org; Thu, 09 Sep 2021 12:24:39 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38086) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOMqr-00051k-25 for 50453@debbugs.gnu.org; Thu, 09 Sep 2021 12:24:37 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37742) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOMql-0005DQ-Rd; Thu, 09 Sep 2021 12:24:31 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1776 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 1mOMql-0007ZD-Ce; Thu, 09 Sep 2021 12:24:31 -0400 In-Reply-To: <87bl51ncq6.fsf@yahoo.com> (message from Po Lu on Thu, 09 Sep 2021 20:40:49 +0800) 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:213924 Archived-At: > From: Po Lu > Cc: 50453@debbugs.gnu.org > Date: Thu, 09 Sep 2021 20:40:49 +0800 > > Eli Zaretskii writes: > > > Can you put a breakpoint in dump_map_file_w32 and verify that it is > > called? If it is indeed called, can you step through it and see if it > > fails, and if so, how? > > I tried a few times, but I gave up because Windows kept crashing. > > However, the portable dumper seems to rely on a function named > `MapViewOfFileEx' at line 4499 of pdumper.c. > > According to the documentation, the function is only available on > Windows XP or later; this seems to be a convincing explanation for the > failure. The current MS documentation is "inaccurate", to say the least: they consistently removed from it any references to versions of Windows before Windows 2000/XP. I use this instead: http://winapi.freetechsecrets.com/win32/WIN32MapViewOfFileEx.htm and it says this is available on Windows 9X, but there's a special requirement regarding the flags, and I see that we don't fulfill that requirement. But I don't know how to proceed from here: you are probably unable to build Emacs for Windows 98, and I don't know how else to ask you to try some modifications of the current code. Any ideas? > Specifically, I'm referring to the "Requirements" section of: > https://docs.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-mapviewoffileex, > which states: > > Minimum supported client: Windows XP [desktop apps only] That's a lie.