Subject: bug#28268: 26.0.50; (MS Windows) crash on C-g after closing Git GUI

From: Richard Copley <[email-masked]>
Date: Tue, 29 Aug 2017 19:15:06 +0100

On 29 August 2017 at 18:33, Eli Zaretskii <[email-masked]> wrote:
>> Date: Tue, 29 Aug 2017 20:25:52 +0300
>> From: Eli Zaretskii <[email-masked]>
>> Cc: [email-masked], [email-masked]
>>
>> git-gui.exe is a GUI program, so it releases the shell and the shell
>> exits
>
> Correction: git-gui.exe launches wish and exits.

Rebuilt Emacs from (Eli's fix)~1:

;; Git cmd/bash
git clean -xfd
git reset --hard b65cb981cc

;; Mingw64 bash
./autogen.sh
./configure --config-cache "CFLAGS=-O0 -g3 -ggdb"
make -j17 ;; I love this machine!

gdb --quiet -ex run --args src/emacs.exe -Q -eval \
"(start-process \"git gui\" \"*git gui*\" \
\"C:\\\\Program Files\\\\Git\\\\cmd\\\\Git-GUI.exe\")"

;; Close Git GUI, or not, doesn't matter

;; In Emacs
C-g ;; Repeat until the abort

;; In GDB in mingw64 bash
thread apply all
thread apply all bt full

The output is attached. Apparently the GDB crash happens if
you run GDB from the Windows (7 or 10) command prompt and
not if you run it from msys bash.