Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.85k stars 527 forks source link

Ctrl-C/Ctrl-D in the CPAN shell causes an endless loop in blead-perl/maint-perl #6430

Closed p5pRT closed 19 years ago

p5pRT commented 21 years ago

Migrated from rt.perl.org#21897 (status was 'resolved')

Searchable as RT21897$

p5pRT commented 21 years ago

From stas@stason.org

Created by stas@hope.stason.org

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 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.

Perl Info ``` Flags: category=core severity=low Site configuration information for perl v5.9.0: Configured by stas at Mon Apr 7 10:30:23 EST 2003. Summary of my perl5 (revision 5.0 version 9 subversion 0 patch 19140) configuration: Platform: osname=linux, osvers=2.4.19-16mdksmp, archname=i686-linux uname='linux hope.stason.org 2.4.19-16mdksmp #1 smp fri sep 20 16:08:37 cest 2002 i686 unknown unknown gnulinux ' config_args='-des -Dprefix=/home/stas/perl/blead -Doptimize=-g -Duseshrplib -Dusedevel -DDEBUG_LEAKING_SCALARS' hint=recommended, useposix=true, d_sigaction=define usethreads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-DDEBUGGING -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm', optimize='-g', cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/include/gdbm' ccversion='', gccversion='3.2 (Mandrake Linux 9.0 3.2-1mdk)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='cc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lnsl -lgdbm -ldb -ldl -lm -lc -lcrypt -lutil -lrt perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil -lrt libc=/lib/libc-2.3.1.so, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='2.3.1' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic -Wl,-rpath,/home/stas/perl/blead/lib/5.9.0/i686-linux/CORE' cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib' Locally applied patches: DEVEL18374 @INC for perl v5.9.0: /home/stas/perl/blead/lib/5.9.0/i686-linux /home/stas/perl/blead/lib/5.9.0 /home/stas/perl/blead/lib/site_perl/5.9.0/i686-linux /home/stas/perl/blead/lib/site_perl/5.9.0 /home/stas/perl/blead/lib/site_perl . Environment for perl v5.9.0: HOME=/home/stas LANG=en_US LANGUAGE=en_US:en LC_COLLATE=en_US LC_CTYPE=en_US LC_MESSAGES=en_US LC_MONETARY=en_US LC_NUMERIC=en_US LC_TIME=en_US LD_LIBRARY_PATH=/usr/X11R6/lib:/usr/X11R6/lib/modules LOGDIR (unset) PATH=/usr//bin:/bin:/usr/bin:.:/usr/local/bin:/usr/X11R6/bin:/usr/games:/home/stas/bin:/home/stas/bin:/usr/local/bin:/usr/X11R6/bin:/usr/java/j2re1.4.0/bin/ PERL_BADLANG (unset) SHELL=/bin/tcsh __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:stas@stason.org http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com ```
p5pRT commented 19 years ago

From @smpeters

[stas - Tue Apr 08 22​:09​:49 2003]​:

This is a bug report for perl from stas@​hope.stason.org\, generated with the help of perlbug 1.34 running under perl v5.9.0.

----------------------------------------------------------------- [Please enter your report here]

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 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 was able to replicate this in the current blead/5.8.6-tobe after installing Term​::ReadLine​::Perl. However\, after replacing Term​::ReadLine​::Perl with Term​::ReadLine​::Gnu\, it worked just fine. I'm thinking Term​::ReadLine​::Perl is more the culprit than CPAN.

p5pRT commented 19 years ago

The RT System itself - Status changed from 'new' to 'open'

p5pRT commented 19 years ago

From stas@stason.org

Steve Peters via RT wrote​: [...]

I was able to replicate this in the current blead/5.8.6-tobe after installing Term​::ReadLine​::Perl. However\, after replacing Term​::ReadLine​::Perl with Term​::ReadLine​::Gnu\, it worked just fine. I'm thinking Term​::ReadLine​::Perl is more the culprit than CPAN.

So may be redirect that report to Term​::ReadLine​::Perl module then?

-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http​://stason.org/ mod_perl Guide ---> http​://perl.apache.org mailto​:stas@​stason.org http​://use.perl.org http​://apacheweek.com http​://modperlbook.org http​://apache.org http​://ticketmaster.com

p5pRT commented 19 years ago

From @smpeters

[stas - Thu Nov 04 14​:28​:30 2004]​:

Steve Peters via RT wrote​: [...]

I was able to replicate this in the current blead/5.8.6-tobe after installing Term​::ReadLine​::Perl. However\, after replacing Term​::ReadLine​::Perl with Term​::ReadLine​::Gnu\, it worked just fine. I'm thinking Term​::ReadLine​::Perl is more the culprit than CPAN.

So may be redirect that report to Term​::ReadLine​::Perl module then?

A ticket on this problem with Term​::ReadLine​::Perl has been opened at rt.cpan.org and is available at http​://rt.cpan.org/NoAuth/Bug.html?id=8587

p5pRT commented 19 years ago

@smpeters - Status changed from 'open' to 'resolved'