Skip Menu |

This queue is for tickets about the Term-ReadLine-Perl CPAN distribution.

Report information
The Basics
Id: 8587
Status: open
Priority: 0/
Queue: Term-ReadLine-Perl

People
Owner: Nobody in particular
Requestors: steve [...] fisharerojo.org
Cc:
AdminCc:

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



Subject: Ctrl-C/Ctrl-D in the CPAN shell causes an endless loop only when Term::ReadLine::Perl is installed
The following report was from perlbug originally. It does not appear to be a problem with CPAN, since the problem does not occur with Term::ReadLine::Gnu. It is repeatable with CPAN and Term::ReadLine::Perl. The following components were used: CPAN 0.70 Term::ReadLine::Perl 1.0203 In the following tests start the CPAN shell and then press Ctrl-C, followed by Ctrl-D == 5.8.0: % perl-5.8.0 -MCPAN -eshell Show quoted text
cpan>
Caught SIGINT Show quoted text
cpan> Use of uninitialized value in ord at
/home/stas/perl/5.8.0/lib/site_perl/5.8.0/Term/ReadLine/readline.pm line 1481. Show quoted text
cpan>
prints one warning and returns the prompt == blead perl (and 5.8.1-tobe): % perl-blead -MCPAN -eshell Show quoted text
cpan>
Caught SIGINT Show quoted text
cpan> Use of uninitialized value in ord at
/home/stas/perl/5.8.0/lib/site_perl/5.8.0/Term/ReadLine/readline.pm line 1481. [...] results in endless loop consisting of the last line same problem for 5.8.1-tobe Certainly, the warning is probably a problem in CPAN.pm, but the endless loop appearing only the blead/maint versions doesn't sound good.
Date: Fri, 26 Nov 2004 15:27:25 -0800
From: Ilya Zakharevich <nospam-abuse [...] ilyaz.org>
To: via RT <bug-Term-ReadLine-Perl [...] rt.cpan.org>
Subject: Re: [cpan #8587] Ctrl-C/Ctrl-D in the CPAN shell causes an endless loop only when Term::ReadLine::Perl is installed
RT-Send-Cc:
On Tue, Nov 23, 2004 at 11:15:42PM -0500, via RT wrote: Show quoted text
> Term::ReadLine::Perl 1.0203 > > In the following tests start the CPAN shell and then press Ctrl-C, followed by > Ctrl-D > > == 5.8.0: > > % perl-5.8.0 -MCPAN -eshell
> cpan>
> Caught SIGINT
> cpan> Use of uninitialized value in ord at
> /home/stas/perl/5.8.0/lib/site_perl/5.8.0/Term/ReadLine/readline.pm line 1481.
> cpan>
> > prints one warning and returns the prompt > > == blead perl (and 5.8.1-tobe): > > % perl-blead -MCPAN -eshell
> cpan>
> Caught SIGINT
> cpan> Use of uninitialized value in ord at
> /home/stas/perl/5.8.0/lib/site_perl/5.8.0/Term/ReadLine/readline.pm line 1481. > [...] > results in endless loop consisting of the last line > > same problem for 5.8.1-tobe > > Certainly, the warning is probably a problem in CPAN.pm, but the endless loop > appearing only the blead/maint versions doesn't sound good.
I can't reproduce it here with 5.8.2 + TRP. I do not get "Caught SIGINT". Hope it helps, Ilya
From: John LoVerso
Show quoted text
> I can't reproduce it here with 5.8.2 + TRP. I do not get "Caught > SIGINT".
I can reproduce this easily. I get the 'Caught SIGINT' when pressing ^C, and the infinite loop of uninit warnings comes when I press ^D. This is on a SuSE9.3 system: $ env "PERL_RL=Perl" cpan cpan shell -- CPAN exploration and modules installation (v1.7601) ReadLine support enabled Show quoted text
cpan>
Caught SIGINT Show quoted text
cpan> Use of uninitialized value in ord at
/usr/lib/perl5/site_perl/5.8.7/Term/ReadLine/readline.pm line 1481. ^@Use of uninitialized value in ord at /usr/lib/perl5/site_perl/5.8.7/Term/ReadLine/readline.pm line 1481. This is on a FreeBSD 4.8 system: $ env "PERL_RL=Perl" cpan cpan shell -- CPAN exploration and modules installation (v1.76) ReadLine support enabled Show quoted text
cpan>
Caught SIGINT Show quoted text
cpan> Use of uninitialized value in ord at
/usr/local/lib/perl5/site_perl/5.6.1/Term/ReadLine/readline.pm line 1481. ^@Use of uninitialized value in ord at /usr/local/lib/perl5/site_perl/5.6.1/Term/ReadLine/readline.pm line 1481. ^@Use of uninitialized value in ord at /usr/local/lib/perl5/site_perl/5.6.1/Term/ReadLine/readline.pm line 1481.
Date: Fri, 6 Jan 2006 23:23:54 -0800
From: Ilya Zakharevich <nospam-abuse [...] ilyaz.org>
To: Guest via RT <bug-Term-ReadLine-Perl [...] rt.cpan.org>
CC: undisclosed-recipients: ;
Subject: Re: [cpan #8587] Ctrl-C/Ctrl-D in the CPAN shell causes an endless loop only when Term::ReadLine::Perl is installed
RT-Send-Cc:
On Fri, Jan 06, 2006 at 02:43:43PM -0500, Guest via RT wrote: Show quoted text
> > I can't reproduce it here with 5.8.2 + TRP. I do not get "Caught > > SIGINT".
> > I can reproduce this easily. I get the 'Caught SIGINT' when pressing > ^C, and the infinite loop of uninit warnings comes when I press ^D.
Here I get Show quoted text
cpan> ! print "11\n" if defined $readline::term_readkey
11 What is your result? Yours, Ilya
From: Steve Peters
On Sat Jan 07 02:32:06 2006, nospam-abuse@ilyaz.org wrote: Show quoted text
> On Fri, Jan 06, 2006 at 02:43:43PM -0500, Guest via RT wrote:
> > > I can't reproduce it here with 5.8.2 + TRP. I do not get "Caught > > > SIGINT".
> > > > I can reproduce this easily. I get the 'Caught SIGINT' when pressing > > ^C, and the infinite loop of uninit warnings comes when I press ^D.
> > Here I get >
> cpan> ! print "11\n" if defined $readline::term_readkey
> 11 > > What is your result?
Show quoted text
cpan> ! print "11\n" if defined $readline::term_readkey
11 but I also can reproduce the problem with multiple versions of Perl, CPAN, and T::RL::Perl. I was able to stop it from happening, however, with the following patch against version 1.0203. --- Term/ReadLine/readline.pm.old Tue Mar 14 07:21:48 2006 +++ Term/ReadLine/readline.pm Tue Mar 14 07:21:38 2006 @@ -1478,6 +1478,7 @@ $ThisCommandKilledText = 0; ##print "\n\rline is @$D:[$line]\n\r"; ##DEBUG + last if ! defined $input; &do_command($var_EditingMode, 1, ord($input)); ## actually execute input *KeyMap = $var_EditingMode; # JP: added
CC: undisclosed-recipients: ;
Subject: Re: [rt.cpan.org #8587] Ctrl-C/Ctrl-D in the CPAN shell causes an endless loop only when Term::ReadLine::Perl is installed
Date: Tue, 14 Mar 2006 14:34:13 -0800
To: via RT <bug-Term-ReadLine-Perl [...] rt.cpan.org>
From: Ilya Zakharevich <nospam-abuse [...] ilyaz.org>
On Tue, Mar 14, 2006 at 08:23:50AM -0500, via RT wrote: Show quoted text
> > Queue: Term-ReadLine-Perl > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=8587 > > > On Sat Jan 07 02:32:06 2006, nospam-abuse@ilyaz.org wrote:
> > On Fri, Jan 06, 2006 at 02:43:43PM -0500, Guest via RT wrote:
> > > > I can't reproduce it here with 5.8.2 + TRP. I do not get "Caught > > > > SIGINT".
> > > > > > I can reproduce this easily. I get the 'Caught SIGINT' when pressing > > > ^C, and the infinite loop of uninit warnings comes when I press ^D.
> > > > Here I get > >
> > cpan> ! print "11\n" if defined $readline::term_readkey
> > 11 > > > > What is your result?
>
> cpan> ! print "11\n" if defined $readline::term_readkey
> 11
Show quoted text
> but I also can reproduce the problem with multiple versions of Perl, > CPAN, and T::RL::Perl.
Looks like your TTY device driver and/or Term::ReadKey are borken. Show quoted text
> I was able to stop it from happening, however, > with the following patch against version 1.0203.
The current version is 1.0208. Hope this helps, Ilya