Front page | perl.perl5.porters |
Postings from March 2014
[perl #121484] /m causing false negative
Thread Next
From:
Zefram
Date:
March 21, 2014 13:01
Subject:
[perl #121484] /m causing false negative
Message ID:
rt-4.0.18-7869-1395406861-1117.121484-75-0@perl.org
# New Ticket Created by Zefram
# Please include the string: [perl #121484]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=121484 >
This is a bug report for perl from zefram@fysh.org,
generated with the help of perlbug 1.40 running under perl 5.19.10.
-----------------------------------------------------------------
[Please describe your issue here]
$ perl5.19.10 -lwe 'print "wibble" =~ /\Awibble\z/m ? "yes" : "no"'
no
$ perl5.19.9 -lwe 'print "wibble" =~ /\Awibble\z/m ? "yes" : "no"'
yes
Obviously a regression. Regexp matches correctly if /m is omitted,
or if either anchor is omitted, or if any of the letters "ble" in the
pattern are replaced with dots. But replacing "wib" with dots keeps it
falsely non-matching.
This breaks the pod-coverage test for TheSchwartz, which builds up a bunch
of patterns like this to describe exceptions to the coverage requirement.
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=high
---
Site configuration information for perl 5.19.10:
Configured by root at Fri Mar 21 09:44:41 UTC 2014.
Summary of my perl5 (revision 5 version 19 subversion 10) configuration:
Platform:
osname=linux, osvers=2.6.32-5-686, archname=i686-linux-64int-ld
uname='linux beryllium.photobox.priv 2.6.32-5-686 #1 smp fri may 10 08:33:48 utc 2013 i686 gnulinux '
config_args='-des -Dusedevel -Uversiononly -Duseshrplib -Duse64bitint -Duselongdouble -Uusethreads -Uusemultiplicity -Dprefix=/opt/perl-5.19.10 -Dsiteprefix=/opt/perl-5.19.10 -Dvendorprefix=/opt/perl-5.19.10/vendor -Doptimize=-ggdb -O2 -Dcccdlflags=-fPIC -O2 -pipe'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
use64bitint=define, use64bitall=undef, uselongdouble=define
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-ggdb -O2',
cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.7.2', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long long', ivsize=8, nvtype='long double', nvsize=12, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib/gcc/i486-linux-gnu/4.7/include-fixed /usr/include/i386-linux-gnu /usr/lib /lib/i386-linux-gnu /lib/../lib /usr/lib/i386-linux-gnu /usr/lib/../lib /lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=libc-2.13.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.13'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/opt/perl-5.19.10/lib/5.19.10/i686-linux-64int-ld/CORE'
cccdlflags='-fPIC -O2 -pipe', lddlflags='-shared -ggdb -O2 -L/usr/local/lib -fstack-protector'
---
@INC for perl 5.19.10:
/opt/perl-5.19.10/lib/site_perl/5.19.10/i686-linux-64int-ld
/opt/perl-5.19.10/lib/site_perl/5.19.10
/opt/perl-5.19.10/vendor/lib/vendor_perl/5.19.10/i686-linux-64int-ld
/opt/perl-5.19.10/vendor/lib/vendor_perl/5.19.10
/opt/perl-5.19.10/lib/5.19.10/i686-linux-64int-ld
/opt/perl-5.19.10/lib/5.19.10
.
---
Environment for perl 5.19.10:
HOME=/root
LANG (unset)
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/root/pub/i686-pc-linux-gnu/bin:/root/pub/common/bin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/bin:/usr/local/sbin:/usr/games:/opt/geoip/bin:/opt/httpd/bin:/opt/perl/bin
PERL_BADLANG (unset)
SHELL=/usr/bin/zsh
Thread Next
-
[perl #121484] /m causing false negative
by Zefram