bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#69795: 29.1; cmdproxy.exe exits automatically after executing MSYS2


From: Eli Zaretskii
Subject: bug#69795: 29.1; cmdproxy.exe exits automatically after executing MSYS2 commands
Date: Sat, 16 Mar 2024 19:34:54 +0200

> From: awrhygty@outlook.com
> Cc: 69795@debbugs.gnu.org
> Date: Sat, 16 Mar 2024 22:14:49 +0900
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >
> > Please show the value of PATH after "set PATH" above.  Like this:
> >
> >   c:\tmp>set PATH
> 
> Before setting PATH, the value is:
>   
> C:\ImageMagick;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\user\AppData\Local\Programs\Python\Python310\Scripts\;C:\Users\user\AppData\Local\Programs\Python\Python310\;C:\Users\user\AppData\Local\Microsoft\WindowsApps;
> Then removing directories other than C:\WINDOWS or descendants:
>   
> C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;

I don't understand what you mean by "removing directories other than
C:\WINDOWS or descendants".  Why do they need to be removed?  And how
did you remove them?

> Here is a log with the PATH value above.
> 
> Microsoft Windows [Version 10.0.19045.4170]
> (c) Microsoft Corporation. All rights reserved.
> 
> c:\tmp>set 
> PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;
> set 
> PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;

Why are you changing the system PATH?

> c:\tmp>set PATH=c:\msys64\mingw64\bin\;c:\msys64\usr\bin\;%PATH%
> set PATH=c:\msys64\mingw64\bin\;c:\msys64\usr\bin\;%PATH%
> 
> c:\tmp>set PATH
> set PATH
> PATH=c:\msys64\mingw64\bin\;c:\msys64\usr\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;
> PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
> 
> c:\tmp>c:\msys64\mingw64\bin\gdb.exe
> c:\msys64\mingw64\bin\gdb.exe
> GNU gdb (GDB) 13.2
> Copyright (C) 2023 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
> Type "show copying" and "show warranty" for details.
> This GDB was configured as "x86_64-w64-mingw32".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <https://www.gnu.org/software/gdb/bugs/>.
> Find the GDB manual and other documentation resources online at:
>     <http://www.gnu.org/software/gdb/documentation/>.
> 
> For help, type "help".
> Type "apropos word" to search for commands related to "word".
> (gdb) q
> 
> c:\tmp>
> Process shell finished

What happens if you change PATH to include the two addition
directories, c:\msys64\mingw64\bin\ and c:\msys64\usr\bin, before you
start Emacs, and then run GDB from the shell buffer without changing
PATH inside the shell buffer?

Please also show the contents of these two directories you add to
PATH.  Maybe the reason for this is something in those directories.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]