DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 54ND3FUB1029883 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 54ND3FUB1029883 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=gWhouBmK X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 09DE83857359 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1748005395; bh=PcWNzc9rTU0R6QgAN1gD6J6LEuSggIJqOyTcMJwqqUc=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=gWhouBmKh7glpkgxYIPyOQkmgQ7nPuScFaZ0t5r5GSNjWtCwiZI/xyX15L5+n0qUv qp2IC8TXMWAE8bWfK47Bc1uYct2ZdAnN6aHHO4g0EVwEDK+0hAg5cd6krjzUcWWysy hMlzEMnozWY5gB32EvyR9N4CoJJLHc70MLZVsgvo= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 164B93857359 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 164B93857359 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1748005367; cv=none; b=u1tpSRs9ahEKKbjjm/egR49SwRl7FOnlaceI8tenx+rbv/rOF00OP2RARUSkQiqUhwbHsY3f6p90tn266v6TLNiKt5cdc5Z4tG2NwX0xixkrfyZaACDHe1k78pMhmZ+jR/ZZdC1V94XXofvUIDPwaVnmabbyPtxN5DEOk4grkDw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1748005367; c=relaxed/simple; bh=nABKTtuOu6VOZXc1e2kfAE7FcIvZ4l2YUXPn8bNGB1c=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=Dp+UDBym0aXOrs1fPI5PchNI2afMqYtd/DEms3aKByGX5S+f5zFaSBvC+O95toC334N+c1/hkfALkEJtv+7ebpYQOrEMT1qgWw/WW4bK4QGLJ6/Y2rItpzOSxRKw43GY7tQHyzI0TWJEljMqfU577dyXl+7JaFuf3oo20hE3oK0= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 164B93857359 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748005366; x=1748610166; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/H7DZ0QbNpFDjOzuxShuWi7GFMl99Oior7174m7WdDg=; b=wqBJwQLqV9ww+zbtZSrjE7YRmGesCiBRSGPDCPqYy3d07w0j4ll/c1ryjhRasFxKKT 2YG7rUL1j+aPctaYMRduvhsAR7UjzaavNRZ2d7NtKFiHXJ/4Y9QkYvxl1e8USPVCji2Q Bfc6LxLlp9U6pZAVNQ62GzoIP0Rdq5t93UwK6YszUT5PPHq0jOelukB9WPrsJqMDscwm nGfqxZ4/xaocGR7vOo6TxkTF97zb9kG/CCa5aLsGAeIJbsmLwSesaYaBRtx+AAN6w7oP 9s1TDL4CSPCDR2fx1EALmeP7cnMV6yRYWoGbV037/vqCKYhMgTjgQ4TB/JSb0vZNWAK5 pa5A== X-Gm-Message-State: AOJu0Yy1YLspI5T7+hIDsW4dM5ax1RDRpjh2GLzNvpzhBzxEeoMSDfpy gUCr52IEf0XBPP3Grbl0nX97nbAc7+Li8VioBnkMqWuOn7LiqHluOsNJsadVOc0wkuiSCQILElC SFHAcht1ge14o49se5Ve8656lUStEQfiNhjM0 X-Gm-Gg: ASbGncsDoizUYjTqv/Fo6wV2yY8A3wrARVDjhGLzlyrV7gjo5vsaeQHJs+MKXVwL0W/ nYXddgWXLwrMGMkgdZm0Uws5qAJ7HGJ+ReVOuZS0EfyKMvwp8uWkYCcgOPQeR1Z1oPV84sS4tFz 2c8lBG6rqzg8AjNIsanxINu3pQ2g3cRLz/ X-Google-Smtp-Source: AGHT+IHnZ4cIxUpXXLf+joipqRF7ipV3BP4P/b3eIpqnyRSFEa+DjsydoXyMUPXqJUQ8cF8DP9WQiI87L2uj9Cd3nws= X-Received: by 2002:a05:6820:c83:b0:60a:5d5:b087 with SMTP id 006d021491bc7-60a05d5b3b8mr16478061eaf.6.1748005365872; Fri, 23 May 2025 06:02:45 -0700 (PDT) MIME-Version: 1.0 References: <6ec5c987-b2ff-421d-b8f4-8b1ee7dca29c AT SystematicSW DOT ab DOT ca> <8c0312e1-a37d-433a-bea2-6eec96eda5af AT SystematicSW DOT ab DOT ca> In-Reply-To: Date: Fri, 23 May 2025 15:02:09 +0200 X-Gm-Features: AX0GCFssI2HGQ0uAYfoITjYwsLI96dCP4--ULQykTnQt8kHx7Vcu92MSKOPEiVw Message-ID: Subject: Re: Using Cygwin installation on network share in CI fails To: cygwin AT cygwin DOT com X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: =?utf-8?q?Aur=C3=A9lien_Couderc_via_Cygwin?= Reply-To: =?UTF-8?Q?Aur=C3=A9lien_Couderc?= Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 54ND3FUB1029883 On Tue, May 13, 2025 at 9:07 PM Brian Inglis via Cygwin wrote: > > On 2025-05-13 10:32, Aurélien Couderc via Cygwin wrote: > > On Tue, May 13, 2025 at 5:41 PM Brian Inglis via Cygwin wrote: > >> On 2025-05-13 02:33, Aurélien Couderc via Cygwin wrote: > >>> On Mon, May 12, 2025 at 7:43 PM Brian Inglis via Cygwin wrote: > >>>> On 2025-05-12 10:34, Aurélien Couderc via Cygwin wrote: > >>>>> Using Cygwin install on network share in CI fails. > >>>>> This seems to be a recent regression, as this was working a year before. > >> > >> If you have not run it in a year, it is possibly many things have changed in > >> your environment. > > > > The CI runs for *every* commit, with hundreds of commits a day. > > > > My... crime... was to update Cygwin to Cygwin 3.6.1. After that, > > Cygwin no longer works on WIndows network shares. > > > >>>>> Now on Windows 10 with Cygwin 3.6.1 it fails with error 127. > >>>> That can mean a missing DLL function entry. > >> > >>> No, I do not think so, as Cygwin works fine if I install it on NTFS. > >> > >> So you are not installing it on NTFS? > >> What kind of share are you installing it on? > > > > Windows 10 Enterprise (NT-10.0-19045), we use net use N: ... to mount > > the standard Windows network share. AFAIK this is Server Message Block > > 3.1. > > SMB is a network protocol not a storage file system. > What is the underlying file system? NTFS All systems used to demonstrate the issue are a fresh install, no baggage from years of usage etc > > >> Are you installing it using the *latest* download of Cygwin Setup from > >> > >> https://cygwin/com/setup_x86_64.exe > > > > Yes, indeed, we did. > > > >> > >> Do the installed files have all their read and exec bits set - this was an issue > >> with a recent older release of Cygwin Setup where some files did not. > > > > Yes, all DLL files have, per icacls, at least RX (read, execute) set. > > > >>> WIndows DLLS should be fine, and the system is up to date with patches > >>> and has a support contract. > >> > >> Should be is not definite! > >> Patches have been known to cause issues! > >> Does the support contract cover supporting the execution of Cygwin and utilities? > > > > I can ask Microsoft support, but seriously for Microsoft "Cygwin" is a > > 3rd-party product. > I assume you have an IT department which manages Enterprise builds and features? > It can be a good idea to get them involved in Cygwin installs and QC checks that > Cygwin still works after any of their updates. > Remember that Cygwin runs under Windows, and Enterprise builds may drop features > or enable policies or processes that intercept calls Cygwin's API may rely on. > > >>> But Cygwin fails if I install it on a Windows network share. Same > >>> installation procedure (.\setup-x86_64.exe -q --no-write-registry > >>> --no-admin --root %cd% > >>> --no-desktop --site "https://mirrors.kernel.org/sourceware/cygwin"), > >>> just different drive (N: instead of C:) > >> > >> A verbal description of a common failure is inadequate. > >> We are not mind readers and have no idea how your CI environment is set up. > >> Everything works fine in our CI environment, so your environment is defective, > >> and we have no information allowing us to do more than speculate and suggest > >> what may be an issue. > >> > >> It appears possible it is an issue with how the share you are using as a network > >> drive is now set up. > >> It may have been changed recently due to some process or policy change by your > >> IT department. > >> Please ask them what they have done recently that might affect the share you > >> have been using successfully since 2016. > >> > >> Also please note that recent Windows changes have started blocking Cygwin > >> programs with the same names as programs provided by MS (as outdated and > >> insecure versions) like bash, curl, ssh*, tar, etc. possibly under the Windows > >> security heading of Tamper Protection? > > > > I turned off WIndows Defender, for testing purposes, and the result is the same. > > > >> You have failed to respond to requests for actual information about or from the > >> failing environment. > >> We need to see actual output from commands of the file system properties and > >> directory contents and permissions. > > > > There *IS* no output. Everything which depends on cygwin1.dll just > > fails without output. > > That points to BLODA - poorly written software intercepting functions calls: > > https://cygwin.com/faq/faq.html#faq.using.bloda How should that happen? I have tested this with a fresh install of Windows, and even turned Defender OFF. No antivirus running, no debugger, no software to intercept system calls. Just Cygwin stopped working in Cygwin 3.6 if it is installed on SMB (hosted on NTFS on the server side), which worked since years with older versions of Cygwin > > Try installing Cygwin on a local drive and check it works, then use that to > check your setup. > > >> Maybe follow the problem reporting guidelines to run cygcheck -hrsv in the CI > >> and include the output as a plain text attachment to your post. > > > > I need to anonymise that, or IT will want my reprimation. > > > > But the steps I posted fail on ANY Windows 10 and Windows 11 machine I > > have tested so far, Windows Home, Enterprise and Pro. > > All you need are the steps I posted, the KEY being doing an > > installation on Windows Server Message Block filesystem. That is all. > SMB is a network protocol not a storage file system. > What is the underlying file system? > No one else is reporting any such problems, so it is your environment, with your > network share, that is now having issues. I think no one reported it because it is a new problem, and Cygwin is not updated every week Aurélien -- Aurélien Couderc Big Data/Data mining expert, chess enthusiast -- 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