From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.10]) by sourceware.org (Postfix) with ESMTPS id 9D8F0385800F for ; Thu, 3 Dec 2020 09:46:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9D8F0385800F Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N9M5y-1k89621fM4-015MbM for ; Thu, 03 Dec 2020 10:46:22 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id E6D9EA80D29; Thu, 3 Dec 2020 10:46:21 +0100 (CET) Date: Thu, 3 Dec 2020 10:46:21 +0100 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: cygwin1.dll > 3.1.4: Program execution fails if (WSL-)symlink exists and is present in PATH Message-ID: <20201203094621.GA303847@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <3160909720eb427892eb38221a611953@frims060.wamas.com> <66ac6d01-3ae9-5bd3-46a2-9a4e66647e45@cornell.edu> <20201202133905.6355182479af1f61971dc8a4@nifty.ne.jp> <20201202140557.GQ303847@calimero.vinschen.de> <20201202153502.GS303847@calimero.vinschen.de> <20201203183056.cf04c7f14f557c860cf1b4fe@nifty.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201203183056.cf04c7f14f557c860cf1b4fe@nifty.ne.jp> X-Provags-ID: V03:K1:ecC5Ko8x9GJV9fsyWn0cvxK5kRi5mhb9Op2xcaVwCVL6XzgOiGK wNhQpkk0+7zESeAzf2FyhO9MoFsPem+NuYthYiyWB1KqXl3KX1tMh7bijfN+zsMiIRjt0tG H7i8xJReygA38TeiKNtq5iJgMxoDqYD34SdHavkonCY3Osn8l2vuzBraA43Ivn88smQzobJ 22GYdAPPQkAr/oFsdxPrw== X-UI-Out-Filterresults: notjunk:1;V03:K0:PABYk5FnjIE=:CCXApe8QFAH9HO0TWzLE4a 6cgyWRwHuSpsha7U8ZRrxp00RNzmO/+B7PWfrruh1byHcCnWFEoXEgLgmWSau7Qx4Sf/54f63 fhfVc7qgyEWYRAcJ0Mrf0wagb0vBAQdD/x5yTnXnsRePeejBhTjzyQTVZLZZNkuoogV+1ZvoR 5gTmREHOOgYtEigm5z/pYaRsGQQyJzPWhndEFZ0vjfs9iqYIEQ3iWBFUaFMaweOLe1wMvjl+0 XSZhhYE+SaNnch0mEKVRXOOAci6Jqx/vxMWOChSMfzPITsj5aj+WMSTUK+QjNfzwwhi0Hkolr ePFecwTcNYAnv6KkUmfCGHMiu7zqU1MbZmd66RrIw+Gm+T2f29P4htycvRVBRc969CLFbgGB8 dJhGFpwkCcRHonvlc2EyHozNzht9OvmSh+gbhry7jmyNcnqsmIGdcnFs2JXJPkeYkGn13CjLg pmCXREvqHw== X-Spam-Status: No, score=-100.4 required=5.0 tests=BAYES_00, GOOD_FROM_CORINNA_CYGWIN, JMQ_SPF_NEUTRAL, KAM_DMARC_NONE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NEUTRAL, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: Thu, 03 Dec 2020 09:46:25 -0000 On Dec 3 18:30, Takashi Yano via Cygwin wrote: > On Wed, 2 Dec 2020 16:35:02 +0100 > Corinna Vinschen via Cygwin wrote: > > On Dec 2 15:05, Corinna Vinschen wrote: > > > On Dec 2 13:39, Takashi Yano via Cygwin wrote: > > > > On Tue, 1 Dec 2020 19:13:39 -0500 > > > > Ken Brown via Cygwin wrote: > > > > > On 12/1/2020 4:24 AM, Mattl Mario wrote: > > > > > > Hello, > > > > > > > > > > > > Since cygwin1.dll version 3.1.5, I observed the following behavior: > > > > > > If a symbolic link is existing in the PATH environment, programs (external from Cygwin's system directory) using cygwin1.dll cannot be executed anymore. > > > > > > Possibly, because the Cygwin-DLL isn't found anymore. > > > > > > > > > > > > Steps to reproduce: > > > > > > > > > > > > cd / > > > > > > mkdir link_test > > > > > > cp /usr/bin/sed.exe link_test > > > > > > ln -s link_test test > > > > > > export PATH=/test:/link_test:/usr/bin:/bin > > > > > > > > > > > > /link_test/sed cannot be executed > > > > > > $ ldd /link_test/sed > > > > > > ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffffd960000) > > > > > > KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL (0x7ffffd140000) > > > > > > KERNELBASE.dll => /cygdrive/c/WINDOWS/System32/KERNELBASE.dll (0x7ffffa8e0000) > > > > > > SYSFER.DLL => /cygdrive/c/WINDOWS/System32/SYSFER.DLL (0x550c0000) > > > > > > > > > > > > -> no cygwin- DLLs found > > > > > > [...] > > > > > I think this was fixed by commit 4b4fffe0f2390be6a5be27b6a3ceaa212a3724b2, but I > > > > > don't have time to check carefully, and I'm going to be AFK for a few days > > > > > starting tomorrow. > > > > > > > > I can reproduce this issue with current git head even with > > > > the commit 4b4fffe0f2390be6a5be27b6a3ceaa212a3724b2. > > > > > > Just looking into it. It has something to do with missing to resolve > > > a WSL symlinks to a Windows path, but I'm not sure yet where this occurs. > > > > I pushed a patch and uploaded new developer snapshots to > > https://cygwin.com/snapshots/ > > > > Please give it a try. > > I have confirmed that the issue has been resolved on current git head. Thanks for testing! Corinna