Front page | perl.perl5.porters |
Postings from June 2013
[perl #118375] 5.18 regex regression Quantifier follows nothing in regex
Thread Previous
From:
Reini Urban
Date:
June 8, 2013 14:20
Subject:
[perl #118375] 5.18 regex regression Quantifier follows nothing in regex
Message ID:
rt-3.6.HEAD-2552-1370701198-1530.118375-75-0@perl.org
# New Ticket Created by Reini Urban
# Please include the string: [perl #118375]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=118375 >
This is a bug report for perl from rurban@cpanel.net,
generated with the help of perlbug 1.39 running under perl 5.18.0.
-----------------------------------------------------------------
With the sregex/pcre testsuite we, agentzh and me, detected an undocumented
5.18 regression in the matcher. It's arguably a bug to error in this case.
perldelta is silent in this case.
$ perl5.16.3 -e'$_="xyz";/(a|(bc)){0,0}?xyz/;print'
xyz
$ perl5.18.0 -e'$_="xyz";/(a|(bc)){0,0}?xyz/;print'
Quantifier follows nothing in regex; marked by <-- HERE in m/(a|(bc)){0,0}?
<-- HERE xyz/ at -e line 1.
https://github.com/agentzh/sregex/issues/3
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=medium
---
This perlbug was built using Perl 5.12.4 - Thu Apr 18 23:10:58 PDT 2013
It is being executed now by Perl 5.18.0 - Sat May 18 11:40:04 CDT 2013.
Site configuration information for perl 5.18.0:
Configured by reiniurban at Sat May 18 11:40:04 CDT 2013.
Summary of my perl5 (revision 5 version 18 subversion 0) configuration:
Platform:
osname=darwin, osvers=12.3.0, archname=darwin-thread-multi
uname='darwin localhost 12.3.0 darwin kernel version 12.3.0: sun
jan 6 22:37:10 pst 2013; root:xnu-2050.22.13~1release_x86_64 x86_64
i386 macbookair5,2 darwin '
config_args='-de -Dusedevel -Uversiononly -Dinstallman1dir=none
-Dinstallman3dir=none -Dinstallsiteman1dir=none
-Dinstallsiteman3dir=none -Duseithreads -Dcc='gcc-mp-4.8'
-Dld='gcc-mp-4.8' -Accflags='-m64' -Accflags='-mssse3' -Duseshrplib
-Aldflags=-flat_namespace'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc-mp-4.8', ccflags ='-fno-common -DPERL_DARWIN -m64 -mssse3
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
-I/opt/local/include',
optimize='-O3',
cppflags='-fno-common -DPERL_DARWIN -m64 -mssse3
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
-I/opt/local/include'
ccversion='', gccversion='4.8.1 20130411 (prerelease)', 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='gcc-mp-4.8', ldflags =' -flat_namespace -fstack-protector
-L/usr/local/lib -L/opt/local/lib'
libpth=/usr/local/lib /opt/local/lib /usr/lib
libs=-lgdbm -ldbm -ldl -lm -lutil -lc
perllibs=-ldl -lm -lutil -lc
libc=, so=dylib, useshrplib=true, libperl=libperl.dylib
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup
-L/usr/local/lib -L/opt/local/lib -fstack-protector'
Locally applied patches:
---
@INC for perl 5.18.0:
/usr/local/lib/perl5/site_perl/5.18.0/darwin-thread-multi
/usr/local/lib/perl5/site_perl/5.18.0
/usr/local/lib/perl5/5.18.0/darwin-thread-multi
/usr/local/lib/perl5/5.18.0
/usr/local/lib/perl5/site_perl/5.17.7
/usr/local/lib/perl5/site_perl/5.17.6
/usr/local/lib/perl5/site_perl/5.17.5
/usr/local/lib/perl5/site_perl/5.16.3
/usr/local/lib/perl5/site_perl/5.16.1
/usr/local/lib/perl5/site_perl/5.15.8
/usr/local/lib/perl5/site_perl/5.15.7
/usr/local/lib/perl5/site_perl/5.15.6
/usr/local/lib/perl5/site_perl/5.15.5
/usr/local/lib/perl5/site_perl/5.15.4
/usr/local/lib/perl5/site_perl/5.15.3
/usr/local/lib/perl5/site_perl/5.15.2
/usr/local/lib/perl5/site_perl/5.15.1
/usr/local/lib/perl5/site_perl/5.15.0
/usr/local/lib/perl5/site_perl/5.14.4
/usr/local/lib/perl5/site_perl/5.14.3
/usr/local/lib/perl5/site_perl/5.14.2
/usr/local/lib/perl5/site_perl/5.14.1
/usr/local/lib/perl5/site_perl/5.14.0
/usr/local/lib/perl5/site_perl/5.12.4
/usr/local/lib/perl5/site_perl/5.10.1
/usr/local/lib/perl5/site_perl/5.8.9
/usr/local/lib/perl5/site_perl/5.8.8
/usr/local/lib/perl5/site_perl/5.8.5
/usr/local/lib/perl5/site_perl/5.8.4
/usr/local/lib/perl5/site_perl/5.6.2
/usr/local/lib/perl5/site_perl
.
---
Environment for perl 5.18.0:
DYLD_LIBRARY_PATH (unset)
HOME=/Users/reiniurban
LANG=en_US.UTF-8
LANGUAGE (unset)
LC_CTYPE=en_US.UTF-8
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/opt/local/libexec/perl5.12/sitebin:/opt/local/libexec/gnubin:/opt/local/bin:/opt/local/sbin:/Users/reiniurban/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
PERL_BADLANG (unset)
SHELL=/bin/bash
Thread Previous