Skip Menu |

This queue is for tickets about the IPC-Run CPAN distribution.

Report information
The Basics
Id: 8657
Status: resolved
Priority: 0/
Queue: IPC-Run

People
Owner: Nobody in particular
Requestors: Tim.Bunce [...] pobox.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.78
Fixed in: (no value)



Subject: t/run.t failure (bad descriptor in dup2) on FreeBSD 4.10 perl 5.8.5
Fails at test 126 with Bad file descriptor: dup2( 8, 3 ). I tried applying the patch from http://rt.cpan.org/NoAuth/Bug.html?id=8060 but it didn't help (changed the 8 to 11 in the error message). I changed the croak to a confess to see the stack at the time it fails: t/run..............ok 125/266Bad file descriptor: dup2( 11, 3 ) at /usr/home/timbo/.cpan/build/IPC-Run-0.78/blib/lib/IPC/Run.pm line 1247 IPC::Run::_dup2_rudely(11, 3) called at /usr/home/timbo/.cpan/build/IPC-Run-0.78/blib/lib/IPC/Run.pm line 2473 IPC::Run::_dup2_gently('IPC::Run=HASH(0x85352e8)', 'ARRAY(0x85355b8)', 11, 3) called at /usr/home/timbo/.cpan/build/IPC-Run-0.78/blib/lib/IPC/Run.pm line 2581 eval {...} called at /usr/home/timbo/.cpan/build/IPC-Run-0.78/blib/lib/IPC/Run.pm line 2510 IPC::Run::_do_kid_and_exit('IPC::Run=HASH(0x85352e8)', 'HASH(0x852903c)') called at /usr/home/timbo/.cpan/build/IPC-Run-0.78/blib/lib/IPC/Run.pm line 1363 IPC::Run::_spawn('IPC::Run=HASH(0x85352e8)', 'HASH(0x852903c)') called at /usr/home/timbo/.cpan/build/IPC-Run-0.78/blib/lib/IPC/Run.pm line 2779 eval {...} called at /usr/home/timbo/.cpan/build/IPC-Run-0.78/blib/lib/IPC/Run.pm line 2776 IPC::Run::start('noinherit', 1, 'ARRAY(0x8496f3c)', '>', 'SCALAR(0x845f024)', '2>', 'SCALAR(0x845f03c)', '3<', 'SCALAR(0x845f00c)', ...) called at /usr/home/timbo/.cpan/build/IPC-Run-0.78/blib/lib/IPC/Run.pm line 1433 IPC::Run::run('noinherit', 1, 'ARRAY(0x8496f3c)', '>', 'SCALAR(0x845f024)', '2>', 'SCALAR(0x845f03c)', '3<', 'SCALAR(0x845f00c)', ...) called at t/run.t line 21 main::run('ARRAY(0x8496f3c)', '>', 'SCALAR(0x845f024)', '2>', 'SCALAR(0x845f03c)', '3<', 'SCALAR(0x845f00c)', '0<&3') called at t/run.t line 586 main::__ANON__() called at t/run.t line 1054 at t/run.t line 21 t/run..............dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED tests 126-266 Failed 141/266 tests, 46.99% okay t/signal...........ok t/timeout..........ok t/timer............ok t/win32_compile....ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/run.t 1 256 266 282 106.02% 126-266 (1 subtest UNEXPECTEDLY SUCCEEDED), 38 subtests skipped. Failed 1/15 test scripts, 93.33% okay. 141/703 subtests failed, 79.94% okay. I'm installing this for CPANPLUS. Do you think this failure would cause problems for CPANPLUS usage? Any clues for where to start debugging this? (Not that I have the time, but you never know.) Other observations: running t/run.t with IPCRUNDEBUG=3 or higher makes it die at test 51 instead of 126: IPC::Run 0002 0123456--90------------------9 [#13(70471)]: writing to fd 9 (kid's stdin) Broken pipe Do you have any fix for that, so I can get past it and debug test 126? Thanks!
Old ticket and Guest is not contactable. closing ticket.
Ticket migrated to github as https://github.com/toddr/IPC-Run/issues/68