Front page | perl.perl5.porters |
Postings from December 2009
[perl #71046] Regex causes perl 5.8.9 to SIGSEGV
Thread Next
From:
perlbug-followup
Date:
December 5, 2009 15:11
Subject:
[perl #71046] Regex causes perl 5.8.9 to SIGSEGV
Message ID:
rt-3.6.HEAD-12359-1259982529-274.71046-75-0@perl.org
# New Ticket Created by triddle@gmail.com
# Please include the string: [perl #71046]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=71046 >
This is a bug report for perl from tyler@foodmotron.local,
generated with the help of perlbug 1.39 running under perl v5.8.9.
-----------------------------------------------------------------
[Please describe your issue here]
The following snippet will cause a stock perl 5.8.9 to crash with a
segmentation violation:
my $string = "'" . ' ' x 5000000 . "'";
$string =~ m/\G'((\\.|[^'])*)'/gc;
This was tested on my Mac OS X Snow Leopard machine using a fresh build of
5.8.9 I constructed myself.
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=low
---
Site configuration information for perl v5.8.9:
Configured by tyler at Fri Dec 4 18:49:30 PST 2009.
Summary of my perl5 (revision 5 version 8 subversion 9) configuration:
Platform:
osname=darwin, osvers=10.2.0, archname=darwin-2level
uname='darwin foodmotron.local 10.2.0 darwin kernel version
10.2.0: tue nov 3 10:37:10 pst 2009; root:xnu-1486.2.11~1release_i386
i386 '
config_args='-des -Dprefix=~/tmp/perl'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef 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 -no-cpp-precomp
-fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include',
optimize='-O3',
cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN
-no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include
-I/opt/local/include'
ccversion='', gccversion='4.2.1 (Apple Inc. build 5646) (dot 1)',
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 ='
-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'
Locally applied patches:
---
@INC for perl v5.8.9:
/Users/tyler/tmp/perl/lib/5.8.9/darwin-2level
/Users/tyler/tmp/perl/lib/5.8.9
/Users/tyler/tmp/perl/lib/site_perl/5.8.9/darwin-2level
/Users/tyler/tmp/perl/lib/site_perl/5.8.9
.
---
Environment for perl v5.8.9:
DYLD_LIBRARY_PATH (unset)
HOME=/Users/tyler
LANG=en_US.UTF-8
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
PERL_BADLANG (unset)
SHELL=/bin/bash
Thread Next
-
[perl #71046] Regex causes perl 5.8.9 to SIGSEGV
by perlbug-followup