Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CPAN-Reporter CPAN distribution.

Report information
The Basics
Id: 62310
Status: resolved
Priority: 0/
Queue: CPAN-Reporter

People
Owner: Nobody in particular
Requestors: CHORNY [...] cpan.org
njh [...] bandsman.co.uk
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.1803
Fixed in: (no value)



Subject: Hangs on ptee
When installing a module within the CPAN shell, the installation hangs if if a question is asked, other than a prerequisite question. For example if the user is asked to enter a path name. After hitting return not only does it hang but even SIGINT and SIGQUIT are ignored - the only way out is to kill ptee which stops the installation procedure. An example ptee command is: sh -c /usr/bin/perl /tmp/CPAN-Reporter-CW-K9wHoWQ1 2>&1 | /usr/bin/perl /usr/local/share/perl/5.10.1/auto/Tee/ptee /tmp/CPAN-R... This happens on a variety of operating systems and hardware.
Subject: Re: [rt.cpan.org #62310] Hangs on ptee
Date: Fri, 22 Oct 2010 17:43:37 -0400
To: bug-CPAN-Reporter [...] rt.cpan.org
From: David Golden <dagolden [...] cpan.org>
On Wed, Oct 20, 2010 at 9:31 AM, njh@bandsman.co.uk via RT <bug-CPAN-Reporter@rt.cpan.org> wrote: Show quoted text
> When installing a module within the CPAN shell, the installation hangs > if if a question is asked, other than a prerequisite question.  For > example if the user is asked to enter a path name.  After hitting return > not only does it hang but even SIGINT and SIGQUIT are ignored - the only > way out is to kill ptee which stops the installation procedure. > > An example ptee command is: > > sh -c /usr/bin/perl /tmp/CPAN-Reporter-CW-K9wHoWQ1  2>&1  | > /usr/bin/perl /usr/local/share/perl/5.10.1/auto/Tee/ptee  /tmp/CPAN-R... > > This happens on a variety of operating systems and hardware.
Yikes. I'll check into it. David
Is this happening when there is a command_timeout set? If so, could you please disable it and see if the problem goes away? Thank you, David
From: njh [...] bandsman.co.uk
My value for inactivity_timeout is 300 seconds. My value for version_timeout is 15 seconds. I can't find the any reference to a field called command_timeout in CPAN/Config.pm. Maybe you meant inactivity_timeout rather than command_timeout. I changed inactivity_timeout to 0 and so far things are working better. I haven't done testing on enough platforms yet to be sure, but it is possible that is where the problem lies.
Subject: Re: [rt.cpan.org #62310] Hangs on ptee
Date: Sun, 24 Oct 2010 23:00:24 -0400
To: bug-CPAN-Reporter [...] rt.cpan.org
From: David Golden <dagolden [...] cpan.org>
On Sun, Oct 24, 2010 at 10:15 PM, njh@bandsman.co.uk via RT <bug-CPAN-Reporter@rt.cpan.org> wrote: Show quoted text
>       Queue: CPAN-Reporter >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=62310 > > > My value for inactivity_timeout is 300 seconds.  My value for > version_timeout is 15 seconds. > > I can't find the any reference to a field called command_timeout in > CPAN/Config.pm. > > Maybe you meant inactivity_timeout rather than command_timeout.  I > changed inactivity_timeout to 0 and so far things are working better.  I > haven't done testing on enough platforms yet to be sure, but it is > possible that is where the problem lies.
Those two are CPAN.pm config settings. I mean, have you set 'command_timeout' in your .cpanreporter/config.ini? (See CPAN::Reporter::Config for details) It's possible that there is a bad interaction between CPAN and CPAN::Reporter's timeouts. -- David
From: njh [...] bandsman.co.uk
I have no reference to command_timeout in .cpanreporter/config.ini. I am still finding things are better after changing inactivity_timeout to 0 in CPAN/Config.pm - and I can't think that's a co-incidence. It may help you to find what's wrong. -Nigel
Patches in the repo swap out use of Tee and 'ptee' in favor of Capture::Tiny. After that is released to CPAN, please let me know if this issue re-occurs. As no other reports of this problem have come in, I'm downgrading the severity of the ticket. I will also mark it 'stalled' until I hear how the forthcoming version works.
From: njh [...] bandsman.co.uk
Sorry, it's no better. I set command_timeout=300 in .cpanreporter/config.ini and I get the same hangs on user input, e.g. it hangs on this after I hit return. This is with 32- and 64-bit Linux on 5.12.4. Mail-Mbox-MessageParser-1.5002/t/speed.pl Mail-Mbox-MessageParser-1.5002/t/stdin_compressed.t Mail-Mbox-MessageParser-1.5002/t/stdin_uncompressed.t Mail-Mbox-MessageParser-1.5002/t/Test/ Mail-Mbox-MessageParser-1.5002/t/Test/Utils.pm Mail-Mbox-MessageParser-1.5002/t/undef_return_value.t CPAN.pm: Going to build D/DC/DCOPPIT/Mail-Mbox-MessageParser-1.5002.tar.gz *************************************************************************** NOTE: The optional module Benchmark::Timer (version 0.7100) is not installed. Install Benchmark::Timer if you want to run "make speedtest" Enter the full path, or "none" for none. Where can I find your "bzip" executable? (bzip2 type) [/bin/bzip2]
I have same problem on Ubuntu and Debian. Removing "command_timeout" helped. -- Alexandr Ciornii, http://chorny.net
On Sat Jan 12 13:46:19 2013, CHORNY wrote: Show quoted text
> I have same problem on Ubuntu and Debian. Removing "command_timeout"
helped. Show quoted text
>
I have latest CPAN::Reporter and Capture::Tiny. Both OS'es are run in latest VirtualBox. I can enter anything, but pressing Enter does not result in program accepting it. Input can be interrupted with Ctrl-C. -- Alexandr Ciornii, http://chorny.net
Also found this bug on non-VM Ubuntu 12.04, latest versions of all modules except core. -- Alexandr Ciornii, http://chorny.net
ptee??? hmm.... does cpan::testers change stdin? i.e. related?? -- #92402: modules ask interactive question -- but don't take dflt