Front page | perl.perl5.porters |
Postings from October 2009
[perl #70091] Segmentation fault in hash lookup in regex substitution
From:
l.mai@web.de
Date:
October 29, 2009 02:51
Subject:
[perl #70091] Segmentation fault in hash lookup in regex substitution
Message ID:
rt-3.6.HEAD-8015-1256766395-287.70091-75-0@perl.org
# New Ticket Created by l.mai@web.de
# Please include the string: [perl #70091]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=70091 >
This is a bug report for perl from l.mai@web.de,
generated with the help of perlbug 1.35 running under perl v5.10.1.
-----------------------------------------------------------------
[Please enter your report here]
#!perl
use warnings;
my %foo;
my $foo = '';
(my $tmp = $foo) =~ s/^/$foo {$0}/e;
__END__
This program causes a segfault with 5.10.0 and 5.10.1.
The space between '$foo' and '{' is essential, which is why piping
it through perl -MO=Deparse "fixes" it.
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=medium
---
This perlbug was built using Perl v5.8.8 - Wed Mar 22 20:53:12 CET 2006
It is being executed now by Perl v5.10.1 - Sun Sep 13 11:42:53 CEST 2009.
Site configuration information for perl v5.10.1:
Configured by mauke at Sun Sep 13 11:42:53 CEST 2009.
Summary of my perl5 (revision 5 version 10 subversion 1) configuration:
Platform:
osname=linux, osvers=2.6.27-gentoo-r8, archname=i686-linux
uname='linux nora 2.6.27-gentoo-r8 #4 preempt mon apr 13 21:59:34 cest 2009 i686 amd athlon(tm) 64 processor 3200+ authenticamd gnulinux '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.3.3', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.9.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.9'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector'
Locally applied patches:
SAFEARGV0 - disable magic open in <ARGV>
METHQUAL0 - allow qualified method calls without a valid object
UNWARN0 - disable stupid warnings for print and qw
---
@INC for perl v5.10.1:
/home/mauke/usr/local/lib/perl5/5.10.1/i686-linux
/home/mauke/usr/local/lib/perl5/5.10.1
/home/mauke/usr/local/lib/perl5/site_perl/5.10.1/i686-linux
/home/mauke/usr/local/lib/perl5/site_perl/5.10.1
/home/mauke/usr/local/lib/perl5/site_perl/5.10.0/i686-linux
/home/mauke/usr/local/lib/perl5/site_perl/5.10.0
/home/mauke/usr/local/lib/perl5/site_perl
.
---
Environment for perl v5.10.1:
HOME=/home/mauke
LANG=en_US.UTF-8
LANGUAGE (unset)
LC_COLLATE=POSIX
LD_LIBRARY_PATH=/home/mauke/usr/local/lib
LOGDIR (unset)
PATH=/home/mauke/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.3.2:/opt/sun-jdk-1.4.2.13/bin:/opt/sun-jdk-1.4.2.13/jre/bin:/opt/sun-jdk-1.4.2.13/jre/javaws:/opt/dmd/bin:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/games/bin:/opt/vmware/server/bin
PERL_BADLANG (unset)
PERL_UNICODE=SAL
SHELL=/bin/bash
-
[perl #70091] Segmentation fault in hash lookup in regex substitution
by l.mai@web.de