develooper Front page | perl.perl5.porters | Postings from July 2011

Investigating stalled pipes (provoked by t/io/eintr.t hanging)

Thread Next
Tom Hukins
July 4, 2011 06:11
Investigating stalled pipes (provoked by t/io/eintr.t hanging)
Message ID:

Recently t/io/eintr.t has highlighted problems with pipes and perl on FreeBSD
and a few other operating systems.  On FreeBSD, these tests began stalling
after a commit that increased PERLIOBUF_DEFAULT_BUFSIZ to of 8192 bytes:

The most recent discussion happened here:

Older discussions happened here:

I decided to investigate, but had trouble understanding which part of perl's
source code implements pipes after a brief look.  After this, I wrote a short C
program that I hoped would demonstrate the problems with stalling pipes (see
attached file).  I could not reproduce the problem, so it seems to me that the
fault lies somewhere within perl, not FreeBSD.  However, I lack confidence with
C, so please review my program and check I made no mistakes.

Please let me know if I can do any more to help track down what's going on.


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About