From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#69795: 29.1; cmdproxy.exe exits automatically after executing MSYS2 commands Date: Sat, 16 Mar 2024 19:34:54 +0200 Message-ID: <86jzm25bcx.fsf@gnu.org> References: <86h6h99hse.fsf@gnu.org> <86bk7gahe2.fsf@gnu.org> <86a5mz8xte.fsf@gnu.org> <86il1m7fk5.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29321"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69795@debbugs.gnu.org To: awrhygty@outlook.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 16 18:37:48 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rlXye-0007TP-Jq for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Mar 2024 18:37:48 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlXyJ-0003GY-HO; Sat, 16 Mar 2024 13:37:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlXyH-0003Ef-DV for bug-gnu-emacs@gnu.org; Sat, 16 Mar 2024 13:37:25 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rlXyH-0008A8-3R for bug-gnu-emacs@gnu.org; Sat, 16 Mar 2024 13:37:25 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rlXyr-0007nk-UZ for bug-gnu-emacs@gnu.org; Sat, 16 Mar 2024 13:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Mar 2024 17:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69795 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 69795-submit@debbugs.gnu.org id=B69795.171061067429970 (code B ref 69795); Sat, 16 Mar 2024 17:38:01 +0000 Original-Received: (at 69795) by debbugs.gnu.org; 16 Mar 2024 17:37:54 +0000 Original-Received: from localhost ([127.0.0.1]:56428 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlXyk-0007nK-BC for submit@debbugs.gnu.org; Sat, 16 Mar 2024 13:37:54 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlXyi-0007n7-At for 69795@debbugs.gnu.org; Sat, 16 Mar 2024 13:37:53 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlXvu-0007os-Tt; Sat, 16 Mar 2024 13:34:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=rr5/eE2zsv2xMGpD4VCP1KiXbSeIX40PM5S0sq/E9bU=; b=mJGWAJvCOLFL +C/UR3+7sCTNJD7SFyf2Olq2rFVEAYlft+E1sg9nFk3ZuhFk2WXDBCggeDP9iaG4KTbNAte7WAPdp UrBMsm8es8T2XJj9TJkkoIo4MwaRAKHb7rkGYS4ah4WPuV1hGG3G4uD4+ebTbT2qSKeTfUeZuaDCQ 9p/cIr0gdfA8+e1mwxBVmv+pKo0BvWoRED16erFeU9c2v+0IDvp2j0po/CE/U+A4SALYI33d9iibp 3l9vlx/wezWQX1Ggaxv2jr6mPfE7iT3FPZVrxviyUuOQOu5De6rvh/zBbDFcJmc34ga1PDPf3GOdy uTxL5nzExBsoZJKpMlF5nA==; In-Reply-To: (awrhygty@outlook.com) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:281731 Archived-At: > From: awrhygty@outlook.com > Cc: 69795@debbugs.gnu.org > Date: Sat, 16 Mar 2024 22:14:49 +0900 > > Eli Zaretskii 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 > 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: > . > Find the GDB manual and other documentation resources online at: > . > > 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.