From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sonic317-26.consmr.mail.bf2.yahoo.com (sonic317-26.consmr.mail.bf2.yahoo.com [74.6.129.81]) by sourceware.org (Postfix) with ESMTPS id 956573857404 for ; Fri, 29 Apr 2022 18:59:10 +0000 (GMT) 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 UKPnWL1d7LFujY0FK2ESEWnuipRwDnLjFZupjZ0FBJLiQw6LmQOQfetNYLp1PlKFHzWeb6p8keC7 iZCh0YmDM23IP8.LkclSE.EoEBmznX5hX847y4VKc39LPk3zo1fhPq7WGFNx4Lhe5q71vkiYfnm0 zBnySp1PV1nm8Bg9bErLTtzKDFznEujL8x9lhgMDBpe6omrtop9t5e02AEMxIeGI.GI00Te9nc_t VCvSPDz.dvMK.rS12zACSLoXDejKjPrxdFYA1YEaME8XkP2xOiwVREeJeacud_iE1giihnsItRaC njPOyOQS07026foOA307BW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seGsBtDwz1Reoolx_FxVWiwqRu9O7OZzC4wBBa9mcfYbcsW oJSvOxGh876enJVtxVTOeZyZ7nCpfZSfTxFkAcbU0TgE.lKv6N.qfYLZlU5dLYqX7H4x.d17FAhl IrPjIcVZYdxF7.TrGur.e42109FEhDKEHN8tnauzUhPx_eL43l4GX8fopUPIwuCoZiTwJswZjUul qI4RqJPlpIr5RgbmTU_4aIUL2GuYvjam3QcBSGvfckHuSzODUaXezuHvC.M3MHtQ5fhnfIlOJ.4q k79kAoGXLUowMMi74Ek81yzJTTJgqehTQbRQw4eWW854uBwKaww1aRfu5WLM_GJ9lXqpdKXnYjkR Nw62sfxwnr1S_kmG6XnAEwVVtM1ZrV7XzIp04vJbNiOl_wbBAqQRHrWRT9e4uaImbfvoB8xGvIdh hLi_y4XiEqO4L4hn.fCnTRWHfsMKQbUb6sZdFi3RgIAjcC6LLXg8cF.AirQhuqVIStwvQ51jbeUD lTbvNWyZeZHDnlJrOpvM05nj7f48vFW9V7Z.oTt7kbQnWSLmGKuYANfF72dvCHvrmsonItxeyaUU 85wl3Y8a__h_aXgmTdFJVWi4CDQr_Y0Tf0VHxeSbtdvPDxQcHt.HQPYGSryVKxz9dF64c6JK91G5 3fh2w7.LIFIx7jcJmAz_ZJoZqRBXhx7w4nvqjTiCcm1aJCThyuFgzyX3Ca3SJ6vOHsYQvmafatIy O_kPW8vKHoazFJ439Nu6BsuJbFvQSBOkvvD5CroRFM5Yoj6DQhAd7rJdkjZ_r.Ix_btw95gIYetx nbf4URNWz9TYC X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.bf2.yahoo.com with HTTP; Fri, 29 Apr 2022 18:59:09 +0000 Date: Fri, 29 Apr 2022 18:59:05 +0000 (UTC) From: matthew patton To: "cygwin@cygwin.com" Message-ID: <2138171229.1645390.1651258745420@mail.yahoo.com> In-Reply-To: <2044845458.1632378.1651256726074@mail.yahoo.com> References: <945683463.1480145.1651191729148.ref@mail.yahoo.com> <945683463.1480145.1651191729148@mail.yahoo.com> <20220429180414.b3a0572687203fda213f878d@nifty.ne.jp> <2044845458.1632378.1651256726074@mail.yahoo.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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin@cygwin.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: , X-List-Received-Date: Fri, 29 Apr 2022 18:59:13 -0000 I've identified the proximate cause. env CYGWIN_NOWINPATH=3D 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, t= yping '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 a= t the command-line - the processes self-reap. With v3.3.x family Ctrl-C giv= es me my command-line back but requires 'pkill -9 bash.exe' over and over t= ill the rogue process count is reigned in.=C2=A0 If I unset CYGWIN_NOWINPATH I obviously pollute my environment with DOS pro= grams but typing 'l' (el) returns immediately with: 'l' is not recognized as an internal or external command,operable program o= r batch file. Did someone stupidly delegate the search for executables to blindly call CM= D.exe and since with NOWINPATH set CMD.exe can't be found so it just fork b= ombs? On Friday, April 29, 2022, 02:25:38 PM EDT, matthew patton via Cyg= win wrote: =20 =20 --- Process 25852 created--- Process 25852 loaded C:\Windows\System32\ntd= ll.dll at 00007fffa01b0000--- Process 25852 loaded C:\Windows\System32\kern= el32.dll at 00007fff9eef0000--- Process 25852 loaded C:\Windows\System32\Ke= rnelBase.dll at 00007fff9db00000--- Process 25852 loaded C:\Program Files\S= entinelOne\Sentinel Agent 21.7.4.1043\InProcessClient64.dll at 00007fff9d48= 0000--- Process 25852 loaded C:\Windows\System32\advapi32.dll at 00007fff9f= 8a0000--- Process 25852 loaded C:\Windows\System32\msvcrt.dll at 00007fffa0= 0d0000--- Process 25852 thread 20692 created--- Process 25852 loaded C:\Win= dows\System32\sechost.dll at 00007fff9edc0000--- Process 25852 loaded C:\Wi= ndows\System32\rpcrt4.dll at 00007fff9ff30000--- Process 25852 thread 25940= created--- Process 25852 thread 22408 created--- Process 25852 loaded C:\W= indows\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:\Win= dows\System32\ucrtbase.dll at 00007fff9d980000--- Process 25852 loaded C:\W= indows\System32\user32.dll at 00007fff9e9c0000--- Process 25852 loaded C:\W= indows\System32\win32u.dll at 00007fff9e080000--- Process 25852 loaded C:\W= indows\System32\gdi32.dll at 00007fff9ee60000--- Process 25852 loaded C:\Wi= ndows\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 =C2=A0 327=C2=A0 =C2=A0 =C2=A0329 [main] cygpath (25852) Program name: C:\c= yg64\bin\cygpath.exe (windows pid 25852)=C2=A0 248=C2=A0 =C2=A0 =C2=A0577 [= main] cygpath (25852) OS version:=C2=A0 =C2=A0Windows NT-10.0=C2=A0 288=C2= =A0 =C2=A0 =C2=A0865 [main] cygpath (25852) *******************************= ***************--- Process 25852 loaded C:\Windows\System32\cryptbase.dll a= t 00007fff9cef0000--- Process 25852 loaded C:\Windows\System32\bcryptprimit= ives.dll at 00007fff9ddd0000=C2=A05888=C2=A0 =C2=A0 6753 [main] cygpath (25= 852) sigprocmask: 0 =3D sigprocmask (0, 0x0, 0x180321570)=C2=A0 735=C2=A0 = =C2=A0 7488 [main] cygpath (25852) open_shared: name shared.5, n 5, shared = 0x180030000 (wanted 0x180030000), h 0x184, *m 6=C2=A0 210=C2=A0 =C2=A0 7698= [main] cygpath (25852) user_heap_info::init: heap base 0x800000000, heap t= op 0x800000000, heap size 0x20000000 (536870912)=C2=A0 175=C2=A0 =C2=A0 787= 3 [main] cygpath (25852) open_shared: name S-1-5-21-1343024091-839522115-17= 08537768-180174.1, n 1, shared 0x180020000 (wanted 0x180020000), h 0x180, *= m 6=C2=A0 160=C2=A0 =C2=A0 8033 [main] cygpath (25852) user_info::create: o= pening user shared for 'S-1-5-21-1343024091-839522115-1708537768-180174' at= 0x180020000=C2=A0 157=C2=A0 =C2=A0 8190 [main] cygpath (25852) user_info::= create: user shared version AB1FCCE8=C2=A0 112=C2=A0 =C2=A0 8302 [main] cyg= path (25852) fhandler_pipe::create: name \\.\pipe\cygwin-d9238e605d902b75-2= 5852-sigwait, size 11440, mode PIPE_TYPE_MESSAGE=C2=A0 230=C2=A0 =C2=A0 853= 2 [main] cygpath (25852) fhandler_pipe::create: pipe read handle 0x98=C2=A0= 160=C2=A0 =C2=A0 8692 [main] cygpath (25852) fhandler_pipe::create: Create= File: name \\.\pipe\cygwin-d9238e605d902b75-25852-sigwait=C2=A0 145=C2=A0 = =C2=A0 8837 [main] cygpath (25852) fhandler_pipe::create: pipe write handle= 0x198=C2=A0 142=C2=A0 =C2=A0 8979 [main] cygpath (25852) dll_crt0_0: finis= hed dll_crt0_0 initialization--- Process 25852 thread 17084 created--- Proc= ess 25852, exception c0000005 at 00000001801390e4--- Process 25852, excepti= on 80000001 at 00007fff9d4c9767--- Process 25852 thread 25940 exited with s= tatus 0x80000001--- Process 25852 thread 22408 exited with status 0x8000000= 1--- Process 25852 thread 17084 exited with status 0x80000001--- Process 25= 852 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 i= n repeated lines like so and I have to force-close the window=C2=A0 --- 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 cre= ated--- Process 14340, exception 40010005 at 00007fff9dbbd673--- Process 14= 340, exception 40010005 at 00007fff9dbbd673 All because I decided to upgrade my installation which had been perfectly f= ine for well over a year... =C2=A0 =C2=A0 On Friday, April 29, 2022, 05:04:23 AM EDT, Takashi Yano wrote:=C2=A0=20 =20 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 c= ygpath would cause an Access Violation Exception (0x05) and kill the thread= so that I couldn't even do a 'cygpath --help'=C2=A0 >=20 > All of a sudden I also am experiencing fork bombs if I type an invalid co= mmand. 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.=C2=A0 That does not happen to me. --=20 Takashi Yano =C2=A0=20 --=20 Problem reports:=C2=A0 =C2=A0 =C2=A0 https://cygwin.com/problems.html FAQ:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 https://= cygwin.com/faq/ Documentation:=C2=A0 =C2=A0 =C2=A0 =C2=A0 https://cygwin.com/docs.html Unsubscribe info:=C2=A0 =C2=A0 https://cygwin.com/ml/#unsubscribe-simple =20