Subject: Re: bug#55047: Bug: Abort Dialog upon start

From: hermit sings <[email-masked]>
Date: Sun, 1 May 2022 10:53:09 +0000 (UTC)

Ok, here are the messages in .txt file until the initial frame showed up.
    On Sunday, 1 May, 2022, 04:09:09 pm IST, Eli Zaretskii <[email-masked]> wrote:  
 
 > Date: Sun, 1 May 2022 10:13:38 +0000 (UTC)
> From: hermit sings <[email-masked]>
> Cc: "[email-masked]" <[email-masked]>, 
>     "[email-masked]" <[email-masked]>
> 
> Ok, I ran it via GDB but it does not show the previous error which occurs while running normally in
> Windows.
> In fact, I had to exit Emacs with C-x C-c because GDB prompt was not available while Emacs was running.
> After closing, it shows `process exited normally`. Also, the Abort dialog did not appear while running under
> GDB in MSYS2.

This becomes more and more strange.  And the warning messages shown by
GDB about a missing DLL are also not a good sign.

Try this:

  gdb "C:\Program Files\Emacs\emacs-28.1\bin\emacs.exe"
  ...
  (gdb) set debugevents
  (gdb) run

Then post here everything GDB prints while Emacs starts up (until it
shows the initial frame) -- there should be a lot of messages about
loading DLLs.  Maybe that will tell us something.