GNU bug report logs - #69795
29.1; cmdproxy.exe exits automatically after executing MSYS2 commands

Previous Next

Package: emacs;

Reported by: awrhygty <at> outlook.com

Date: Thu, 14 Mar 2024 11:02:02 UTC

Severity: normal

Tags: notabug

Found in version 29.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: awrhygty <at> outlook.com
Cc: 69795 <at> debbugs.gnu.org
Subject: bug#69795: 29.1; cmdproxy.exe exits automatically after executing MSYS2 commands
Date: Sat, 16 Mar 2024 10:21:14 +0200
> From: awrhygty <at> outlook.com
> Cc: 69795 <at> debbugs.gnu.org
> Date: Sat, 16 Mar 2024 12:52:19 +0900
> 
> > So let's start from the beginning: can you show a recipe, starting
> > from "emacs -Q", where you invoke GDB from Emacs, and cmdproxy (or
> > some other sub-process) exits?
> 
> I found that setting PATH make the difference.
> Start emacs -Q, type 'M-x shell RET',
> and input following command lines.
>   set PATH=c:\msys64\mingw64\bin\;c:\msys64\usr\bin\;%PATH%
>   c:\msys64\mingw64\bin\gdb.exe
>   q
> Then cmdproxy.exe exits automatically.

Please show the value of PATH after "set PATH" above.  Like this:

  c:\tmp>set PATH

(I have a very different MinGW directory tree here, but I tried to do
something equivalent to what you do above, and couldn't reproduce it:
I get placed at the cmd.exe prompt, as expected.)

And once again: it is not cmdproxy that exits, it's cmd.exe.  cmdproxy
will not exit until the process it started, in this case cmd.exe,
exits.

Btw, why do you end each element of PATH with a backslash '\' ?  This
is not required.  (I don't think it's part of your problem, but
still.)




This bug report was last modified 1 year and 65 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.