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

From: Simen Endsjø <[email-masked]>
Date: Mon, 20 May 2024 22:28:11 +0200

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 ?? ()

On Mon, May 20, 2024 at 9:22 PM Eli Zaretskii <[email-masked]> wrote:
>
> > Cc: [email-masked], [email-masked]
> > Date: Mon, 20 May 2024 22:00:11 +0300
> > From: Eli Zaretskii <[email-masked]>
> >
> > > From: Simen Endsjø <[email-masked]>
> > > Date: Mon, 20 May 2024 20:41:58 +0200
> > > Cc: [email-masked], [email-masked]
> > >
> > > Doesn't look very fruitful
> >
> > Another idea eats dust...
>
> Here's another semi-desperate idea: maybe some DLL that is loaded just
> before the crash is the culprit.  So please say
>
>   (gdb) catch load
>   Catchpoint 2 (load)
>   (gdb) commands
>   Type commands for breakpoint(s) 2, one per line.
>   End with a line saying just "end".
>   >continue
>   >end
>   (gdb)
>
> Then run Emacs as usual -- it will show every DLL it loads in the
> console window from which you run GDB.  When it crashes, please tell
> what were the last few DLLs Emacs loaded.
>
> Thanks.