develooper Front page | perl.perl5.porters | Postings from March 2003

[perl #21728] regexp SEGV

Thread Next
From:
Hugo van der Sanden
Date:
March 28, 2003 07:21
Subject:
[perl #21728] regexp SEGV
Message ID:
rt-21728-54208.4.63380527197799@bugs6.perl.org
# New Ticket Created by  Hugo van der Sanden 
# Please include the string:  [perl #21728]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=21728 >


This is a bug report for perl from hv@crypt.org
generated with the help of perlbug 1.34 running under perl@19077

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

perl -e '"ab" =~ join "|", ("(c)") x shift, "(?:([ab])(?!c))*"' 36

This dumps core for me in all versions of perl back to at least
5.005_03, though the critical size (the parameter) varies, I guess
depending on details of memory allocation or stack usage.

Sometimes this assert gets hit before the core dump:
  Assertion i == 21 failed: file "regexec.c", line 216
.. which is the magic cookie check in regcppop().

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

Configured by hv at Fri Mar 28 14:48:34 GMT 2003.

Summary of my perl5 (revision 5.0 version 9 subversion 0 patch 19077) configuration:
  Platform:
    osname=linux, osvers=2.4.2-2, archname=i686-linux
    uname='linux zen.crypt.org 2.4.2-2 #2 fri jan 24 21:47:54 gmt 2003 i686 unknown '
    config_args='-des -Dprefix=/opt/bleadperl -Doptimize=-g -O6 -Dusedevel -Uversiononly'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=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='cc', ccflags ='-DDEBUGGING -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
    optimize='-g -O6',
    cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/include/gdbm'
    ccversion='', gccversion='2.96 20000731 (Red Hat Linux 7.1 2.96-81)', 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='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -lgdbm -ldl -lm -lc -lcrypt -lutil -lrt
    perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil -lrt
    libc=/lib/libc-2.2.4.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.2.4'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:
    DEVEL18374

---
@INC for perl v5.9.0:
    /opt/bleadperl/lib/5.9.0/i686-linux
    /opt/bleadperl/lib/5.9.0
    /opt/bleadperl/lib/site_perl/5.9.0/i686-linux
    /opt/bleadperl/lib/site_perl/5.9.0
    /opt/bleadperl/lib/site_perl/5.8.0/i686-linux
    /opt/bleadperl/lib/site_perl/5.8.0
    /opt/bleadperl/lib/site_perl
    .

---
Environment for perl v5.9.0:
    HOME=/home/hv
    LANG=C
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/hv/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
    PERL_BADLANG (unset)
    SHELL=/bin/bash


Thread Next


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