FAQ

On Mon Jul 12 08:30:07 2010, vernonlyon wrote:

This patch makes it possible to use open3 in Apache to handle uploads,
without it it dies.
Thank you. I’ve applied this as fb9b5b31d8a62644191f4e414a66124e86f30797.

Search Discussions

  • Tony Cook via RT at Sep 27, 2010 at 1:21 am

    On Sun Sep 26 06:46:54 2010, sprout wrote:
    On Mon Jul 12 08:30:07 2010, vernonlyon wrote:

    This patch makes it possible to use open3 in Apache to handle uploads,
    without it it dies.
    Thank you. I’ve applied this as fb9b5b31d8a62644191f4e414a66124e86f30797.
    The test for this added in a0ed8b7b5f7f fails with PERLIO=stdio:

    tony@mars:.../perl/t$ PERLIO=stdio ./perl harness -v ../ext/IPC-Open3/t/fd.t
    ../ext/IPC-Open3/t/fd.t ..
    1..1
    # Failed at t/fd.t line 10
    not ok 1 - dup STDIN in a child process by using its file descriptor
    Failed 1/1 subtests

    Test Summary Report
    -------------------
    ../ext/IPC-Open3/t/fd.t (Wstat: 0 Tests: 1 Failed: 1)
    Failed test: 1
    Files=1, Tests=1, 0 wallclock secs ( 0.01 usr 0.00 sys + 0.01 cusr
    0.01 csys = 0.03 CPU)
    Result: FAIL
  • Tony Cook at Sep 27, 2010 at 11:04 am

    On Sun, Sep 26, 2010 at 06:46:55AM -0700, Father Chrysostomos via RT wrote:
    On Mon Jul 12 08:30:07 2010, vernonlyon wrote:

    This patch makes it possible to use open3 in Apache to handle uploads,
    without it it dies.
    Thank you. I’ve applied this as fb9b5b31d8a62644191f4e414a66124e86f30797.
    The test added in a0ed8b7b5f7f fails with PERLIO=stdio on Linux:

    tony@mars:.../perl/t$ PERLIO=stdio ./perl harness -v ../ext/IPC-Open3/t/fd.t
    ../ext/IPC-Open3/t/fd.t ..
    1..1
    # Failed at t/fd.t line 10
    not ok 1 - dup STDIN in a child process by using its file descriptor
    Failed 1/1 subtests

    Test Summary Report
    -------------------
    ../ext/IPC-Open3/t/fd.t (Wstat: 0 Tests: 1 Failed: 1)
    Failed test: 1
    Files=1, Tests=1, 0 wallclock secs ( 0.01 usr 0.00 sys + 0.02 cusr 0.00 csys = 0.03 CPU)
    Result: FAIL

    On Win32 it blocks:

    C:\Users\tony\dev\perl\git\perl\t>.\perl harness -v ..\ext\IPC-Open3\t\fd.t
    ../ext/IPC-Open3/t/fd.t ..
    1..1

    unless you supply some input:

    C:\Users\tony\dev\perl\git\perl\t>.\perl harness -v ..\ext\IPC-Open3\t\fd.t
    ../ext/IPC-Open3/t/fd.t ..
    1..1
    some input
    ^Z
    # Failed at t/fd.t line 10
    not ok 1 - dup STDIN in a child process by using its file descriptor
    Failed 1/1 subtests

    Test Summary Report
    -------------------
    ../ext/IPC-Open3/t/fd.t (Wstat: 0 Tests: 1 Failed: 1)
    Failed test: 1
    Files=1, Tests=1, 6 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU)
    Result: FAIL

    C:\Users\tony\dev\perl\git\perl\t>.\perl harness -v ..\ext\IPC-Open3\t\fd.t <nul

    ../ext/IPC-Open3/t/fd.t ..
    1..1
    # Failed at t/fd.t line 10
    not ok 1 - dup STDIN in a child process by using its file descriptor
    Failed 1/1 subtests

    Test Summary Report
    -------------------
    ../ext/IPC-Open3/t/fd.t (Wstat: 0 Tests: 1 Failed: 1)
    Failed test: 1
    Files=1, Tests=1, 1 wallclock secs ( 0.01 usr + 0.00 sys = 0.01 CPU)
    Result: FAIL

    C:\Users\tony\dev\perl\git\perl\t>

    Tony
  • Father Chrysostomos via RT at Sep 27, 2010 at 1:48 pm

    On Mon Sep 27 04:04:48 2010, tonyc wrote:
    On Sun, Sep 26, 2010 at 06:46:55AM -0700, Father Chrysostomos via RT
    wrote:
    On Mon Jul 12 08:30:07 2010, vernonlyon wrote:

    This patch makes it possible to use open3 in Apache to handle
    uploads,
    without it it dies.
    Thank you. I’ve applied this as
    fb9b5b31d8a62644191f4e414a66124e86f30797.

    The test added in a0ed8b7b5f7f fails with PERLIO=stdio on Linux:

    tony@mars:.../perl/t$ PERLIO=stdio ./perl harness -v ../ext/IPC-
    Open3/t/fd.t
    ../ext/IPC-Open3/t/fd.t ..
    1..1
    # Failed at t/fd.t line 10
    not ok 1 - dup STDIN in a child process by using its file descriptor
    Failed 1/1 subtests
    Does 0c24d2685a66bebbc5dc94a26dbeecb1aed3265b make the problem go away?
  • Tony Cook at Sep 27, 2010 at 2:23 pm

    On Mon, Sep 27, 2010 at 06:48:11AM -0700, Father Chrysostomos via RT wrote:
    On Mon Sep 27 04:04:48 2010, tonyc wrote:
    On Sun, Sep 26, 2010 at 06:46:55AM -0700, Father Chrysostomos via RT
    wrote:
    On Mon Jul 12 08:30:07 2010, vernonlyon wrote:

    This patch makes it possible to use open3 in Apache to handle
    uploads,
    without it it dies.
    Thank you. I’ve applied this as
    fb9b5b31d8a62644191f4e414a66124e86f30797.

    The test added in a0ed8b7b5f7f fails with PERLIO=stdio on Linux:

    tony@mars:.../perl/t$ PERLIO=stdio ./perl harness -v ../ext/IPC-
    Open3/t/fd.t
    ../ext/IPC-Open3/t/fd.t ..
    1..1
    # Failed at t/fd.t line 10
    not ok 1 - dup STDIN in a child process by using its file descriptor
    Failed 1/1 subtests
    Does 0c24d2685a66bebbc5dc94a26dbeecb1aed3265b make the problem go away?
    It fixes the PERLIO=stdio failure.

    It doesn't fix the block (or failure) under Win32.

    Tony
  • Father Chrysostomos via RT at Sep 27, 2010 at 2:48 pm

    On Mon Sep 27 07:24:21 2010, tonyc wrote:
    On Mon, Sep 27, 2010 at 06:48:11AM -0700, Father Chrysostomos via RT
    wrote:
    On Mon Sep 27 04:04:48 2010, tonyc wrote:
    On Sun, Sep 26, 2010 at 06:46:55AM -0700, Father Chrysostomos via RT
    wrote:
    On Mon Jul 12 08:30:07 2010, vernonlyon wrote:

    This patch makes it possible to use open3 in Apache to handle
    uploads,
    without it it dies.
    Thank you. I’ve applied this as
    fb9b5b31d8a62644191f4e414a66124e86f30797.

    The test added in a0ed8b7b5f7f fails with PERLIO=stdio on Linux:

    tony@mars:.../perl/t$ PERLIO=stdio ./perl harness -v ../ext/IPC-
    Open3/t/fd.t
    ../ext/IPC-Open3/t/fd.t ..
    1..1
    # Failed at t/fd.t line 10
    not ok 1 - dup STDIN in a child process by using its file descriptor
    Failed 1/1 subtests
    Does 0c24d2685a66bebbc5dc94a26dbeecb1aed3265b make the problem go away?
    It fixes the PERLIO=stdio failure.

    It doesn't fix the block (or failure) under Win32.

    Tony
    I’m not sure how to fix that. Why is it blocking? Should this test just
    be skipped on Windows?
  • Tony Cook at Sep 27, 2010 at 3:06 pm

    On Mon, Sep 27, 2010 at 07:48:34AM -0700, Father Chrysostomos via RT wrote:
    On Mon Sep 27 07:24:21 2010, tonyc wrote:
    On Mon, Sep 27, 2010 at 06:48:11AM -0700, Father Chrysostomos via RT
    wrote:
    On Mon Sep 27 04:04:48 2010, tonyc wrote:
    On Sun, Sep 26, 2010 at 06:46:55AM -0700, Father Chrysostomos via RT
    wrote:
    On Mon Jul 12 08:30:07 2010, vernonlyon wrote:

    This patch makes it possible to use open3 in Apache to handle
    uploads,
    without it it dies.
    Thank you. I’ve applied this as
    fb9b5b31d8a62644191f4e414a66124e86f30797.

    The test added in a0ed8b7b5f7f fails with PERLIO=stdio on Linux:

    tony@mars:.../perl/t$ PERLIO=stdio ./perl harness -v ../ext/IPC-
    Open3/t/fd.t
    ../ext/IPC-Open3/t/fd.t ..
    1..1
    # Failed at t/fd.t line 10
    not ok 1 - dup STDIN in a child process by using its file descriptor
    Failed 1/1 subtests
    Does 0c24d2685a66bebbc5dc94a26dbeecb1aed3265b make the problem go away?
    It fixes the PERLIO=stdio failure.

    It doesn't fix the block (or failure) under Win32.

    Tony
    I’m not sure how to fix that. Why is it blocking? Should this test just
    be skipped on Windows?
    It's trying to reading something (anything!) from stdin:

    C:\Users\tony\dev\perl\git\perl\t>.\perl harness -v ..\ext\IPC-Open3\t\fd.t
    ../ext/IPC-Open3/t/fd.t ..
    1..1
    any sort of input
    more input
    ^Z
    # Failed at t/fd.t line 16
    not ok 1 - dup STDIN in a child process by using its file descriptor
    Failed 1/1 subtests

    Test Summary Report
    -------------------
    ../ext/IPC-Open3/t/fd.t (Wstat: 0 Tests: 1 Failed: 1)
    Failed test: 1
    Files=1, Tests=1, 13 wallclock secs ( 0.00 usr + 0.02 sys = 0.02 CPU)
    Result: FAIL

    C:\Users\tony\dev\perl\git\perl\t>.\perl harness -v ..\ext\IPC-Open3\t\fd.t <nul

    ../ext/IPC-Open3/t/fd.t ..
    1..1
    # Failed at t/fd.t line 16
    not ok 1 - dup STDIN in a child process by using its file descriptor
    Failed 1/1 subtests

    Test Summary Report
    -------------------
    ../ext/IPC-Open3/t/fd.t (Wstat: 0 Tests: 1 Failed: 1)
    Failed test: 1
    Files=1, Tests=1, 0 wallclock secs ( 0.02 usr + 0.00 sys = 0.02 CPU)
    Result: FAIL

    C:\Users\tony\dev\perl\git\perl\t>

    It may be the stderr key causing the failure, if I comment it out:

    C:\Users\tony\dev\perl\git\perl\t>.\perl harness -v ..\ext\IPC-Open3\t\fd.t <nul

    ../ext/IPC-Open3/t/fd.t ..
    1..1
    Use of uninitialized value in hash element at ../../lib/IPC/Open3.pm line 399.
    ok 1 - dup STDIN in a child process by using its file descriptor
    ok
    All tests successful.
    Files=1, Tests=1, 0 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU)
    Result: PASS

    C:\Users\tony\dev\perl\git\perl\t>

    If I also set stdin => '' then:

    C:\Users\tony\dev\perl\git\perl\t>.\perl harness -v ..\ext\IPC-Open3\t\fd.t
    ../ext/IPC-Open3/t/fd.t ..
    1..1
    Use of uninitialized value in hash element at ../../lib/IPC/Open3.pm line 399.
    ok 1 - dup STDIN in a child process by using its file descriptor
    ok
    All tests successful.
    Files=1, Tests=1, 0 wallclock secs ( 0.03 usr + 0.00 sys = 0.03 CPU)
    Result: PASS

    Does that warning indicate another issue, or is it expected?

    Tony
  • Father Chrysostomos via RT at Sep 27, 2010 at 11:53 pm

    On Mon Sep 27 08:06:37 2010, tonyc wrote:
    On Mon, Sep 27, 2010 at 07:48:34AM -0700, Father Chrysostomos via RT
    wrote:
    On Mon Sep 27 07:24:21 2010, tonyc wrote:
    On Mon, Sep 27, 2010 at 06:48:11AM -0700, Father Chrysostomos via
    RT
    wrote:
    On Mon Sep 27 04:04:48 2010, tonyc wrote:
    On Sun, Sep 26, 2010 at 06:46:55AM -0700, Father Chrysostomos
    via RT
    wrote:
    On Mon Jul 12 08:30:07 2010, vernonlyon wrote:

    This patch makes it possible to use open3 in Apache to
    handle
    uploads,
    without it it dies.
    Thank you. I’ve applied this as
    fb9b5b31d8a62644191f4e414a66124e86f30797.

    The test added in a0ed8b7b5f7f fails with PERLIO=stdio on
    Linux:
    tony@mars:.../perl/t$ PERLIO=stdio ./perl harness -v
    ../ext/IPC-
    Open3/t/fd.t
    ../ext/IPC-Open3/t/fd.t ..
    1..1
    # Failed at t/fd.t line 10
    not ok 1 - dup STDIN in a child process by using its file
    descriptor
    Failed 1/1 subtests
    Does 0c24d2685a66bebbc5dc94a26dbeecb1aed3265b make the problem
    go away?
    It fixes the PERLIO=stdio failure.

    It doesn't fix the block (or failure) under Win32.

    Tony
    I’m not sure how to fix that. Why is it blocking? Should this test just
    be skipped on Windows?
    It's trying to reading something (anything!) from stdin:

    C:\Users\tony\dev\perl\git\perl\t>.\perl harness -v ..\ext\IPC-
    Open3\t\fd.t
    ../ext/IPC-Open3/t/fd.t ..
    1..1
    any sort of input
    more input
    ^Z
    # Failed at t/fd.t line 16
    not ok 1 - dup STDIN in a child process by using its file descriptor
    Failed 1/1 subtests

    Test Summary Report
    -------------------
    ../ext/IPC-Open3/t/fd.t (Wstat: 0 Tests: 1 Failed: 1)
    Failed test: 1
    Files=1, Tests=1, 13 wallclock secs ( 0.00 usr + 0.02 sys = 0.02
    CPU)
    Result: FAIL

    C:\Users\tony\dev\perl\git\perl\t>.\perl harness -v ..\ext\IPC-
    Open3\t\fd.t <nul

    ../ext/IPC-Open3/t/fd.t ..
    1..1
    # Failed at t/fd.t line 16
    not ok 1 - dup STDIN in a child process by using its file descriptor
    Failed 1/1 subtests

    Test Summary Report
    -------------------
    ../ext/IPC-Open3/t/fd.t (Wstat: 0 Tests: 1 Failed: 1)
    Failed test: 1
    Files=1, Tests=1, 0 wallclock secs ( 0.02 usr + 0.00 sys = 0.02
    CPU)
    Result: FAIL

    C:\Users\tony\dev\perl\git\perl\t>

    It may be the stderr key causing the failure, if I comment it out:

    C:\Users\tony\dev\perl\git\perl\t>.\perl harness -v ..\ext\IPC-
    Open3\t\fd.t <nul

    ../ext/IPC-Open3/t/fd.t ..
    1..1
    Use of uninitialized value in hash element at ../../lib/IPC/Open3.pm
    line 399.
    ok 1 - dup STDIN in a child process by using its file descriptor
    ok
    All tests successful.
    Files=1, Tests=1, 0 wallclock secs ( 0.00 usr + 0.00 sys = 0.00
    CPU)
    Result: PASS

    C:\Users\tony\dev\perl\git\perl\t>

    If I also set stdin => '' then:

    C:\Users\tony\dev\perl\git\perl\t>.\perl harness -v ..\ext\IPC-
    Open3\t\fd.t
    ../ext/IPC-Open3/t/fd.t ..
    1..1
    Use of uninitialized value in hash element at ../../lib/IPC/Open3.pm
    line 399.
    ok 1 - dup STDIN in a child process by using its file descriptor
    ok
    All tests successful.
    Files=1, Tests=1, 0 wallclock secs ( 0.03 usr + 0.00 sys = 0.03
    CPU)
    Result: PASS

    Does that warning indicate another issue, or is it expected?
    It’s another issue. Could you file a separate ticket for that?

    I’ve added stdin => '' as you suggested and made the test more forgiving
    of random stderr output. Can you confirm that
    45a1ce9706434aec3cacb228e2bb4bafeed9e5ed works?
  • Tony Cook at Sep 28, 2010 at 12:18 am

    On Mon, Sep 27, 2010 at 04:53:05PM -0700, Father Chrysostomos via RT wrote:
    On Mon Sep 27 08:06:37 2010, tonyc wrote:
    On Mon, Sep 27, 2010 at 07:48:34AM -0700, Father Chrysostomos via RT
    wrote:
    On Mon Sep 27 07:24:21 2010, tonyc wrote:
    On Mon, Sep 27, 2010 at 06:48:11AM -0700, Father Chrysostomos via
    RT
    wrote:
    On Mon Sep 27 04:04:48 2010, tonyc wrote:
    On Sun, Sep 26, 2010 at 06:46:55AM -0700, Father Chrysostomos
    via RT
    wrote:
    On Mon Jul 12 08:30:07 2010, vernonlyon wrote:

    This patch makes it possible to use open3 in Apache to
    handle
    uploads,
    without it it dies.
    Thank you. I’ve applied this as
    fb9b5b31d8a62644191f4e414a66124e86f30797.

    The test added in a0ed8b7b5f7f fails with PERLIO=stdio on
    Linux:
    tony@mars:.../perl/t$ PERLIO=stdio ./perl harness -v
    ../ext/IPC-
    Open3/t/fd.t
    ../ext/IPC-Open3/t/fd.t ..
    1..1
    # Failed at t/fd.t line 10
    not ok 1 - dup STDIN in a child process by using its file
    descriptor
    Failed 1/1 subtests
    Does 0c24d2685a66bebbc5dc94a26dbeecb1aed3265b make the problem
    go away?
    It fixes the PERLIO=stdio failure.

    It doesn't fix the block (or failure) under Win32.

    Tony
    I’m not sure how to fix that. Why is it blocking? Should this test just
    be skipped on Windows?
    It's trying to reading something (anything!) from stdin:

    C:\Users\tony\dev\perl\git\perl\t>.\perl harness -v ..\ext\IPC-
    Open3\t\fd.t
    ../ext/IPC-Open3/t/fd.t ..
    1..1
    any sort of input
    more input
    ^Z
    # Failed at t/fd.t line 16
    not ok 1 - dup STDIN in a child process by using its file descriptor
    Failed 1/1 subtests

    Test Summary Report
    -------------------
    ../ext/IPC-Open3/t/fd.t (Wstat: 0 Tests: 1 Failed: 1)
    Failed test: 1
    Files=1, Tests=1, 13 wallclock secs ( 0.00 usr + 0.02 sys = 0.02
    CPU)
    Result: FAIL

    C:\Users\tony\dev\perl\git\perl\t>.\perl harness -v ..\ext\IPC-
    Open3\t\fd.t <nul

    ../ext/IPC-Open3/t/fd.t ..
    1..1
    # Failed at t/fd.t line 16
    not ok 1 - dup STDIN in a child process by using its file descriptor
    Failed 1/1 subtests

    Test Summary Report
    -------------------
    ../ext/IPC-Open3/t/fd.t (Wstat: 0 Tests: 1 Failed: 1)
    Failed test: 1
    Files=1, Tests=1, 0 wallclock secs ( 0.02 usr + 0.00 sys = 0.02
    CPU)
    Result: FAIL

    C:\Users\tony\dev\perl\git\perl\t>

    It may be the stderr key causing the failure, if I comment it out:

    C:\Users\tony\dev\perl\git\perl\t>.\perl harness -v ..\ext\IPC-
    Open3\t\fd.t <nul

    ../ext/IPC-Open3/t/fd.t ..
    1..1
    Use of uninitialized value in hash element at ../../lib/IPC/Open3.pm
    line 399.
    ok 1 - dup STDIN in a child process by using its file descriptor
    ok
    All tests successful.
    Files=1, Tests=1, 0 wallclock secs ( 0.00 usr + 0.00 sys = 0.00
    CPU)
    Result: PASS

    C:\Users\tony\dev\perl\git\perl\t>

    If I also set stdin => '' then:

    C:\Users\tony\dev\perl\git\perl\t>.\perl harness -v ..\ext\IPC-
    Open3\t\fd.t
    ../ext/IPC-Open3/t/fd.t ..
    1..1
    Use of uninitialized value in hash element at ../../lib/IPC/Open3.pm
    line 399.
    ok 1 - dup STDIN in a child process by using its file descriptor
    ok
    All tests successful.
    Files=1, Tests=1, 0 wallclock secs ( 0.03 usr + 0.00 sys = 0.03
    CPU)
    Result: PASS

    Does that warning indicate another issue, or is it expected?
    It’s another issue. Could you file a separate ticket for that?

    I’ve added stdin => '' as you suggested and made the test more forgiving
    of random stderr output. Can you confirm that
    45a1ce9706434aec3cacb228e2bb4bafeed9e5ed works?
    Thanks, that fixed it:

    C:\Users\tony\dev\perl\git\perl\t>.\perl harness -v ..\ext\IPC-Open3\t\fd.t
    ../ext/IPC-Open3/t/fd.t ..
    1..1
    ok 1 - dup STDIN in a child process by using its file descriptor
    ok
    All tests successful.
    Files=1, Tests=1, 0 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU)
    Result: PASS

    This should allow Win32 smokes to complete.

    Tony

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupperl5-porters @
categoriesperl
postedSep 26, '10 at 1:47p
activeSep 28, '10 at 12:18a
posts9
users3
websiteperl.org

People

Translate

site design / logo © 2022 Grokbase