X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 13054395C036 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=towo.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=towo AT towo DOT net Subject: Re: cygwin1.dll > 3.1.4: Program execution fails if (WSL-)symlink exists and is present in PATH To: cygwin AT cygwin DOT com References: <3160909720eb427892eb38221a611953 AT frims060 DOT wamas DOT com> <66ac6d01-3ae9-5bd3-46a2-9a4e66647e45 AT cornell DOT edu> <20201202133905 DOT 6355182479af1f61971dc8a4 AT nifty DOT ne DOT jp> <20201202140557 DOT GQ303847 AT calimero DOT vinschen DOT de> From: Thomas Wolff Message-ID: <7c12fbc2-2d45-5b36-d31b-1bc0edc7fb7d@towo.net> Date: Wed, 2 Dec 2020 15:07:33 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <20201202140557.GQ303847@calimero.vinschen.de> X-Provags-ID: V03:K1:d3YyXjxjZVGV+5mV94Nub7UID4ebtNRbEoPRhTdQegmjU1rM/xs KahwF29dvFoosCMsnC7tcqCLQ2URV9cKvVLlqzL/BfTfsUrR/IPNWgIWQ5y5L1riLL0QGtY W3/AyqtjqIDleMQdf17OieuViXmltJzXX3TLWGFS7bTRICDptNNlUXmtYugMwiDggucQmQ2 a9Wu9uPKaBwXlrpmDrlBg== X-UI-Out-Filterresults: notjunk:1;V03:K0:jDzmg8HmWBI=:GT0EzuzfwsqWQNP6m9tVMD nuBq+kVbzrkWRXiv2/HeJf2hrp9llKLl81TohsUoCm0ETJCBi4yMet1VnQVt+tfk/qzas6QRh +V3AV2R8efiioi/QUgIF+OVgvwDmBKkDeS3ySf+w5TJ3BTdw/ona5aOLS2WAe0hM4zDqYwu1J PAGPRU60ohkm4WUEtzADFP8VCK6kKQfKCb7p7Ph7pNk70rYV5s3A/MMF8+DqoqlpbOmhA5yzv xWa+VDcmn45MYGBmhQZ5lS9QFqYg1HhHE/M3TJVhsQD+PkjNIKfV7Lbj444dIY4CYHcQQosza CpAyqNZq+I+EdFm8apbSyBDKLnkoGieNv80kZpGpXR7bIf/M3jzsbQxyfnmO32IPADkjLhkG0 vpBz/Tdty3MFlD7+iXEgPIhsXfJg9zzlAm43HmiTB3ayJ2cqeriP4QDxRyZCKnzqD0LqjNZS6 Buou/ZfOAw== X-Spam-Status: No, score=3.5 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_ABUSEAT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, RCVD_IN_SBL_CSS, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Level: *** X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" Am 02.12.2020 um 15:05 schrieb Corinna Vinschen: > 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. Actually I confirmed the issue too and I did not have to involve WSL, cygwin ln -s led to the behaviour. -- 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