X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 997E63857C4D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1651258805; bh=DyfMFf4eXRi2J9VjFdydhdGJr2Xmaqf9OEwOiRia0vU=; h=Date:To:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=eo2ua8yXqsbC4HsP4k/RrM33Gase4wecbcFtJfiuooFptyaMCAQ9IgeTO7EWSsWqZ Tk8h43LIBJ8T7YAUh0Y64Hv2763lt8/d0b+xfOLrig/Hq1a7XJ/rDCrhMrzRaEljVz p5nSykD4tcyfYIO7yy42rJmzTMbFFqqXhvbPzz+E= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 956573857404 X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1651258749; bh=7+mMv+fx7sTb+S0D07OhfJKJxpN2apwdbFcE96Hs3Jf=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=TZbJWhRHYm0jzS6UfcE2hXaTCeQOW4X5zUXZkR/Uu+Dwl3sjRMtkZuowszM/Vpm1oiNG6N+eLdPub5hQ8ZcXbpLUXxe0anUrStGpN5W5DeXotqgODGsofywoPNOZawrVRsP8XkucbnzOMcI0ttyYLx51h9VfPhsR2cDttAP7Vxh8DAN2odZqve/BkcimDf81L60/yp2PIKpe3C+WXS+rOowEbhOgNFEmGdDktZ1rTeDW3QWWgrWDFJnVjoB0IZxw/jzGVjrn7YaI3HvT6EUtEVnveDuvOfYxWQmqJLEk6OEnfsS4/TVHlhqV358RMSv2Efn9fPDwOr0TVj5ctNy1UQ== X-YMail-OSG: AXvn8o0VM1lDD3BvnAZkEHY5qltmOZCR19ivPILdihos6aSPFLMRObS5jk9AcWa UK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vvD5CroRFM5Yoj6DQhAd7rJdkjZ_r.Ix_btw95gIYetx nbf4URNWz9TYC X-Sonic-MF: Date: Fri, 29 Apr 2022 18:59:05 +0000 (UTC) To: "cygwin AT cygwin DOT com" Message-ID: <2138171229.1645390.1651258745420@mail.yahoo.com> In-Reply-To: <2044845458.1632378.1651256726074@mail.yahoo.com> References: <945683463 DOT 1480145 DOT 1651191729148 DOT ref AT mail DOT yahoo DOT com> <945683463 DOT 1480145 DOT 1651191729148 AT mail DOT yahoo DOT com> <20220429180414 DOT b3a0572687203fda213f878d AT nifty DOT ne DOT jp> <2044845458 DOT 1632378 DOT 1651256726074 AT mail DOT yahoo DOT com> Subject: Re: cygdll 3.3.4 breaks cygpath.exe. mistyped commands result in fork bomb MIME-Version: 1.0 X-Mailer: WebService/1.1.20118 YMailNorrin X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: matthew patton via Cygwin Reply-To: matthew patton Content-Type: text/plain; charset="utf-8" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 23TJ06OJ005044 I've identified the proximate cause. env CYGWIN_NOWINPATH= With this variable set at all (0 or 1, doesn't matter) typing ''l' (that's el) spawns several hundred bash.exe and fork bombs. From a stable prompt, typing 'exit' spawns 80+ bash.exe and I have to use the X button to kill the window and the run-away bash.exe fork bomb. With CYGWIN DLL v3.2.0 or earlier hitting Ctrl-C shuts down the fork bomb at the command-line - the processes self-reap. With v3.3.x family Ctrl-C gives me my command-line back but requires 'pkill -9 bash.exe' over and over till the rogue process count is reigned in.  If I unset CYGWIN_NOWINPATH I obviously pollute my environment with DOS programs but typing 'l' (el) returns immediately with: 'l' is not recognized as an internal or external command,operable program or batch file. Did someone stupidly delegate the search for executables to blindly call CMD.exe and since with NOWINPATH set CMD.exe can't be found so it just fork bombs? On Friday, April 29, 2022, 02:25:38 PM EDT, matthew patton via Cygwin wrote: --- Process 25852 created--- Process 25852 loaded C:\Windows\System32\ntdll.dll at 00007fffa01b0000--- Process 25852 loaded C:\Windows\System32\kernel32.dll at 00007fff9eef0000--- Process 25852 loaded C:\Windows\System32\KernelBase.dll at 00007fff9db00000--- Process 25852 loaded C:\Program Files\SentinelOne\Sentinel Agent 21.7.4.1043\InProcessClient64.dll at 00007fff9d480000--- Process 25852 loaded C:\Windows\System32\advapi32.dll at 00007fff9f8a0000--- Process 25852 loaded C:\Windows\System32\msvcrt.dll at 00007fffa00d0000--- Process 25852 thread 20692 created--- Process 25852 loaded C:\Windows\System32\sechost.dll at 00007fff9edc0000--- Process 25852 loaded C:\Windows\System32\rpcrt4.dll at 00007fff9ff30000--- Process 25852 thread 25940 created--- Process 25852 thread 22408 created--- Process 25852 loaded C:\Windows\System32\shell32.dll at 00007fff9e210000--- Process 25852 loaded C:\Windows\System32\msvcp_win.dll at 00007fff9de60000--- Process 25852 loaded C:\cyg64\bin\cygwin1.dll at 0000000180040000--- Process 25852 loaded C:\Windows\System32\ucrtbase.dll at 00007fff9d980000--- Process 25852 loaded C:\Windows\System32\user32.dll at 00007fff9e9c0000--- Process 25852 loaded C:\Windows\System32\win32u.dll at 00007fff9e080000--- Process 25852 loaded C:\Windows\System32\gdi32.dll at 00007fff9ee60000--- Process 25852 loaded C:\Windows\System32\gdi32full.dll at 00007fff9df70000--- Process 25852 loaded C:\Windows\System32\userenv.dll at 00007fff9d790000--- Process 25852 loaded C:\Windows\System32\imm32.dll at 00007fff9eca0000   327     329 [main] cygpath (25852) Program name: C:\cyg64\bin\cygpath.exe (windows pid 25852)  248     577 [main] cygpath (25852) OS version:   Windows NT-10.0  288     865 [main] cygpath (25852) **********************************************--- Process 25852 loaded C:\Windows\System32\cryptbase.dll at 00007fff9cef0000--- Process 25852 loaded C:\Windows\System32\bcryptprimitives.dll at 00007fff9ddd0000 5888    6753 [main] cygpath (25852) sigprocmask: 0 = sigprocmask (0, 0x0, 0x180321570)  735    7488 [main] cygpath (25852) open_shared: name shared.5, n 5, shared 0x180030000 (wanted 0x180030000), h 0x184, *m 6  210    7698 [main] cygpath (25852) user_heap_info::init: heap base 0x800000000, heap top 0x800000000, heap size 0x20000000 (536870912)  175    7873 [main] cygpath (25852) open_shared: name S-1-5-21-1343024091-839522115-1708537768-180174.1, n 1, shared 0x180020000 (wanted 0x180020000), h 0x180, *m 6  160    8033 [main] cygpath (25852) user_info::create: opening user shared for 'S-1-5-21-1343024091-839522115-1708537768-180174' at 0x180020000  157    8190 [main] cygpath (25852) user_info::create: user shared version AB1FCCE8  112    8302 [main] cygpath (25852) fhandler_pipe::create: name \\.\pipe\cygwin-d9238e605d902b75-25852-sigwait, size 11440, mode PIPE_TYPE_MESSAGE  230    8532 [main] cygpath (25852) fhandler_pipe::create: pipe read handle 0x98  160    8692 [main] cygpath (25852) fhandler_pipe::create: CreateFile: name \\.\pipe\cygwin-d9238e605d902b75-25852-sigwait  145    8837 [main] cygpath (25852) fhandler_pipe::create: pipe write handle 0x198  142    8979 [main] cygpath (25852) dll_crt0_0: finished dll_crt0_0 initialization--- Process 25852 thread 17084 created--- Process 25852, exception c0000005 at 00000001801390e4--- Process 25852, exception 80000001 at 00007fff9d4c9767--- Process 25852 thread 25940 exited with status 0x80000001--- Process 25852 thread 22408 exited with status 0x80000001--- Process 25852 thread 17084 exited with status 0x80000001--- P rocess 25852 thread 17688 exited with status 0x80000001--- Process 25852 exited with status 0x80000001 hmm so downgraded to 3.3.3 again and the program runs. But if I use strace the process gets half-killed. Trying to exit from '--help' Ctrl-C results in repeated lines like so and I have to force-close the window  --- Process 14340, exception c0000005 at 000000018013875c--- Process 14340 thread 28092 created--- Process 14340 thread 22872 created--- Process 14340, exception 40010005 at 00007fff9dbbd67312655695 12666948 [] cygpath (14340) _cygtls::remove: wait 0--- Process 14340 thread 22872 exited with status 0x0--- Process 14340 thread 19264 created--- Process 14340 thread 22068 created--- Process 14340, exception 40010005 at 00007fff9dbbd673--- Process 14340, exception 40010005 at 00007fff9dbbd673 All because I decided to upgrade my installation which had been perfectly fine for well over a year...     On Friday, April 29, 2022, 05:04:23 AM EDT, Takashi Yano wrote:  On Fri, 29 Apr 2022 00:22:09 +0000 (UTC) matthew patton wrote: > I had to revert to 3.3.3-1 to restore functionality.with 3.3.4 invoking cygpath would cause an Access Violation Exception (0x05) and kill the thread so that I couldn't even do a 'cygpath --help'  > > All of a sudden I also am experiencing fork bombs if I type an invalid command. eg. type 'l' instead of 'ls' and ENTER, it spawns hundreds of 'bash.exe' processes. A half dozen 'pkill -9 bash.exe' heads off calamity.  That does not happen to me. -- Takashi Yano   -- Problem reports:      https://cygwin.com/problems.html FAQ:                  https://cygwin.com/faq/ Documentation:        https://cygwin.com/docs.html Unsubscribe info:    https://cygwin.com/ml/#unsubscribe-simple -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple