public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* cygwin1.dll > 3.1.4: Program execution fails if (WSL-)symlink exists and is present in PATH
@ 2020-12-03 10:58 Mattl Mario
  2020-12-03 14:43 ` Corinna Vinschen
  0 siblings, 1 reply; 11+ messages in thread
From: Mattl Mario @ 2020-12-03 10:58 UTC (permalink / raw)
  To: cygwin

Hello everyone,

I can confirm:
with the latest snapshot-DLL, it is working fine again. (as Corinna mentioned)

Many thanks

BR Mario

SSI Schäfer IT Solutions GmbH | Friesachstrasse 15 | 8114 Friesach | Austria
Registered Office: Friesach | Commercial Register: 49324 K | VAT no. ATU28654300
Commercial Court: Landesgericht für Zivilrechtssachen Graz
Unsere Hinweise zum Umgang mit personenbezogenen Daten finden Sie hier<https://www.ssi-schaefer.com/de-at/datenschutz-49548>.
You can find our information on the handling of personal data here<https://www.ssi-schaefer.com/en-at/privacy-13258>.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: cygwin1.dll > 3.1.4: Program execution fails if (WSL-)symlink exists and is present in PATH
  2020-12-03 10:58 cygwin1.dll > 3.1.4: Program execution fails if (WSL-)symlink exists and is present in PATH Mattl Mario
@ 2020-12-03 14:43 ` Corinna Vinschen
  0 siblings, 0 replies; 11+ messages in thread
From: Corinna Vinschen @ 2020-12-03 14:43 UTC (permalink / raw)
  To: cygwin

On Dec  3 10:58, Mattl Mario wrote:
> Hello everyone,
> 
> I can confirm:
> with the latest snapshot-DLL, it is working fine again. (as Corinna mentioned)

Thanks for testing!


Corinna

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: cygwin1.dll > 3.1.4: Program execution fails if (WSL-)symlink exists and is present in PATH
  2020-12-03  9:30         ` Takashi Yano
@ 2020-12-03  9:46           ` Corinna Vinschen
  0 siblings, 0 replies; 11+ messages in thread
From: Corinna Vinschen @ 2020-12-03  9:46 UTC (permalink / raw)
  To: cygwin

On Dec  3 18:30, Takashi Yano via Cygwin wrote:
> On Wed, 2 Dec 2020 16:35:02 +0100
> Corinna Vinschen via Cygwin <cygwin@cygwin.com> 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 <cygwin@cygwin.com> 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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: cygwin1.dll > 3.1.4: Program execution fails if (WSL-)symlink exists and is present in PATH
  2020-12-02 15:35       ` Corinna Vinschen
@ 2020-12-03  9:30         ` Takashi Yano
  2020-12-03  9:46           ` Corinna Vinschen
  0 siblings, 1 reply; 11+ messages in thread
From: Takashi Yano @ 2020-12-03  9:30 UTC (permalink / raw)
  To: cygwin

On Wed, 2 Dec 2020 16:35:02 +0100
Corinna Vinschen via Cygwin <cygwin@cygwin.com> 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 <cygwin@cygwin.com> 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.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: cygwin1.dll > 3.1.4: Program execution fails if (WSL-)symlink exists and is present in PATH
  2020-12-02 14:05     ` Corinna Vinschen
  2020-12-02 14:07       ` Thomas Wolff
@ 2020-12-02 15:35       ` Corinna Vinschen
  2020-12-03  9:30         ` Takashi Yano
  1 sibling, 1 reply; 11+ messages in thread
From: Corinna Vinschen @ 2020-12-02 15:35 UTC (permalink / raw)
  To: cygwin

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 <cygwin@cygwin.com> 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.


Thanks,
Corinna

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: cygwin1.dll > 3.1.4: Program execution fails if (WSL-)symlink exists and is present in PATH
  2020-12-02 14:07       ` Thomas Wolff
@ 2020-12-02 14:13         ` Corinna Vinschen
  0 siblings, 0 replies; 11+ messages in thread
From: Corinna Vinschen @ 2020-12-02 14:13 UTC (permalink / raw)
  To: cygwin

On Dec  2 15:07, Thomas Wolff wrote:
> 
> 
> 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 <cygwin@cygwin.com> 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.

WSL isn't involved, WSL symlinks (created by Cygwin) are.


Corinna

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: cygwin1.dll > 3.1.4: Program execution fails if (WSL-)symlink exists and is present in PATH
  2020-12-02 14:05     ` Corinna Vinschen
@ 2020-12-02 14:07       ` Thomas Wolff
  2020-12-02 14:13         ` Corinna Vinschen
  2020-12-02 15:35       ` Corinna Vinschen
  1 sibling, 1 reply; 11+ messages in thread
From: Thomas Wolff @ 2020-12-02 14:07 UTC (permalink / raw)
  To: 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 <cygwin@cygwin.com> 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.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: cygwin1.dll > 3.1.4: Program execution fails if (WSL-)symlink exists and is present in PATH
  2020-12-02  4:39   ` Takashi Yano
@ 2020-12-02 14:05     ` Corinna Vinschen
  2020-12-02 14:07       ` Thomas Wolff
  2020-12-02 15:35       ` Corinna Vinschen
  0 siblings, 2 replies; 11+ messages in thread
From: Corinna Vinschen @ 2020-12-02 14:05 UTC (permalink / raw)
  To: cygwin

On Dec  2 13:39, Takashi Yano via Cygwin wrote:
> On Tue, 1 Dec 2020 19:13:39 -0500
> Ken Brown via Cygwin <cygwin@cygwin.com> 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.


Corinna

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: cygwin1.dll > 3.1.4: Program execution fails if (WSL-)symlink exists and is present in PATH
  2020-12-02  0:13 ` Ken Brown
@ 2020-12-02  4:39   ` Takashi Yano
  2020-12-02 14:05     ` Corinna Vinschen
  0 siblings, 1 reply; 11+ messages in thread
From: Takashi Yano @ 2020-12-02  4:39 UTC (permalink / raw)
  To: cygwin

On Tue, 1 Dec 2020 19:13:39 -0500
Ken Brown via Cygwin <cygwin@cygwin.com> 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
> > 
> > If I delete the symbolic link
> > $ ll test
> > lrwxrwxrwx 1 mmattl Users 9 Dec  1 10:14 test -> link_test/
> > simply with
> > rm test
> > 
> > everything is working fine; sed can be executed
> > $ /link_test/sed
> > Usage: /link_test/sed [OPTION]... {script-only-if-no-other-script} [input-file]...
> > [...]
> > And
> > 
> > $ 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)
> >          cygwin1.dll => /usr/bin/cygwin1.dll (0x180040000)
> >          cygintl-8.dll => /usr/bin/cygintl-8.dll (0x3f7110000)
> >          cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x3f7160000)
> > 
> > It would be great if you could give some advice to this issue.
> 
> 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.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: cygwin1.dll > 3.1.4: Program execution fails if (WSL-)symlink exists and is present in PATH
  2020-12-01  9:24 Mattl Mario
@ 2020-12-02  0:13 ` Ken Brown
  2020-12-02  4:39   ` Takashi Yano
  0 siblings, 1 reply; 11+ messages in thread
From: Ken Brown @ 2020-12-02  0:13 UTC (permalink / raw)
  To: cygwin

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
> 
> If I delete the symbolic link
> $ ll test
> lrwxrwxrwx 1 mmattl Users 9 Dec  1 10:14 test -> link_test/
> simply with
> rm test
> 
> everything is working fine; sed can be executed
> $ /link_test/sed
> Usage: /link_test/sed [OPTION]... {script-only-if-no-other-script} [input-file]...
> [...]
> And
> 
> $ 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)
>          cygwin1.dll => /usr/bin/cygwin1.dll (0x180040000)
>          cygintl-8.dll => /usr/bin/cygintl-8.dll (0x3f7110000)
>          cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x3f7160000)
> 
> It would be great if you could give some advice to this issue.

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.

Corinna, could you build a snapshot for Mario to test?  If it's not fixed, I'll 
be able to look it within a week or so.

Thanks.

Ken

^ permalink raw reply	[flat|nested] 11+ messages in thread

* cygwin1.dll > 3.1.4: Program execution fails if (WSL-)symlink exists and is present in PATH
@ 2020-12-01  9:24 Mattl Mario
  2020-12-02  0:13 ` Ken Brown
  0 siblings, 1 reply; 11+ messages in thread
From: Mattl Mario @ 2020-12-01  9:24 UTC (permalink / raw)
  To: cygwin

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

If I delete the symbolic link
$ ll test
lrwxrwxrwx 1 mmattl Users 9 Dec  1 10:14 test -> link_test/
simply with
rm test

everything is working fine; sed can be executed
$ /link_test/sed
Usage: /link_test/sed [OPTION]... {script-only-if-no-other-script} [input-file]...
[...]
And

$ 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)
        cygwin1.dll => /usr/bin/cygwin1.dll (0x180040000)
        cygintl-8.dll => /usr/bin/cygintl-8.dll (0x3f7110000)
        cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x3f7160000)

It would be great if you could give some advice to this issue.

Many thanks and best regards,
Mario


SSI Schäfer IT Solutions GmbH | Friesachstrasse 15 | 8114 Friesach | Austria
Registered Office: Friesach | Commercial Register: 49324 K | VAT no. ATU28654300
Commercial Court: Landesgericht für Zivilrechtssachen Graz
Unsere Hinweise zum Umgang mit personenbezogenen Daten finden Sie hier<https://www.ssi-schaefer.com/de-at/datenschutz-49548>.
You can find our information on the handling of personal data here<https://www.ssi-schaefer.com/en-at/privacy-13258>.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-12-03 14:43 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-03 10:58 cygwin1.dll > 3.1.4: Program execution fails if (WSL-)symlink exists and is present in PATH Mattl Mario
2020-12-03 14:43 ` Corinna Vinschen
  -- strict thread matches above, loose matches on Subject: below --
2020-12-01  9:24 Mattl Mario
2020-12-02  0:13 ` Ken Brown
2020-12-02  4:39   ` Takashi Yano
2020-12-02 14:05     ` Corinna Vinschen
2020-12-02 14:07       ` Thomas Wolff
2020-12-02 14:13         ` Corinna Vinschen
2020-12-02 15:35       ` Corinna Vinschen
2020-12-03  9:30         ` Takashi Yano
2020-12-03  9:46           ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).