delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/01/24/00:13:17

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E5F98389850E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1611465153;
bh=+/gjhuEjUmKzhOmg3TN8NZ5hK6PAbFusm5uBcqTZrAg=;
h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=KxUXz+tkqljSP6GY149as/OwrCVOStEvwC5iRK9QcU5TcGVY38liVZtYhDbAFAu07
/OGJqA14bTHLHCyYP7Dy2n2TEmCyfp1lgiGImcx2lCVVFzhzN2HTfzR9J2UyHil/OH
KKWIOpROWn2GQPQUHkiqgCR8c0YlMu+TJCoXjiTs=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 6C60C3858024
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
bh=6BQpaxiGO/bgf8PRbXKEA3ifU3tanTJcD6KyzmkOCng=;
b=biA97lgk33WykXL/7pnHvvD5eeFu0DrQwURhemL7FJJx+4GAuzCCj/4vvtvv41D2P8
kD1AydLnwSsgwZUwdMl1VLlixKB2lhCREpiZ9bTQWEkUm9GZvsxOS6amQQRfWtJXY33V
zHophpXBZiyD3GbpfZgNV7/htVV7B/pg6SJHDNUZpPl9sk2SI6OodnjqvCLwNdi1mBWY
dVF39lM7/tUJ6sNtgD/mL3Yt8683WB9uvSipy3NSZd+Pqpf2cTbtABInQy8MgOHVPUuV
87mBhsPEIUOKUKtjLFQn+zyS95wotS9s3LKBvj1W8SRTOTdMNYb4mzYNFUgKicSiAtkR
LePw==
X-Gm-Message-State: AOAM530ngq9EmWRXYwgkbqXfvRbu3cGXJSelSt2sfjiyOvLTgV0CPRgH
bPxBU8ljXxSL4YqlbIJA5/L6+KkpJPrDgSBVJodDrzQKylc=
X-Google-Smtp-Source: ABdhPJyg3DY0zA9QriQQUJBE5VrcN0z2OP5GCg9FDj4aRumw9q3z8tjubcQ/KTY6XNKg16BvBnEvAec4xo14BKRnmZE=
X-Received: by 2002:a92:db4e:: with SMTP id w14mr332810ilq.101.1611465147827;
Sat, 23 Jan 2021 21:12:27 -0800 (PST)
MIME-Version: 1.0
Date: Sun, 24 Jan 2021 00:12:15 -0500
Message-ID: <CAETRzVJSYt3oBrqTmpD2EgqeTpWWyfNCh2sViXuKDDyHjdob6Q@mail.gmail.com>
Subject: Link/$PATH interaction problem
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=-2.6 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.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Frank Eske via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Frank Eske <fne DOT bugzilla AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

Similar to December's "cygwin1.dll > 3.1.4 Program execution fails if
(WSL-)symlink exists and is present in PATH", but it's still present in
3.1.6 and 3.1.7. While I can revert back to 3.1.4 (and 3.1.2,) links I have
created since then do not show up as links and are listed as owned by
UnknownUser and UnknownGroup. I have dozens of such links scattered
throughout, making revert testing impractical.

I keep scripts in /home/userid/bat, which is a link, and compiled programs
in /home/userid/bin, which is a simple directory. My PATH begins with
.:/home/userid/bat:/home/userid/bin:... Problems started when I changed the
/home/userid/bat link. After the change, none of the programs in
/home/userid/bin worked. They would just return. Running them with gdb,
they would fail to start (During startup program exited with code
0xc000079) /usr/bin/ programs continued to operate normally.

My relevant links are as follows:
/C -> /cygdrive/c
/home/data -> /C/home/data
/home/userid/bat -> /home/data/home/bat

Currently my /home/userid/bat link is owned by Administrators:None, as
restored by backup software. If I replace it, programs in /home/userid/bin
do not run. If I add ANY other new link to the beginning of $PATH, none of
my compiled programs anywhere run. Adding at the end does not cause any
detectable problem.

With a PATH containing a beginning link: ldd ~/bin/program yields:
   ntdll.dll => ,,,
   KERNEL32.DLL => ...
   KERNELBASE.dll => ...

Without leading link items (except for the restored link), ldd
~/bin/program additionally yields:
   cygwin1.dll => ,,,
   (and sometimes more)

Let me know if you need further information.
--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019