develooper Front page | perl.perl5.porters | Postings from August 2013

[perl #119097] print returning EINTR in 5.14

Thread Previous
From:
Tony Cook via RT
Date:
August 10, 2013 22:51
Subject:
[perl #119097] print returning EINTR in 5.14
Message ID:
rt-3.6.HEAD-30519-1376175073-1168.119097-15-0@perl.org
On Thu Aug 08 01:58:52 2013, nicholas wrote:
> On Fri, Aug 02, 2013 at 03:43:07AM -0700, Victor Efimov via RT wrote:
> > patch attached
> >
> > On Wed Jul 31 17:58:23 2013, sprout wrote:
> > > On Wed Jul 31 16:10:43 2013, vsespb wrote:
> > > > Ok, what if I try to rework this poc code as test case, and
> submit as
> > > patch?
> > > >
> > > > Seems this code fails also on 5.8.x (probably different reason),
> and
> > > > commit be48bbe8d671b6841c3ec7cb734b98071afe3cd9 does not contain
> test.
> > >
> > > If you could, that would be much appreciated.
> > >
> 
> I've added the file to MANIFEST, edited the commit message slightly:
> 
> commit 4a7b8c665e85a42957110900dd00dd5accaf9e46
> Author: Victor <victor@vsespb.ru>
> Date:   Fri Aug 2 14:39:59 2013 +0400
> 
>     Test that print() is not returning EINTR.
> 
>     fails under 5.14.x ( see RT #119097 )
>     also fails under 5.8.x
> 
>     Currently test enabled on linux/bsd/solaris/darwin
> 
>  MANIFEST           |    1 +
>  t/io/eintr_print.t |   87
> ++++++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 88 insertions(+), 0 deletions(-)
> 
> 
> and pushed it to smoke-me/nicholas/rt-119097
> 
> 
> I admit that I *haven't* actually looked closely at the code.

This test has blocked one of my darwin smokers, but doesn't appear to
block every time:

bash-3.2$ ps w
  PID   TT  STAT      TIME COMMAND
 1466 s000  Ss     0:00.02 -bash
 1788 s000  S+     0:00.84 screen -S smoke
 1794 s001  S      0:00.02 bash
 1806 s001  S+     0:00.53 perl /Users/perlsmoke/bin/smoke-me-smoker.pl
smoke.cfg
 1899 s001  S+     0:00.00 sh -c cd /Users/perlsmoke/smoke-me/smoke &&
./smokecurrent.sh -nosmartsmoke -nomail  </dev/null
 1900 s001  SN+    0:00.01 /bin/sh ./smokecurrent.sh -nosmartsmoke -nomail
 1902 s001  SN+    0:01.43 /usr/bin/perl ./smokeperl.pl -c
smokecurrent_config -nosmartsmoke -nomail
17935 s001  SN+    0:00.14 make test_harness
21640 s001  SN+    0:00.00 /bin/sh -e ./runtests choose
21642 s001  SN+    0:40.22 ./perl harness
22314 s001  SN+    0:00.04 ./perl -I.. -MTestInit io/eintr_print.t
22315 s001  ZN+    0:00.00 (perl)
58632 s002  S      0:00.02 bash
bash-3.2$ ./smokestatus.pl -am
Checking status for configuration 'smokecurrent_config' (5.11.x)
  Change number 4a7b8c665e85a42957110900dd00dd5accaf9e46 started on Fri
Aug  9 10:54:54 2013.
    1 out of 16 configurations finished in 1 day 21 hours 44 minutes.
    1 configuration showed failures (F).
    0 failures in the running configuration.
    15 configurations to finish, estimated completion in 28 days 13
hours 53 minutes
    Average smoke duration: 1 day 21 hours 44 minutes.
  Matrix, using cc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM
build 2335.15.00):
  v5.19.2-316-g4a7b8c6  Configuration (common) none
  ----------- ---------------------------------------------------------
  F O ? -
  | | | +----- PERLIO = perlio -DDEBUGGING
  | | +------- PERLIO = stdio  -DDEBUGGING
  | +--------- PERLIO = perlio
  +----------- PERLIO = stdio
bash-3.2$ uname -a
Darwin pallas.tony.develop-help.com 11.4.2 Darwin Kernel Version 11.4.2:
Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64

The F is from me killing the first blockage.

Running the test directly and via harness in a loop a few hundred times
didn't block.

Tony



---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=119097

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About