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

From: Eli Zaretskii <[email-masked]>
Date: Wed, 15 May 2024 15:11:02 +0300

> From: Simen Endsjø <[email-masked]>
> Date: Wed, 15 May 2024 12:53:23 +0200
> Cc: [email-masked]
> 
>     Thread 1 (Thread 9804.0x2ab4):
>     #0  0x00007fffd85dd313 in KERNELBASE!DebugBreak () from
> C:\WINDOWS\System32\KernelBase.dll
>     #1  0x00007ff718565ba8 in emacs_abort ()
>     #2  0x00007ff718436aae in terminate_due_to_signal ()
>     #3  0x00007ff718457a9c in deliver_fatal_thread_signal ()
>     #4  0x00007ff7185cb122 in _gnu_exception_handler
> (exception_data=0xabbdffb9c0) at
> C:/M/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crt_handler.c:223
>     #5  0x00007fffd9f2b248 in msvcrt!__C_specific_handler () from
> C:\WINDOWS\System32\msvcrt.dll
>     #6  0x00007fffdabf49ff in ntdll!.chkstk () from
> C:\WINDOWS\SYSTEM32\ntdll.dll
>     #7  0x00007fffdab6e466 in ntdll!RtlFindCharInUnicodeString () from
> C:\WINDOWS\SYSTEM32\ntdll.dll
>     #8  0x00007fffdabf39ee in ntdll!KiUserExceptionDispatcher () from
> C:\WINDOWS\SYSTEM32\ntdll.dll
>     #9  0x00007ff718494bb3 in rpl_re_compile_pattern ()

These are very strange exceptions: they are not caught by GDB, but by
the top-level handler for unhandled exceptions.

Would you mind running Emacs from GDB after setting this option:

  (gdb) set debugexceptions on

Do this before you type "run" to run Emacs.  Then, when it crashes,
look at the terminal where you started GDB for the last exceptions
printed by GDB, and post that here.

Btw, I see that you are attaching to a running Emacs instead of
starting Emacs from GDB.  Any reason why you do that?