develooper Front page | perl.perl5.porters | Postings from February 2002

[ID 20020209.009] core dump in Perl_regexec_flags

Thread Next
From:
Slaven Rezic
Date:
February 9, 2002 14:51
Subject:
[ID 20020209.009] core dump in Perl_regexec_flags
Message ID:
200202092247.g19MlBk18468@vran.herceg.de

This is a bug report for perl from eserte@vran.herceg.de,
generated with the help of perlbug 1.33 running under perl v5.7.2.


-----------------------------------------------------------------
I'm not sure whether this is a Perl/Tk or perl problem:

In Perl/Tk there is a call to pregexec with a NULL as 6th argument:

 return pregexec(re,string,string+strlen(string),start,0,NULL,1);

(this is in file tkGlue.c).

In perl's Perl_regexec_flags function, a core will be dumped at line
1427:

    bool do_utf8 = DO_UTF8(sv);

The problem is fixed if I change the line to:

    bool do_utf8 = sv && DO_UTF8(sv);

Regards,
	Slaven

-----------------------------------------------------------------
---
Flags:
    category=core
    severity=medium
---
Site configuration information for perl v5.7.2:

Configured by eserte at Sat Feb  9 22:33:02 CET 2002.

Summary of my perl5 (revision 5.0 version 7 subversion 2 patch 14574) configuration:
  Platform:
    osname=freebsd, osvers=4.3-stable, archname=i386-freebsd-64int
    uname='freebsd vran.herceg.de 4.3-stable freebsd 4.3-stable #6: mon jul 9 11:49:47 cest 2001 root@vran.herceg.de:vranhomesrcfreebsd-4srcsyscompilevran i386 '
    config_args='-Doptimize=-g -DPERL_DEBUGGING_MSTATS -Dusemymalloc=y -Dprefix=/usr/perl5.7.2d -D usedevel=define -de -D hintfile=myfreebsd'
    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=undef uselongdouble=undef
    usemymalloc=y, bincompat5005=define
  Compiler:
    cc='cc', ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DDEBUGGING -fno-strict-aliasing -I/usr/local/include',
    optimize='-g -DPERL_DEBUGGING_MSTATS',
    cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DDEBUGGING -fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='2.95.3 [FreeBSD] 20010315 (release)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags ='-Wl,-E  -L/usr/local/lib'
    libpth=/usr/lib /usr/local/lib
    libs=-lbind -lgdbm -ldb -lm -lc -lcrypt -lutil
    perllibs=-lbind -lm -lc -lcrypt -lutil
    libc=, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-DPIC -fpic', lddlflags='-shared  -L/usr/local/lib'

Locally applied patches:
    DEVEL14574

---
@INC for perl v5.7.2:
    lib
    /usr/perl5.7.2d/lib/5.7.2/i386-freebsd-64int
    /usr/perl5.7.2d/lib/5.7.2
    /usr/perl5.7.2d/lib/site_perl/5.7.2/i386-freebsd-64int
    /usr/perl5.7.2d/lib/site_perl/5.7.2
    /usr/perl5.7.2d/lib/site_perl
    .

---
Environment for perl v5.7.2:
    HOME=/home/e/eserte
    LANG (unset)
    LANGUAGE (unset)
    LC_ALL=de_DE.ISO_8859-1
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/X11R6/bin:/usr/X11/bin:/usr/local/bin:/usr/bin:/bin:/usr/gnu/bin:/usr/TeX/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/pilot/bin:/home/e/eserte/bin/FreeBSD:/home/e/eserte/bin/sh:/home/e/eserte/bin:/usr/X386/bin:/usr/games:/home/e/eserte/devel
    PERL_BADLANG (unset)
    SHELL=/usr/local/bin/tcsh


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