Re: WinSG Re: [Ms-nfs41-client-devel] ANN: NFSv4.1 filesystem client Windows driver binaries for Windows 10/11 for testing, 2024-05-28 ...

2024-05-30 Thread Dan Shelton via Cygwin
On Wed, 29 May 2024 at 15:37, Bill Stewart via Cygwin wrote: > > On Tue, May 28, 2024 at 8:29 PM Dan Shelton wrote: > > Just a couple of ideas: > > - Native Windows doesn't have an easy way to list group memberships > > for the current user, so a WinSG -l to list available groups would be > >

Re: Run explorer.exe with Cygwin newgrp(1) - same user but different primary group

2024-05-30 Thread Dan Shelton via Cygwin
On Wed, 29 May 2024 at 15:41, Bill Stewart via Cygwin wrote: > > On Tue, May 28, 2024 at 9:36 PM Dan Shelton wrote: > > > > Does anyone know how to run Windows explorer.exe with Cygwin > > /bin/newgrp, so all new files created by explorer.exe use that new > > primary group, and all programs

Re: Run explorer.exe with Cygwin newgrp(1) - same user but different primary group

2024-05-30 Thread Dan Shelton via Cygwin
On Wed, 29 May 2024 at 15:41, Bill Stewart via Cygwin wrote: > > On Tue, May 28, 2024 at 9:36 PM Dan Shelton wrote: > > > > Does anyone know how to run Windows explorer.exe with Cygwin > > /bin/newgrp, so all new files created by explorer.exe use that new > > primary group, and all programs

Re: TeX Live 2024:: asympote 2.88-1 hangs after outputting a pdf

2024-05-30 Thread Ken Brown via Cygwin
On 5/30/2024 3:39 PM, Jon Turney via Cygwin wrote: On 27/05/2024 16:14, Ken Brown via Cygwin wrote: On 5/27/2024 5:17 AM, Lemures Lemniscati via Cygwin wrote: On Sun, 26 May 2024 18:02:54 -0400, Ken Brown via Cygwin Here is a log from gdb. Will it help?   run   info threads   info stack   list

Re: TeX Live 2024:: asympote 2.88-1 hangs after outputting a pdf

2024-05-30 Thread Jon Turney via Cygwin
On 27/05/2024 16:14, Ken Brown via Cygwin wrote: On 5/27/2024 5:17 AM, Lemures Lemniscati via Cygwin wrote: On Sun, 26 May 2024 18:02:54 -0400, Ken Brown via Cygwin Here is a log from gdb. Will it help?   run   info threads   info stack   list $ HOME=/tmp gdb --args asy -vv -f pdf test [...]

Re: ftp.acc.umu.se domain move

2024-05-30 Thread Jon Turney via Cygwin
On 23/05/2024 15:13, Niklas Edmundsson via Cygwin wrote: Hi! The contact information, and preferably the host/mirror name, for the mirror provided by Academic Computer Club (ACC) needs to be changed as ACC is moving to a new domain. To verify the validity of this message, point a web browser

[ITP] python-license-expression and cygport PoC patch (was: calm: SPDX licence list data update please)

2024-05-30 Thread Brian Inglis via Cygwin-apps
On 2024-05-28 08:37, Brian Inglis via Cygwin-apps wrote: On 2024-05-27 15:15, Jon Turney via Cygwin-apps wrote: On 24/05/2024 17:08, Brian Inglis via Cygwin-apps wrote: Can we please get the SPDX licence list data updated in calm to 3.24 sometime if possible as the licences complained about

Fwd: newer version of mingw64-*-win-iconv ?

2024-05-30 Thread Brian Inglis via Cygwin-apps
On 2024-05-29 02:53, Bruno Haible via Cygwin wrote: Brian Inglis wrote: Ran playground local and CI builds of these packages at v0.0.8 successfully: https://cygwin.com/cgi-bin2/jobs.cgi?srcpkg=mingw64-x86_64-win-iconv and

Re: newer version of mingw64-*-win-iconv ?

2024-05-30 Thread Brian Inglis via Cygwin
On 2024-05-29 02:53, Bruno Haible via Cygwin wrote: Brian Inglis wrote: Ran playground local and CI builds of these packages at v0.0.8 successfully: https://cygwin.com/cgi-bin2/jobs.cgi?srcpkg=mingw64-x86_64-win-iconv and

Re: SRW locks

2024-05-30 Thread Bruno Haible via Cygwin
Noel Grandin wrote: > > Still: Does ReleaseSRWLockExclusive notify other threads? > > > > Of course? How else would a lock work, it must release other waiters? > > It might not be a fair lock though, which is not a problem for this > situation, which does not require fair locking. > > > >

Re: [PATCH v2] Cygwin: pthread: Fix a race issue introduced by the commit 2c5433e5da82

2024-05-30 Thread Bruno Haible via Cygwin
Takashi Yano wrote in cygwin-patches: > With v3 patch: > int > pthread::once (pthread_once_t *once_control, void (*init_routine) (void)) > { > /* Sign bit of once_control->state is used as done flag */ > if (once_control->state & INT_MIN) > return 0; > > /* The type of _control->state

Re: Use Cygwin gcc or clang to build with ucrt?

2024-05-30 Thread Jon Turney via Cygwin
On 22/05/2024 00:30, Dan Shelton via Cygwin wrote: Hello! Can Cygwin gcc or clang be used to use ucrt instead of cygwin.dll/mingw.dll? We provide a cross-compiler targeting the Win32 API, but this only support msvcrt currently. [1]

Re: LD_PRELOAD for Win32?

2024-05-30 Thread Jon Turney via Cygwin
On 25/05/2024 22:55, Martin Wege via Cygwin wrote: Hello, Does Cygwin or Win32 have something like LD_PRELOAD, so I can override/substitute functions in a DLL or EXE, like it is common for UNIX/Linux ELF shared libraries? This is not generally available on Win32, due to limitations of the PE

Re: [PATCH v2] Cygwin: pthread: Fix a race issue introduced by the commit 2c5433e5da82

2024-05-30 Thread Takashi Yano
On Thu, 30 May 2024 20:50:12 +0900 Takashi Yano wrote: > On Thu, 30 May 2024 12:14:10 +0200 > Bruno Haible wrote: > > Takashi Yano wrote in cygwin-patches: > > > int > > > pthread::once (pthread_once_t *once_control, void (*init_routine) (void)) > > > { > > > - // already done ? > > > - if

[PATCH v3] Cygwin: pthread: Fix a race issue introduced by the commit 2c5433e5da82

2024-05-30 Thread Takashi Yano
To avoid race issues, pthread::once() uses pthread_mutex. This caused the handle leak which was fixed by the commit 2c5433e5da82. However, this fix introduced another race issue, i.e., the mutex may be used after it is destroyed. This patch fixes the issue. Special thanks to Bruno Haible for

Re: [PATCH v2] Cygwin: pthread: Fix a race issue introduced by the commit 2c5433e5da82

2024-05-30 Thread Takashi Yano
On Thu, 30 May 2024 12:14:10 +0200 Bruno Haible wrote: > Takashi Yano wrote in cygwin-patches: > > int > > pthread::once (pthread_once_t *once_control, void (*init_routine) (void)) > > { > > - // already done ? > > - if (once_control->state) > > + /* Sign bit of once_control->state is used

Re: [PATCH v2] Cygwin: pthread: Fix a race issue introduced by the commit 2c5433e5da82

2024-05-30 Thread Noel Grandin via Cygwin
On 5/30/2024 11:15 AM, Bruno Haible wrote: Still: Does ReleaseSRWLockExclusive notify other threads? Of course? How else would a lock work, it must release other waiters? It might not be a fair lock though, which is not a problem for this situation, which does not require fair locking.

Re: [PATCH v2] Cygwin: pthread: Fix a race issue introduced by the commit 2c5433e5da82

2024-05-30 Thread Bruno Haible via Cygwin
Takashi Yano wrote in cygwin-patches: > int > pthread::once (pthread_once_t *once_control, void (*init_routine) (void)) > { > - // already done ? > - if (once_control->state) > + /* Sign bit of once_control->state is used as done flag */ > + if (once_control->state & INT_MIN) > return

Re: [PATCH v2] Cygwin: pthread: Fix a race issue introduced by the commit 2c5433e5da82

2024-05-30 Thread Bruno Haible via Cygwin
Noel Grandin wrote: > > SRW locks are spin-locks. Since they are only pointer-sized, > > ReleaseSRWLockExclusive cannot notify other threads — unlike > > CRITICAL_SECTION. > > Therefore, AcquireSRWLockExclusive must busy-loop when the lock is already > > held. > > > > No, they only spin

Re: [PATCH v2] Cygwin: pthread: Fix a race issue introduced by the commit 2c5433e5da82

2024-05-30 Thread Noel Grandin via Cygwin
On 5/30/2024 10:47 AM, Bruno Haible wrote: SRW locks are spin-locks. Since they are only pointer-sized, ReleaseSRWLockExclusive cannot notify other threads — unlike CRITICAL_SECTION. Therefore, AcquireSRWLockExclusive must busy-loop when the lock is already held. No, they only spin

Re: [PATCH v2] Cygwin: pthread: Fix a race issue introduced by the commit 2c5433e5da82

2024-05-30 Thread Bruno Haible via Cygwin
Noel Grandin wrote in cygwin-patches: > Pardon my ignorance, but why not rather use the Windows SRWLock functionality? > https://learn.microsoft.com/en-us/windows/win32/sync/slim-reader-writer--srw--locks > > SRW locks are very fast, only require a single pointer-sized storage area, > can be

Request: please update to coreutils >=9.1

2024-05-30 Thread Lluís Batlle i Rossell via Cygwin
Hello, there are 3 coreutils versions in cygwin: 8.26, 8.32 and 9.0. 8.32 has a big bug on "cp" that leaks file descriptors. Copying many files it dies with Too many open files. 9.0 has a bug that makes any chmod fail silently if it is applied to symlink. Both bugs have the impact that we are