develooper Front page | perl.perl5.porters | Postings from December 2004

[perl #32803] regular expression segfaults perl

From:
wolf @ ti . com
Date:
December 3, 2004 17:21
Subject:
[perl #32803] regular expression segfaults perl
Message ID:
rt-3.0.11-32803-101644.14.8160395132781@perl.org
# New Ticket Created by  wolf@ti.com 
# Please include the string:  [perl #32803]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=32803 >



This is a bug report for perl from wolf@ti.com,
generated with the help of perlbug 1.34 running under perl v5.8.3.


-----------------------------------------------------------------
[Please enter your report here]

The following script.pl segfaults perl:

#!/usr/bin/env perl5.8.3
$content = "x @ x @ x @" . " " x 19762 . "@ ";
$content =~ m/@[^@]*@.*@([^@]|@@)*@/;

%> ./script.pl
Segmentation fault

(FYI:This was simplified from an attempt to parse RCS files.)

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=medium
---
Site configuration information for perl v5.8.3:

Configured by cwolf at Thu Mar  4 18:27:27 CST 2004.

Summary of my perl5 (revision 5.0 version 8 subversion 3) configuration:
  Platform:
    osname=solaris, osvers=2.8, archname=sun4-solaris
    uname='sunos honeybee 5.8 generic_108528-14 sun4u sparc sunw,sun-blade-100 '
    config_args=''
    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=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O3 -foptimize-sibling-calls -finline-functions -fmove-all-movables -funroll-loops',
    cppflags='-fno-strict-aliasing'
    ccversion='', gccversion='3.2', gccosandvers='solaris2.8'
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib '
    libpth=/usr/local/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -lgdbm -ldb -ldl -lm -lc
    perllibs=-lsocket -lnsl -ldl -lm -lc
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'

Locally applied patches:
    

---
@INC for perl v5.8.3:
    /db/sds/packages/perl5.8.3/lib/5.8.3/sun4-solaris
    /db/sds/packages/perl5.8.3/lib/5.8.3
    /db/sds/packages/perl5.8.3/lib/site_perl/5.8.3/sun4-solaris
    /db/sds/packages/perl5.8.3/lib/site_perl/5.8.3
    /db/sds/packages/perl5.8.3/lib/site_perl
    .

---
Environment for perl v5.8.3:
    HOME=/home/cwolf
    LANG (unset)
    LANGUAGE (unset)
    LC_ALL=C
    LD_LIBRARY_PATH=/usr/dt/lib:/db/sds/arch/SunOS/5.8/lib:/usr/local/X11R5/lib:/usr/local/X11R6.3/lib:/usr/openwin/lib:/db/sds/lib:/usr/local/lib
    LOGDIR (unset)
    PATH=/db/sds/arch/SunOS/5.8/bin/gnu:/db/sds/arch/SunOS/5.8/bin:/db/lang/arch/SunOS/5.8/bin:/usr/local/X11R6.3/bin:/usr/openwin/bin:/usr/local/bin:/usr/5bin:/usr/bin:/usr/ucb:/usr/local/lsf/bin:/usr/sbin:/usr/ccs/bin:.
    PERLMANPATH=/usr/local/lib/perl5/man:/db/sds/packages/Perl/lib/perl5/man:/db/sds/packages/perl5/man:/db/sds/packages/perl5/lib/man:/db/sds/packages/perl5.6.1/man
    PERL_BADLANG (unset)
    SHELL=/usr/local/bin/tcsh




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