New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IPC::Open3 doesn't handle file descriptors correctly #10483
Comments
From vlyon@cpan.orgThis is a bug report for perl from vlyon@cpan.org, In the POD docs it says: However IPC::Open3 doesn't handle the file descriptors correctly.
This is because in IPC::Open3 the subroutines xpipe*, xclose* and xopen don't cater for A simple fix for xclose in version 1.06 is: Inline Patch
Thanx, Flags: Site configuration information for perl 5.10.1: Configured by Debian Project at Fri Apr 23 07:59:14 UTC 2010. Summary of my perl5 (revision 5 version 10 subversion 1) configuration: Platform: Locally applied patches: @INC for perl 5.10.1: Environment for perl 5.10.1: |
From @cpansproutOn Mon Jul 12 08:30:07 2010, vernonlyon wrote:
Thank you. I’ve applied this as fb9b5b3. |
The RT System itself - Status changed from 'new' to 'open' |
@cpansprout - Status changed from 'open' to 'resolved' |
From @tonycozOn Sun Sep 26 06:46:54 2010, sprout wrote:
The test for this added in a0ed8b7 fails with PERLIO=stdio: tony@mars:.../perl/t$ PERLIO=stdio ./perl harness -v ../ext/IPC-Open3/t/fd.t Test Summary Report ../ext/IPC-Open3/t/fd.t (Wstat: 0 Tests: 1 Failed: 1) |
From @tonycozOn Sun, Sep 26, 2010 at 06:46:55AM -0700, Father Chrysostomos via RT wrote:
The test added in a0ed8b7 fails with PERLIO=stdio on Linux: tony@mars:.../perl/t$ PERLIO=stdio ./perl harness -v ../ext/IPC-Open3/t/fd.t Test Summary Report ../ext/IPC-Open3/t/fd.t (Wstat: 0 Tests: 1 Failed: 1) On Win32 it blocks: C:\Users\tony\dev\perl\git\perl\t>.\perl harness -v ..\ext\IPC-Open3\t\fd.t unless you supply some input: C:\Users\tony\dev\perl\git\perl\t>.\perl harness -v ..\ext\IPC-Open3\t\fd.t Test Summary Report ../ext/IPC-Open3/t/fd.t (Wstat: 0 Tests: 1 Failed: 1) C:\Users\tony\dev\perl\git\perl\t>.\perl harness -v ..\ext\IPC-Open3\t\fd.t <nul ../ext/IPC-Open3/t/fd.t .. Test Summary Report ../ext/IPC-Open3/t/fd.t (Wstat: 0 Tests: 1 Failed: 1) C:\Users\tony\dev\perl\git\perl\t> Tony |
From @cpansproutOn Mon Sep 27 04:04:48 2010, tonyc wrote:
Does 0c24d26 make the problem go away? |
From @tonycozOn Mon, Sep 27, 2010 at 06:48:11AM -0700, Father Chrysostomos via RT wrote:
It fixes the PERLIO=stdio failure. It doesn't fix the block (or failure) under Win32. Tony |
From @cpansproutOn Mon Sep 27 07:24:21 2010, tonyc wrote:
I’m not sure how to fix that. Why is it blocking? Should this test just |
From [Unknown Contact. See original ticket]On Mon Sep 27 07:24:21 2010, tonyc wrote:
I’m not sure how to fix that. Why is it blocking? Should this test just |
From @tonycozOn Mon, Sep 27, 2010 at 07:48:34AM -0700, Father Chrysostomos via RT wrote:
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 Test Summary Report ../ext/IPC-Open3/t/fd.t (Wstat: 0 Tests: 1 Failed: 1) C:\Users\tony\dev\perl\git\perl\t>.\perl harness -v ..\ext\IPC-Open3\t\fd.t <nul ../ext/IPC-Open3/t/fd.t .. Test Summary Report ../ext/IPC-Open3/t/fd.t (Wstat: 0 Tests: 1 Failed: 1) 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 .. 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 Does that warning indicate another issue, or is it expected? Tony |
From @cpansproutOn Mon Sep 27 08:06:37 2010, tonyc wrote:
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 |
From [Unknown Contact. See original ticket]On Mon Sep 27 08:06:37 2010, tonyc wrote:
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 |
From @tonycozOn Mon, Sep 27, 2010 at 04:53:05PM -0700, Father Chrysostomos via RT wrote:
Thanks, that fixed it: C:\Users\tony\dev\perl\git\perl\t>.\perl harness -v ..\ext\IPC-Open3\t\fd.t This should allow Win32 smokes to complete. Tony |
vlyon@cpan.org - Status changed from 'resolved' to 'open' |
From vlyon@cpan.orgI'm re-opening this ticket, because the patch supplied was misapplied 1. The correct patch: The "or croak ..." line was never added, please apply this. Thanx. 2. xopen & xpipe: Vernon |
From @cpansproutOn Thu May 05 11:22:53 2011, vernonlyon wrote:
Oops. Sorry, that was my fault. Now fixed in f6f8630. But your |
@cpansprout - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#76474 (status was 'resolved')
Searchable as RT76474$
The text was updated successfully, but these errors were encountered: