develooper Front page | perl.perl5.porters | Postings from August 2009

[perl #68458] 5.10.1: regression regarding bareword in readline()

Thread Next
From:
perlbug-followup
Date:
August 12, 2009 14:39
Subject:
[perl #68458] 5.10.1: regression regarding bareword in readline()
Message ID:
rt-3.6.HEAD-2466-1250103298-733.68458-75-0@perl.org
# New Ticket Created by  eserte@biokovo-amd64.herceg.de 
# Please include the string:  [perl #68458]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=68458 >


This is a bug report for perl from eserte@biokovo-amd64.herceg.de,
generated with the help of perlbug 1.39 running under perl 5.10.1.


-----------------------------------------------------------------
The following script

#!/usr/bin/perl
use strict;
my $file;
open(FILE, $file);
my $fline = readline(FILE);
__END__

compiles under 5.10.0 but not under 5.10.1-to-be:

$ /usr/perl-5.10.0-3220-gf9961a0/bin/perl -c readline.pl
Bareword "FILE" not allowed while "strict subs" in use at readline.pl line 7.
readline.pl had compilation errors.
Exitcode 9

git bisect says that the breakage occurred in
109c3d50375e96ee005ac98a3d457c7da2f5cb08 in the maint-5.10 branch,
respective in 984f9f66477bc722578262ae8520584e44e881af in the blead
branch.

This breaks at least the CPAN distribution MySQL-Backup-0.04.

Ah, a shorter way to reproduce this:
/usr/perl-5.10.0-3220-gf9961a0/bin/perl -c -e 'use strict; readline(STDIN)'

(Later)

I found another CPAN distribution with the same problem: Tie-Simple-1.03

And there's another bareword problem, found in Games-Go-GoPair-1.001.
With the script

    use strict;
    my @players;
    sub _rankCompare { }
    @players = sort(_rankCompare @players);

one also gets a bareword error:

Bareword "_rankCompare" not allowed while "strict subs" in use at /tmp/sort1.pl line 18.

Regards,
    Slaven

-----------------------------------------------------------------
---
Flags:
    category=core
    severity=low
---
Site configuration information for perl 5.10.1:

Configured by eserte at Tue Aug  4 10:38:36 CEST 2009.

Summary of my perl5 (revision 5 version 10 subversion 1) configuration:
  Commit id: f9961a059c818ac71464be22671a6aeb834e3c87
  Platform:
    osname=freebsd, osvers=7.0-release, archname=amd64-freebsd
    uname='freebsd biokovo-amd64.herceg.de 7.0-release freebsd 7.0-release #0: sun feb 24 10:35:36 utc 2008 root@driscoll.cse.buffalo.edu:usrobjusrsrcsysgeneric amd64 '
    config_args='-Dprefix=/usr/perl-5.10.0-3220-gf9961a0 -Dusemymalloc=n -D cc=ccache cc -Dgccansipedantic -de'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='ccache cc', ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include',
    optimize='-O',
    cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.2.1 20070719  [FreeBSD]', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='ccache cc', ldflags ='-Wl,-E  -fstack-protector -L/usr/local/lib'
    libpth=/usr/lib /usr/local/lib
    libs=-lgdbm -lm -lcrypt -lutil -lc
    perllibs=-lm -lcrypt -lutil -lc
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-DPIC -fPIC', lddlflags='-shared  -L/usr/local/lib -fstack-protector'

Locally applied patches:
    PERL_GIT_UNPUSHED_COMMITS    	/* do not remove this line */
    PERL_GIT_UNCOMMITTED_CHANGES	/* do not remove this line */

---
@INC for perl 5.10.1:
    /usr/perl-5.10.0-3220-gf9961a0/lib/5.10.1/amd64-freebsd
    /usr/perl-5.10.0-3220-gf9961a0/lib/5.10.1
    /usr/perl-5.10.0-3220-gf9961a0/lib/site_perl/5.10.1/amd64-freebsd
    /usr/perl-5.10.0-3220-gf9961a0/lib/site_perl/5.10.1
    .

---
Environment for perl 5.10.1:
    HOME=/home/e/eserte
    LANG (unset)
    LANGUAGE (unset)
    LC_ALL=de_DE.ISO8859-1
    LC_CTYPE=de_DE.ISO8859-1
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/local/bin:/usr/bin:/bin:/usr/gnu/bin:/usr/TeX/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/pilot/bin:/home/e/eserte/bin/FreeBSD:/home/e/eserte/bin/sh:/home/e/eserte/bin:/usr/X11R6/bin:/usr/X11/bin:/usr/X386/bin:/usr/games:/home/e/eserte/devel
    PERLDOC=-MPod::Perldoc::ToTextOverstrike
    PERL_BADLANG (unset)
    PERL_HTML_DISPLAY_CLASS=HTML::Display::Mozilla
    SHELL=/bin/tcsh


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About