Subject: bug#70914: 29.3; Crashes often on Windows

From: Simen Endsjø <[email-masked]>
Date: Tue, 21 May 2024 19:39:13 +0200

> Could you please show the last few
> DLLs loaded by thread 1?

Heres only Thread 1:

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\System32\imm32.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\cryptbase.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\System32\bcryptprimitives.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\system32\uxtheme.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\cryptsp.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\system32\rsaenh.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\windows.storage.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\WinTypes.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\dwmapi.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libharfbuzz-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libstdc++-6.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x33fc]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libgraphite2.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x388c]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libbz2-1.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1e3c]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libpcre2-8-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1e3c]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\System32\msctf.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [New Thread 12316.0x6e08]
    [New Thread 12316.0x3d58]
    [Switching to Thread 12316.0x3d58]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libXpm-noX4.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [New Thread 12316.0x766c]
    [Thread 12316.0x766c exited with code 1]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libgnutls-30.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\System32\crypt32.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\ncrypt.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1e3c]

    Thread 4 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libhogweed-6.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1d58]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libp11-kit-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x388c]

    Thread 3 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libnettle-8.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x33fc]

    Thread 2 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libidn2-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 2 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libffi-8.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1e3c]

    Thread 4 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libtasn1-6.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1d58]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libunistring-5.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\ntasn1.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [New Thread 12316.0x52d0]
    [Thread 12316.0x52d0 exited with code 1]
    [New Thread 12316.0x695c]
    [Thread 12316.0x695c exited with code 1]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libxml2-2.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\liblzma-5.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [New Thread 12316.0x65a8]
    [Thread 12316.0x65a8 exited with code 1]
    [New Thread 12316.0x6e50]
    [Thread 12316.0x6e50 exited with code 1]

    Thread 1 hit Catchpoint 1
      Inferior loaded
C:\WINDOWS\WinSxS\amd64_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.22621.3527_none_57f93980ce19a444\GdiPlus.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [New Thread 12316.0x797c]
    [New Thread 12316.0x4e8c]
    [Thread 12316.0x4e8c exited with code 1]
    [New Thread 12316.0x74e0]
    [Thread 12316.0x74e0 exited with code 1]
    [New Thread 12316.0x3fbc]
    [Thread 12316.0x3fbc exited with code 1]
    [New Thread 12316.0x506c]
    [Thread 12316.0x506c exited with code 1]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libgobject-2.0-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libgio-2.0-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x33fc]

    Thread 2 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\dnsapi.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x388c]

    Thread 3 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1e3c]

    Thread 4 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libgmodule-2.0-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1d58]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\System32\nsi.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [New Thread 12316.0x143c]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libgdk_pixbuf-2.0-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\librsvg-2-2.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x33fc]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libpangocairo-1.0-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x388c]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libfribidi-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x388c]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libpangowin32-1.0-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1e3c]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\System32\psapi.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x143c]

-------------------------------------------------------------------------------

End here's the entire output in case you need more information:

    Reading symbols from
D:\tmp\emacs-bug-70914\emacs-extra-checks-no-ucrt\simendsjo-build\bin\emacs.exe...
    (gdb) catch load
    Catchpoint 1 (load)
    (gdb) commands
    Type commands for breakpoint(s) 1, one per line.
    End with a line saying just "end".
    >continue
    >end
    (gdb) run --init-directory=d:/.emacs.d
    Starting program:
D:\tmp\emacs-bug-70914\emacs-extra-checks-no-ucrt\simendsjo-build\bin\emacs.exe
--init-directory=d:/.emacs.d
    [New Thread 12316.0x33fc]
    [New Thread 12316.0x388c]
    [New Thread 12316.0x1e3c]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\System32\imm32.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\cryptbase.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\System32\bcryptprimitives.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\system32\uxtheme.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\cryptsp.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\system32\rsaenh.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\windows.storage.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\WinTypes.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\dwmapi.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libharfbuzz-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libstdc++-6.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x33fc]

    Thread 2 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libglib-2.0-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x388c]

    Thread 3 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libfreetype-6.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1e3c]

    Thread 4 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libgcc_s_seh-1.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x33fc]

    Thread 2 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\System32\ws2_32.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1d58]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libgraphite2.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x388c]

    Thread 3 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libintl-8.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x33fc]

    Thread 2 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libintl-8.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1d58]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libbz2-1.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1e3c]

    Thread 4 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libbrotlidec.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x388c]

    Thread 3 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libpng16-16.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x33fc]

    Thread 2 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\zlib1.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1d58]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libpcre2-8-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1e3c]

    Thread 4 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libiconv-2.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x388c]

    Thread 3 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libbrotlicommon.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1d58]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\System32\msctf.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [New Thread 12316.0x6e08]
    [New Thread 12316.0x3d58]
    [Switching to Thread 12316.0x3d58]

    Thread 6 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\kernel.appcore.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 6 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\TextInputFramework.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 6 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\System32\oleaut32.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 6 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\CoreMessaging.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 6 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\CoreUIComponents.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1d58]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libXpm-noX4.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [New Thread 12316.0x766c]
    [Thread 12316.0x766c exited with code 1]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libgnutls-30.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\System32\crypt32.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\ncrypt.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1e3c]

    Thread 4 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libhogweed-6.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1d58]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libp11-kit-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x388c]

    Thread 3 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libnettle-8.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x33fc]

    Thread 2 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libidn2-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 2 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libffi-8.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1e3c]

    Thread 4 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libtasn1-6.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1d58]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libunistring-5.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\ntasn1.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [New Thread 12316.0x52d0]
    [Thread 12316.0x52d0 exited with code 1]
    [New Thread 12316.0x695c]
    [Thread 12316.0x695c exited with code 1]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libxml2-2.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\liblzma-5.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [New Thread 12316.0x65a8]
    [Thread 12316.0x65a8 exited with code 1]
    [New Thread 12316.0x6e50]
    [Thread 12316.0x6e50 exited with code 1]

    Thread 1 hit Catchpoint 1
      Inferior loaded
C:\WINDOWS\WinSxS\amd64_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.22621.3527_none_57f93980ce19a444\GdiPlus.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [New Thread 12316.0x797c]
    [New Thread 12316.0x4e8c]
    [Thread 12316.0x4e8c exited with code 1]
    [New Thread 12316.0x74e0]
    [Thread 12316.0x74e0 exited with code 1]
    [New Thread 12316.0x3fbc]
    [Thread 12316.0x3fbc exited with code 1]
    [New Thread 12316.0x506c]
    [Thread 12316.0x506c exited with code 1]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libgobject-2.0-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libgio-2.0-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x33fc]

    Thread 2 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\dnsapi.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x388c]

    Thread 3 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1e3c]

    Thread 4 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libgmodule-2.0-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1d58]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\System32\nsi.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [New Thread 12316.0x143c]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libgdk_pixbuf-2.0-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\librsvg-2-2.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x33fc]

    Thread 2 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libcairo-2.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x388c]

    Thread 3 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libcairo-gobject-2.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1e3c]

    Thread 4 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libpango-1.0-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1d58]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libpangocairo-1.0-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x388c]

    Thread 3 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\msimg32.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x33fc]

    Thread 2 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\userenv.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1e3c]

    Thread 4 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libfontconfig-1.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x33fc]

    Thread 2 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libthai-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1d58]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libfribidi-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x388c]

    Thread 3 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libpixman-1-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1e3c]

    Thread 4 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libexpat-1.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x388c]

    Thread 3 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libpangoft2-1.0-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1d58]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libpangowin32-1.0-0.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1e3c]

    Thread 4 hit Catchpoint 1
      Inferior loaded C:\msys64\mingw64\bin\libdatrie-1.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x33fc]

    Thread 2 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\DWrite.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x1d58]

    Thread 1 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\System32\psapi.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x143c]

    Thread 17 "pool" hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\xmllite.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 17 "pool" hit Catchpoint 1
      Inferior loaded C:\WINDOWS\System32\clbcatq.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 17 "pool" hit Catchpoint 1
      Inferior loaded C:\Windows\System32\AppXDeploymentClient.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 17 "pool" hit Catchpoint 1
      Inferior loaded C:\Windows\System32\Windows.ApplicationModel.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [New Thread 12316.0x6ee8]
    [New Thread 12316.0x3990]
    [New Thread 12316.0xb88]

    Thread 17 "pool" hit Catchpoint 1
      Inferior loaded C:\Windows\System32\Windows.StateRepositoryPS.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 17 "pool" hit Catchpoint 1
      Inferior loaded C:\Windows\System32\Windows.StateRepositoryBroker.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 17 "pool" hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\MrmCoreR.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 17 "pool" hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\iertutil.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 17 "pool" hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\Windows.StateRepositoryCore.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 17 "pool" hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\profapi.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 17 "pool" hit Catchpoint 1
      Inferior loaded C:\Windows\System32\Windows.UI.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 17 "pool" hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\BCP47mrm.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x3990]

    Thread 19 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\cfgmgr32.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [Switching to Thread 12316.0x143c]

    Thread 17 "pool" hit Catchpoint 1
      Inferior loaded C:\Windows\System32\Windows.FileExplorer.Common.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 17 "pool" hit Catchpoint 1
      Inferior loaded C:\WINDOWS\system32\propsys.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 17 "pool" hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\apphelp.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 17 "pool" hit Catchpoint 1
      Inferior loaded C:\WINDOWS\system32\networkexplorer.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [New Thread 12316.0x6c7c]
    [Switching to Thread 12316.0x6c7c]

    Thread 21 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\system32\mssprxy.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll

    Thread 21 hit Catchpoint 1
      Inferior loaded C:\WINDOWS\SYSTEM32\Windows.StateRepositoryClient.dll
    0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
C:\WINDOWS\SYSTEM32\ntdll.dll
    [New Thread 12316.0x4634]
    [Thread 12316.0x4634 exited with code 1]
    [New Thread 12316.0x204]
    [Thread 12316.0x204 exited with code 1]
    [New Thread 12316.0x45e0]
    [Thread 12316.0x45e0 exited with code 1]
    [New Thread 12316.0x58b4]
    [Thread 12316.0x58b4 exited with code 1]

    Thread 1 received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 12316.0x1d58]
    0

On Tue, May 21, 2024 at 4:06 PM Eli Zaretskii <[email-masked]> wrote:
>
> > From: Simen Endsjø <[email-masked]>
> > Date: Mon, 20 May 2024 22:28:11 +0200
> > Cc: [email-masked], [email-masked]
> >
> > Not sure if I understood your instructions as my output is somewhat different
> >
> >     Reading symbols from
> > D:\tmp\emacs-bug-70914\emacs-extra-checks-no-ucrt\simendsjo-build\bin\emacs.exe...
> >     (gdb) catch load
> >     Catchpoint 1 (load)
> >     (gdb) commands
> >     Type commands for breakpoint(s) 1, one per line.
> >     End with a line saying just "end".
> >     >continue
> >     >end
> >     (gdb) run --init-directory=d:/.emacs.d
> >     Starting program:
> > D:\tmp\emacs-bug-70914\emacs-extra-checks-no-ucrt\simendsjo-build\bin\emacs.exe
> > --init-directory=d:/.emacs.d
> >
> > (.. snip ..)
> >
> >     Thread 19 "pool" hit Catchpoint 1
> >       Inferior loaded C:\Windows\System32\Windows.FileExplorer.Common.dll
> >     0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
> > C:\WINDOWS\SYSTEM32\ntdll.dll
> >
> >     Thread 19 "pool" hit Catchpoint 1
> >       Inferior loaded C:\WINDOWS\system32\propsys.dll
> >     0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
> > C:\WINDOWS\SYSTEM32\ntdll.dll
> >
> >     Thread 19 "pool" hit Catchpoint 1
> >       Inferior loaded C:\WINDOWS\SYSTEM32\apphelp.dll
> >     0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
> > C:\WINDOWS\SYSTEM32\ntdll.dll
> >
> >     Thread 19 "pool" hit Catchpoint 1
> >       Inferior loaded C:\WINDOWS\system32\networkexplorer.dll
> >     0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
> > C:\WINDOWS\SYSTEM32\ntdll.dll
> >     [New Thread 10032.0x6d40]
> >     [Switching to Thread 10032.0x6d40]
> >
> >     Thread 21 hit Catchpoint 1
> >       Inferior loaded C:\WINDOWS\system32\mssprxy.dll
> >     0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
> > C:\WINDOWS\SYSTEM32\ntdll.dll
> >
> >     Thread 21 hit Catchpoint 1
> >       Inferior loaded C:\WINDOWS\SYSTEM32\Windows.StateRepositoryClient.dll
> >     0x00007fffef7cfe54 in ntdll!ZwMapViewOfSection () from
> > C:\WINDOWS\SYSTEM32\ntdll.dll
> >     [New Thread 10032.0x619c]
> >     [Thread 10032.0x619c exited with code 1]
> >     [New Thread 10032.0x7688]
> >     [Thread 10032.0x7688 exited with code 1]
> >     [New Thread 10032.0x30f0]
> >     [Thread 10032.0x30f0 exited with code 1]
> >     [New Thread 10032.0x5538]
> >     [Thread 10032.0x5538 exited with code 1]
> >
> >     Thread 1 received signal SIGSEGV, Segmentation fault.
> >     [Switching to Thread 10032.0xb08]
> >     0x0000000000000000 in ?? ()
>
> Thanks.  But these are all loaded by threads other than thread 1,
> which is the Emacs's main thread.  Could you please show the last few
> DLLs loaded by thread 1?