From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13277 invoked by alias); 14 Jul 2014 17:40:27 -0000 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 Received: (qmail 13219 invoked by uid 89); 14 Jul 2014 17:40:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: USA7109MR004.ACS-INC.COM Received: from usa7109mr004.acs-inc.com (HELO USA7109MR004.ACS-INC.COM) (63.101.151.13) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Mon, 14 Jul 2014 17:40:20 +0000 Received: from usa7109ht001.na.xerox.net ([13.41.230.31]) by USA7109MR004.ACS-INC.COM with ESMTP/TLS/AES128-SHA; 14 Jul 2014 12:40:18 -0500 Received: from USA7109MB022.na.xerox.net ([169.254.6.84]) by USA7109HT001.na.xerox.net ([13.41.230.31]) with mapi id 14.03.0174.001; Mon, 14 Jul 2014 12:40:17 -0500 From: "Nellis, Kenneth" To: "cygwin@cygwin.com" Subject: pipe handling errors Date: Mon, 14 Jul 2014 17:40:00 -0000 Message-ID: <0D835E9B9CD07F40A48423F80D3B5A702E7EA6EB@USA7109MB022.na.xerox.net> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2014-07/txt/msg00149.txt.bz2 When running a bash pipeline using the latest 64-bit packages,=20 I occasionally get output like the following: 1479561950 [waitproc] -bash 10000 sig_send: error sending signal 20, pipe h= andle 0x2710, nb 132, packsize 0, Win32 error 109 That one was the result of: strings | grep | sort |= uniq -c Here's a different one that I got twice when sending "strings"=20 output to "grep" and once sending "strings" output to "wc -l": 605884587 [main] -bash 10000 sig_send: error sending signal -66, pipe handl= e 0x2710, nb 132, packsize 0, Win32 error 0 I haven't found them to be repeatable. I just tried on 32-bit Cygwin and got the following twice in a row,=20 but not a third time, so I suspect a race condition. 1 [main] -bash 9528 sig_send: error sending signal -34, pipe handle 0= x2538, nb 152, packsize 0, Win32 error 0 25098461 [main] -bash 9528 sig_send: error sending signal -34, pipe handle = 0x2538, nb 152, packsize 0, Win32 error 0 The initial "1" on the first one looks interesting.=20 This one also was: strings | grep The common element in all these examples was generating the pipeline data with "strings". I don't recall whether strings was always involved or not. Not a big concern because the generated output looks correct,=20 but a tad annoying. Thought it worth reporting. FWIW, on 64-bit: Cygwin64> uname -a CYGWIN_NT-6.1 COR900GFY5 1.7.30(0.272/5/3) 2014-05-23 10:36 x86_64 Cygwin Cygwin64> cygcheck -f `which strings` binutils-2.24.51-4 Cygwin64> On 32-bit: Cygwin32> uname -a CYGWIN_NT-6.1-WOW64 COR900GFY5 1.7.30(0.272/5/3) 2014-05-23 10:36 i686 Cygw= in Cygwin32> cygcheck -f `which strings` binutils-2.24.51-4 Cygwin32> --Ken Nellis -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple