pipe hang issue when running as SYSTEM

Roumen Petrov bugtrack@roumenpetrov.info
Fri Mar 25 07:48:49 GMT 2022


Hi,

Takashi Yano wrote:
> [SNIP]
>> Just got another report to MSYS2 of this behavior, this time from a Gitlab
>> CI runner that is running as a service and trying to pipe output from
>> Microsoft cl.exe while running configure.  This user reports that 3.3.4
>> with your "[PATCH v2] Cygwin: pipe: Avoid deadlock for non-cygwin writer."
>> applied to it does not solve the problem.
>>
>> https://github.com/msys2/MSYS2-packages/issues/2893
> I can confirm the sample script hangs indeed if the script is
> running as SYSTEM account. However, in my test, the patch solves
> the issue.
>
> It would be very helpfull if a simple github repository with
> github actions, which can reproduce the issue, is provided.

In my environment with AD user account:

$ cmd.exe /c "type big_file" | :

The process tried to write to a nonexistent pipe.

$ cat big_file | :

*** starting debugger for pid NNN tid KKKKK

$ uname -a

CYGWIN_NT-10.0 ZZZZZZZ 3.3.4(0.341/5/3) 2022-01-31 19:35 x86_64 Cygwin

Remarks:
- no way to debug
- no error if run as administrator

Regards,
Roumen Petrov



More information about the Cygwin mailing list