From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Casey Banner Newsgroups: gmane.emacs.bugs Subject: bug#73159: Date: Tue, 10 Sep 2024 01:50:43 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f4e8930621bd740e" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5553"; mail-complaints-to="usenet@ciao.gmane.io" To: 73159@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 10 07:53:10 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 1sntoK-0001JJ-TA for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Sep 2024 07:53:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sntoB-0004dR-TN; Tue, 10 Sep 2024 01:52:59 -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 1sntoA-0004dD-0O for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2024 01:52:58 -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 1snto9-0000dX-L1 for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2024 01:52:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:MIME-Version:To:In-Reply-To:References:Subject; bh=UCRdrY++KVeOpTxtg7MMuqdm9yEMkZvtYP8q92NwKNw=; b=twS8PaNxhVCMjA+az/O3NCEyMkswKYhwg+I2yNB2I8QWgUKEWdP4KQmLfxGhGcA8Cp+X+Amu8IYXma3515loN8VM9ttW8V4EJYnmF4on8knAnHPt5sMtlWYb9rc8bcMYxfbE5wnlyDrb53xsr3D7tdyaP4ROxu7c6jBuFisW9AL7vLs6CO/8+MwVDd2XqqHduzCl4LljxnsCYVtyoM+zSXF1nIrud1inqt3v5YJnTz9nQ6VZopV/s3MyGTpx3O223rmsOTMyFhcYtusb6titwMHZp0HzyxUB//j4SYyj19P95U/dULN+l/GpclZZPKmFU8Z//ly6EXbj0vEnh8J4fA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sntoE-0005zL-4U for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2024 01:53:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Casey Banner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Sep 2024 05:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73159 X-GNU-PR-Package: emacs Original-Received: via spool by 73159-submit@debbugs.gnu.org id=B73159.172594752822957 (code B ref 73159); Tue, 10 Sep 2024 05:53:02 +0000 Original-Received: (at 73159) by debbugs.gnu.org; 10 Sep 2024 05:52:08 +0000 Original-Received: from localhost ([127.0.0.1]:34666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sntnL-0005yD-RO for submit@debbugs.gnu.org; Tue, 10 Sep 2024 01:52:08 -0400 Original-Received: from mail-pf1-f171.google.com ([209.85.210.171]:45291) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sntnJ-0005xi-UK for 73159@debbugs.gnu.org; Tue, 10 Sep 2024 01:52:06 -0400 Original-Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-717934728adso3727771b3a.2 for <73159@debbugs.gnu.org>; Mon, 09 Sep 2024 22:52:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725947455; x=1726552255; darn=debbugs.gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=UCRdrY++KVeOpTxtg7MMuqdm9yEMkZvtYP8q92NwKNw=; b=gykquNk139HLn+hFWwmnmuJhsH7yxzlYci5tmtDkaDHAPcFfuNm3TZ/LXG+gILRnsx Ww23NmbGdQFN9YVhBsAq76h2WPdm5vNpfe/8h/W7Jl+DEl9LPqgoeitJcx5dwKus5oB7 FkV0D1C844XSLgg5VO3VALDKNbYlZoytVtyx5QteF9FP7DBYAJP5UHCC/nO4hm60b9P+ HAVH9gKFYChyH0h5hMG95ELl2qoKcG59w2wCaQyuuW633XriKeAFHGq7ZNL0g+pJkh3a qR0UHkcZRm3a8Yk8PC/5bklV9/Vu12ONTl5eTm7NGToBfcrbEJhWfbqupGgNQLq7XFcN qHNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725947455; x=1726552255; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=UCRdrY++KVeOpTxtg7MMuqdm9yEMkZvtYP8q92NwKNw=; b=iCT9y8k0X+fyIRfl/lExxqdYNFi6maWV+LLXZTjNoVMIr8G2AF3fpkI+JfPH035bt2 mZosKnPSoVwEllWL1Nw+AMEF6mFmk1Hu0V9Wua/R39DbDUU470aX6n1mgvVkrfv+j6A1 e/1fIWSzTzLn1DzssS/vkLQblDQ5P/YL0JbK3ni7Hf/R9Bc8jzmDnhscG/KAc6s/2UCm pIFAsggypziMGPY6FrZsHnIcAdf5AqG3Yc6xHTk3kzcfjZLz4p3JK7d/WSMkMT+mShQ9 Oz0nn7KKlqVSz7Aid/1Qi70677QOt4JGrgBDHrA3YfO7Sh396J2QS/Lf2Hkg2r1s8O9w EQKA== X-Gm-Message-State: AOJu0YzGZN5q0fG4vjsoqPDEOFf9YpGSJDusLvBdoW8671c3MEAAUGCx 3Bj7+YZ9viYt28ppiPM+uGg34RXiBpvrzEMpQb8zM/u7BTvQTsLleJ6ZQVUKvs6YhMCdU4h+47T LVLO6uCFstEI3Ke+KOEof7JO4RffgIiXr X-Google-Smtp-Source: AGHT+IGf0Fc7dN2dAGBdHXF/MngNHVJKa5cFWre8WyyN/zYIzxmCCXaLB0eGmO1AA00L2mAd17ZJfT7uZGrYENfwWIY= X-Received: by 2002:a05:6a00:2d90:b0:717:8ece:2f8b with SMTP id d2e1a72fcca58-718e3fe6a8bmr15488758b3a.17.1725947455003; Mon, 09 Sep 2024 22:50:55 -0700 (PDT) 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:291539 Archived-At: --000000000000f4e8930621bd740e Content-Type: text/plain; charset="UTF-8" This actually seems to be caused by the pdmp failing to load. `make install` installs the pdmp file as `EMACS_PDMP = `./src/emacs${EXEEXT} --fingerprint`.pdmp`. However, this is not the filename that emacs tries to load - it attempts to load it from the wrong directory, which fails. That seems to be why `initialized` is false, and why uniscribe / harfbuzz is not loaded. If I rename the emacs-.pdmp file to emacs.pdmp, and place it next to emacs.exe everything works as expected (and emacs loads a lot faster!). I did a procmon dump to see what .pdmp files emacs.exe is trying to load, and it attempts these locations: - E:\dev\emacs-src\bin\emacs.pdmp - E:\dev\emacs-src\libexec\emacs\30.0.50\x86_64-w64-mingw32\emacs-ef314e5e05618ae9e98f9cccc0769b2adce721d1b3bac00e305e61b4d457b0a4.pdmp - E:\dev\emacs-src\libexec\emacs\30.0.50\x86_64-w64-mingw32\emacs.pdmp The thing is, the emacs version is 30.0.90, not 30.0.50. A strings dump of emacs.exe: strings emacs.exe | grep 30.0 %emacs_dir%/libexec/emacs/30.0.50/x86_64-w64-mingw32 $Id: GNU Emacs 30.0.90 (x86_64-w64-mingw32 ACL GIF GMP GNUTLS HARFBUZZ JPEG LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB) $ 30.0.90 %emacs_dir%/share/emacs/30.0.90/lisp %emacs_dir%/share/emacs/30.0.90/site-lisp;%emacs_dir%/share/emacs/site-lisp /30.0.90/lisp/ %emacs_dir%/share/emacs/30.0.90/etc %emacs_dir%/libexec/emacs/30.0.90/x86_64-w64-mingw32 %emacs_dir%/libexec/emacs/30.0.50/x86_64-w64-mingw32 So it seems something is going wrong with setting the path. I noticed that exec/configure.ac has: AC_INIT([libexec], [30.0.50], [bug-gnu-emacs@gnu.org], [], [https://www.gnu.org/software/emacs/]) I tried changing this to 30.0.90 and re-building (using make bootstrap), but the resulting binary still has 30.0.50 in it. --000000000000f4e8930621bd740e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This actually seems to be caused by the pdmp failing = to load.

`make install` installs the pdmp file as = `EMACS_PDMP =3D `./src/emacs${EXEEXT} --fingerprint`.pdmp`. However, this i= s not the filename that emacs tries to load - it attempts to load it from t= he wrong directory, which fails.

That seems to= be why `initialized` is false, and why uniscribe / harfbuzz is not loaded.= If I rename the emacs-<fingerprint>.pdmp file to emacs.pdmp, and pla= ce it next to emacs.exe everything works as expected (and emacs loads a lot= faster!).

I did a procmon dump to see what .pdmp = files emacs.exe is trying to load, and it attempts these locations:

- E:\dev\emacs-src\bin\emacs.pdmp
- E:\dev\emac= s-src\libexec\emacs\30.0.50\x86_64-w64-mingw32\emacs-ef314e5e05618ae9e98f9c= ccc0769b2adce721d1b3bac00e305e61b4d457b0a4.pdmp
- E:\dev\emacs-sr= c\libexec\emacs\30.0.50\x86_64-w64-mingw32\emacs.pdmp

<= div>The thing is, the emacs version is 30.0.90, not 30.0.50.

=
A strings dump of emacs.exe:

strings em= acs.exe | grep 30.0
%emacs_dir%/libexec/emacs/30.0.50/x86_64-w64-mingw32=
$Id: GNU Emacs 30.0.90 (x86_64-w64-mingw32 ACL GIF GMP GNUTLS HARFBUZZ = JPEG LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SO= UND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB) $30.0.90
%emacs_dir%/share/emacs/30.0.90/lisp
%emacs_dir%/share/emac= s/30.0.90/site-lisp;%emacs_dir%/share/emacs/site-lisp
/30.0.90/lisp/
= %emacs_dir%/share/emacs/30.0.90/etc
%emacs_dir%/libexec/emacs/30.0.90/x8= 6_64-w64-mingw32
%emacs_dir%/libexec/emacs/30.0.50/x86_64-w64-mingw32

So it seems something is going wrong with setting th= e path. I noticed that exec/configure.ac has:


I tried changing this to 30.0.90 and r= e-building (using make bootstrap), but the resulting binary still has 30.0.= 50 in it.




--000000000000f4e8930621bd740e--