public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* pipe handling errors
@ 2014-07-14 17:40 Nellis, Kenneth
  2014-07-15  9:49 ` Corinna Vinschen
  0 siblings, 1 reply; 15+ messages in thread
From: Nellis, Kenneth @ 2014-07-14 17:40 UTC (permalink / raw)
  To: cygwin

When running a bash pipeline using the latest 64-bit packages, 
I occasionally get output like the following:

1479561950 [waitproc] -bash 10000 sig_send: error sending signal 20, pipe handle 0x2710, nb 132, packsize 0, Win32 error 109

That one was the result of: strings <binary file> | grep <pattern> | sort | uniq -c

Here's a different one that I got twice when sending "strings" 
output to "grep" and once sending "strings" output to "wc -l":

605884587 [main] -bash 10000 sig_send: error sending signal -66, pipe handle 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, 
but not a third time, so I suspect a race condition.

      1 [main] -bash 9528 sig_send: error sending signal -34, pipe handle 0x2538, 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. 
This one also was: strings <binary file> | grep <pattern>

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, 
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 Cygwin
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

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: pipe handling errors
@ 2014-07-16 17:36 Ti Strga
  2014-07-17  8:25 ` Corinna Vinschen
  0 siblings, 1 reply; 15+ messages in thread
From: Ti Strga @ 2014-07-16 17:36 UTC (permalink / raw)
  To: cygwin

Christopher Faylor wrote:
> Increasing the size of the buffer should have been enough to fix the
> problem but, when possible, I like to use two forms of protection when I
> fix a bug.

I recall someone on a project here doing a bugfix with a commit log like:

    yyyy-mm-dd The Guy's Name <blah@blah>

    Fix #nnnnn
    foo.cc (func1):  Belt.
    bar.cc (func2):  Suspenders.

Anyhow, I'm looking forward to trying out the fix myself.  We've been
getting those errors here but not nearly as often.

--
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

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2014-07-17  8:25 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-14 17:40 pipe handling errors Nellis, Kenneth
2014-07-15  9:49 ` Corinna Vinschen
2014-07-15 13:51   ` Nellis, Kenneth
2014-07-15 15:45     ` Corinna Vinschen
2014-07-15 18:53       ` Nellis, Kenneth
2014-07-15 19:17         ` Nellis, Kenneth
2014-07-15 19:36           ` Nellis, Kenneth
2014-07-15 19:52           ` Christopher Faylor
2014-07-15 20:40             ` Nellis, Kenneth
2014-07-15 22:05               ` Christopher Faylor
2014-07-15 22:27                 ` Christopher Faylor
2014-07-16 12:44                   ` Nellis, Kenneth
2014-07-16 14:28                     ` Christopher Faylor
2014-07-16 17:36 Ti Strga
2014-07-17  8:25 ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).