develooper Front page | perl.perl5.porters | Postings from July 2011

[perl #95964] \b causes panic when using /aa option

Thread Previous
From:
karl williamson
Date:
July 30, 2011 08:08
Subject:
[perl #95964] \b causes panic when using /aa option
Message ID:
rt-3.6.HEAD-7815-1312038481-283.95964-75-0@perl.org
# New Ticket Created by  karl williamson 
# Please include the string:  [perl #95964]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=95964 >


This is a bug report for perl from chas.owens@gmail.com,
generated with the help of perlbug 1.39 running under perl 5.15.0.


-----------------------------------------------------------------

[You can just copy perlbug's output into an email body and send to 
perlbug@perl.org, as I've done here.  perlbug doesn't have to do the 
actual sending.]

The following test script causes a panic in Perl 5.15.0 and 5.14.1 on
OS X 10.6.8.

It was originally reported in a more complicated case on Win32 using 5.14.1.

#!/usr/bin/perl

use 5.014;

my $foo = "foo";
$foo =~ s/\bfoo/bar/aa;
print "$foo\n";

The actual panic message is

panic: Unexpected FLAGS 4 in op 12 at x.pl line 6.


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

Configured by cowens at Fri Jul  1 11:27:05 EDT 2011.

Summary of my perl5 (revision 5 version 15 subversion 0) configuration:

  Platform:
    osname=darwin, osvers=10.7.0, archname=darwin-2level
    uname='darwin amans.local 10.7.0 darwin kernel version 10.7.0: sat
jan 29 15:17:16 pst 2011; root:xnu-1504.9.37~1release_i386 i386 '
    config_args='-de
-Dprefix=/Users/cowens/apps/perlbrew/perls/perl-5.15.0 -Dusedevel'
    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='cc', ccflags ='-fno-common -DPERL_DARWIN -fno-strict-aliasing
-pipe -fstack-protector -I/usr/local/include -I/opt/local/include',
    optimize='-O3',
    cppflags='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include -I/opt/local/include'
    ccversion='', gccversion='4.2.1 (Apple Inc. build 5664)', 
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 -L/opt/local/lib'
    libpth=/usr/local/lib /opt/local/lib /usr/lib
    libs=-ldbm -ldl -lm -lutil -lc
    perllibs=-ldl -lm -lutil -lc
    libc=/usr/lib/libc.dylib, 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 -L/opt/local/lib -fstack-protector'

Locally applied patches:


---
@INC for perl 5.15.0:
 
/Users/cowens/apps/perlbrew/perls/perl-5.15.0/lib/site_perl/5.15.0/darwin-2level
    /Users/cowens/apps/perlbrew/perls/perl-5.15.0/lib/site_perl/5.15.0
    /Users/cowens/apps/perlbrew/perls/perl-5.15.0/lib/5.15.0/darwin-2level
    /Users/cowens/apps/perlbrew/perls/perl-5.15.0/lib/5.15.0
    .

---
Environment for perl 5.15.0:
    DYLD_LIBRARY_PATH (unset)
    HOME=/Users/cowens
    LANG=en_US.UTF-8
    LANGUAGE (unset)
    LD_LIBRARY_PATH=/Users/cowens/apps/brew/lib
    LOGDIR (unset)
 
PATH=/Users/cowens/apps/python/bin:/Users/cowens/apps/perlbrew/bin:/Users/cowens/apps/perlbrew/perls/perl-5.15.0/bin:~/bin:/Library/Application
Support/VMware 
Fusion/:/Users/cowens/apps/brew/sbin:/Users/cowens/apps/vim/bin:/Users/cowens/apps/python/bin:/Users/cowens/apps/citrusperl/bin:/Users/cowens/apps/brew/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
    PERLBREW_HOME=/Users/cowens/.perlbrew
 
PERLBREW_PATH=/Users/cowens/apps/perlbrew/bin:/Users/cowens/apps/perlbrew/perls/perl-5.15.0/bin
    PERLBREW_PERL=perl-5.15.0
    PERLBREW_ROOT=/Users/cowens/apps/perlbrew
    PERLBREW_VERSION=0.25
    PERL_BADLANG (unset)
    PERL_CPANM_OPT=--skip-installed --prompt
    PERL_INLINE_DIRECTORY=/Users/cowens/.inline
    SHELL=/bin/bash

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.


Thread Previous


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