develooper Front page | perl.perl5.porters | Postings from September 2013

[perl #119713] Regex \8 and \9 after literals no longer work

From:
Tim Jenness
Date:
September 11, 2013 04:52
Subject:
[perl #119713] Regex \8 and \9 after literals no longer work
Message ID:
rt-3.6.HEAD-1873-1378857727-984.119713-75-0@perl.org
# New Ticket Created by  Tim Jenness 
# Please include the string:  [perl #119713]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=119713 >



This is a bug report for perl from tim.jenness@gmail.com,
generated with the help of perlbug 1.39 running under perl 5.18.1.


-----------------------------------------------------------------
[Please describe your issue here]

latex2html no longer works with perl 5.18.x. It worked fine for 5.16.x.

Michael Schroeder tracked this down as a problem matching \8 and \9
if they come after a literal. This was introduced in commit 726ee55d
and fixed by Yves in f1e1b256c5c1773d90e828cca6323c53fa23391b

Please consider including this fix in 5.18.2.

Michael's test script was:

    use re 'debug';
    my $a = '(((((((((x)))))))))foo\9';
    my $b = 'xfoox';
    $b =~ /$a/;


[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=high
---
Site configuration information for perl 5.18.1:

Configured by timj at Tue Sep  3 18:18:08 MST 2013.

Summary of my perl5 (revision 5 version 18 subversion 1) configuration:
   
  Platform:
    osname=darwin, osvers=12.4.0, archname=darwin-2level
    uname='darwin thrylos.local 12.4.0 darwin kernel version 12.4.0: wed may 1 17:57:12 pdt 2013; root:xnu-2050.24.15~1release_x86_64 x86_64 '
    config_args='-des -Dprefix=/star/Perl -Dcc=clang  -Doptimize=-g -O2'
    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='clang', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include',
    optimize='-O3',
    cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)', 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='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib
    libs=-lgdbm -ldbm -ldl -lm -lutil -lc
    perllibs=-ldl -lm -lutil -lc
    libc=, so=dylib, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector'

Locally applied patches:
    

---
@INC for perl 5.18.1:
    /star/Perl/lib/perl5/site_perl/5.18.1/darwin-2level
    /star/Perl/lib/perl5/site_perl/5.18.1
    /star/Perl/lib/perl5/5.18.1/darwin-2level
    /star/Perl/lib/perl5/5.18.1
    /star/Perl/lib/perl5/site_perl
    .

---
Environment for perl 5.18.1:
    DYLD_LIBRARY_PATH=/star/lib:/star/starjava/lib/i386:/star/starjava/lib/x86_64
    HOME=/Users/timj
    LANG=en_US.UTF-8
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/Users/timj/perl5/perlbrew/bin:/Users/timj/perl5/perlbrew/perls/perl-5.16.2/bin:/star/buildsupport/bin:/usr/local/git/bin:/Users/timj/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/texbin:/usr/local/drama/bin:/usr/local/bin:/usr/local/texlive/2012/bin/x86_64-darwin:/star/bin/startcl:/star/bin:/star/starjava/bin
    PERLBREW_BASHRC_VERSION=0.58
    PERLBREW_HOME=/Users/timj/.perlbrew
    PERLBREW_MANPATH=/Users/timj/perl5/perlbrew/perls/perl-5.16.2/man
    PERLBREW_PATH=/Users/timj/perl5/perlbrew/bin:/Users/timj/perl5/perlbrew/perls/perl-5.16.2/bin
    PERLBREW_PERL=perl-5.16.2
    PERLBREW_ROOT=/Users/timj/perl5/perlbrew
    PERLBREW_VERSION=0.58
    PERL_BADLANG (unset)
    SHELL=/bin/bash




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