From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1083 invoked by alias); 20 Dec 2008 09:15:16 -0000 Received: (qmail 1073 invoked by uid 22791); 20 Dec 2008 09:15:15 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from fed1rmmtao107.cox.net (HELO fed1rmmtao107.cox.net) (68.230.241.39) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 20 Dec 2008 09:14:34 +0000 Received: from fed1rmimpo02.cox.net ([70.169.32.72]) by fed1rmmtao107.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20081220091427.BIBQ131.fed1rmmtao107.cox.net@fed1rmimpo02.cox.net> for ; Sat, 20 Dec 2008 04:14:27 -0500 Received: from [192.168.1.102] ([68.107.41.113]) by fed1rmimpo02.cox.net with bizsmtp id tMET1a0052SVYAk04METeJ; Sat, 20 Dec 2008 04:14:27 -0500 X-Authority-Analysis: v=1.0 c=1 a=8ujZTYFVIqAA:10 a=hVM6fedzal8A:10 a=_UpQAvtwSJZiEsH9ufwA:9 a=hWoUmAYVVEa2Bn_PeXH0CBaenUwA:4 a=BcKeTrsrUDYA:10 X-CM-Score: 0.00 Message-ID: <494CB77F.4040403@i12.com> Date: Sat, 20 Dec 2008 09:15:00 -0000 From: Lawrence Mayer User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1b3pre) Gecko/20081204 Thunderbird/3.0b1 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: [1.7] Pipes intermittently lose data on Cygwin 1.7 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2008-12/txt/msg00514.txt.bz2 Pipes intermittently lose data on Cygwin 1.7.0-35 and -36. This bug appears generic to pipes under Cygwin 1.7 and not limited to any particular app. To reproduce this bug, create a ~ 5 MB text file foo. tr \32 \0 < foo | tr \0 \32 > bar should make bar = foo. But intermittently, bar is truncated and missing the end of foo. You can quickly tell by monitoring the file sizes: intermittently bar is smaller than foo. The bug appears generic to pipes under Cygwin 1.7, e.g. sed s/\x1a/\x0/ foo | sed s/\x0/\x1a/ > bar sort foo | tr \32 \0 > bar cat foo | tr \32 \0 > bar tac foo | tac > bar cat foo | cat | cat > bar all cause intermittent loss of data, where bar is sometimes truncated and missing the end of foo (or beginning of foo in tac example). (The last example contains 2 pipes, since cat foo | cat > bar appears more resistant to this bug and only occasionally loses data.) This bug is difficult to reproduce on my system when foo < ~ 3 MB. Hence the recommendation above for foo ~ 5 MB. This bug is present in Cygwin 1.7.0-35 and 1.7.0-36. I have not tested earlier 1.7 builds. This bug appears new to Cygwin 1.7 and not present in Cygwin 1.5.25-15. Greetings, Lawrence Versions tested: Cygwin 1.7.0-36 and 1.7.0-35 with coreutils 7.0-2 and sed 4.1.5-2 Cygwin 1.5.25-15 with coreutils 6.10-2 and sed 4.1.5-2 OS: Windows Server 2003 sp2 32-bit. Cygwin installed on NTFS drive C:. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/