3.2.0-1: possible regression Cygwin DDL bug (W10) when using multiple pipes
M2
m2f2@libero.it
Fri Apr 30 13:05:07 GMT 2021
On 29/04/2021 01:39, Takashi Yano wrote:
> On Wed, 28 Apr 2021 22:17:44 +0200
> M2 via Cygwin <cygwin@cygwin.com> wrote:
>> On 28/04/2021 16:36, Takashi Yano wrote:
>>> On Wed, 28 Apr 2021 15:38:13 +0200
>>> M2 via Cygwin <cygwin@cygwin.com> wrote:
>>>> Hi,
>>>> I found a possible regression issue between cygwin 3.1.7-1 and 3.2.0-1.
>>>>
>>>> The issue happens with "short" output in multiple piping, such as the following example:
>>>>
>>>> dir | grep c | sed "s/^/foo/" | sed "s/oo/OO/"
>>>>
>>>> (the case I run is different, but the bug is exposed by something silly/simple as this)
>>>>
>>>>
>>>> In 3.1.7, all is fine and you get what you expect.
>>>>
>>>> In 3.2.0, 3 out of 4 executions hang: the last command on the pipeline (i.e. `sed "s/oo/OO/"`)
>>>> hangs forever, while all preceding commands (i.e. both `grep c` and `sed "s/^/foo/"`) terminate correctly.
>>>>
>>>> Attached, cygcheck outputs for both 3.1.7 and 3.2.0
>>> I cannot reproduce your problem.
>>>
>>> In 64 bit cygwin:
>>>
>>> ...
>>>
>>> In 32 bit cygwin:
>>> ...
>>>
>> Some clarification: I run a mixed configuration with Cygwin commands
>> mostly ran in CMD.EXE shell.
>>
>> In my installation it seems that output from a WINDOWS console program
>> causes trouble when piped to a CYGWIN process.
>>
>> Close repetition such as loops tend to cause the bug.
>>
>> ...
> I got it. Could you please try the latest cygwin snapshot?
> https://cygwin.com/snapshots/
>
> Thanks.
>
Good news! Seems to work again/fixed in snapshot
https://cygwin.com/snapshots/x86_64/cygwin1-20210426.dll.xz
3533k 2021/04/30 c:\cygwin\bin\cygwin1.dll
Cygwin DLL version info:
DLL version: 3.2.1
DLL epoch: 19
DLL old termios: 5
DLL malloc env: 28
Cygwin conv: 181
API major: 0
API minor: 340
Shared data: 5
DLL identifier: cygwin1
Mount registry: 3
Cygwin registry name: Cygwin
Installations name: Installations
Cygdrive default prefix:
Build date:
Snapshot date: 20210426-14:41:00
Shared id: cygwin1S5
Thanks!
Mauro
More information about the Cygwin
mailing list