develooper Front page | perl.perl5.porters | Postings from January 2005

[perl #33936] segment fault when using split() in regexp with (??{...})

Thread Next
From:
王晓哲
Date:
January 26, 2005 05:51
Subject:
[perl #33936] segment fault when using split() in regexp with (??{...})
Message ID:
rt-3.0.11-33936-106475.8.50083776968688@perl.org
# New Ticket Created by  王晓哲 
# Please include the string:  [perl #33936]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=33936 >



This is a bug report for perl from wangxz00@mails.tsinghua.edu.cn,
generated with the help of perlbug 1.35 running under perl v5.8.6.


-----------------------------------------------------------------
[Please enter your report here]
When using split() function in (??{...}), the Perl interpreter died.
This error can be verified by the following program:
#!/usr/bin/perl
$a="aba";
print "matched\n" if $a=~/(??{"aba"})/;	# OK
print "matched\n" if $a=~/(??{join("",split("","aba"))})/; # Segmentation Fault

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

Configured by ActiveState at Mon Dec 13 09:51:32 2004.

Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
  Platform:
    osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
    uname=''
    config_args='undef'
    hint=recommended, useposix=true, d_sigaction=undef
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cl', ccflags ='-nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT  -DNO_HASH_SEED -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX',
    optimize='-MD -Zi -DNDEBUG -O1',
    cppflags='-DWIN32'
    ccversion='', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf  -libpath:"F:\Perl\lib\CORE"  -machine:x86'
    libpth=\lib
    libs=  oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib  comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib  netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib msvcrt.lib
    perllibs=  oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib  comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib  netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib msvcrt.lib
    libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl58.lib
    gnulibc_version='undef'
  Dynamic Linking:
    dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug -opt:ref,icf  -libpath:"F:\Perl\lib\CORE"  -machine:x86'

Locally applied patches:
    ACTIVEPERL_LOCAL_PATCHES_ENTRY
    21540 Fix backward-compatibility issues in if.pm
    23565 Wrong MANIFEST.SKIP

---
@INC for perl v5.8.6:
    F:\Program Files\ActiveState Perl Dev Kit 6.0\lib\
    f:/Perl/lib
    f:/Perl/site/lib
    .

---
Environment for perl v5.8.6:
    HOME (unset)
    LANG=zh_CN
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=F:\Python24\.;F:\Program Files\ActiveState Perl Dev Kit 6.0\bin\;h:\CTeX\LOCALT~1\ty\bin;h:\CTeX\LOCALT~1\cct\bin;h:\CTeX\texmf\miktex\bin;h:\CTeX\gs\gs8.14\bin;h:\CTeX\WinEdt;E:\WINDOWS\system32\wbem;E:\WINDOWS\system32;f:\perl\bin\;f:\progra~1\aldec\active~1.2\bin;d:\matlab6p5\bin\win32;F:\Program Files\Hummingbird\Connectivity\10.00\Accessories\;;d:\Program Files\UltraEdit;E:\WINDOWS;d:\MinGW\bin;d:\msys\1.0\bin;f:\OrCAD\OrCAD_10.3\tools\fet\bin;f:\OrCAD\OrCAD_10.3\tools\pcb\bin;f:\OrCAD\OrCAD_10.3\tools\specctra\bin;f:\OrCAD\OrCAD_10.3\tools\PSpice\Library;f:\OrCAD\OrCAD_10.3\tools\bin;f:\OrCAD\OrCAD_10.3\tools\Capture;F:\Program Files\ActiveState Komodo 3.0\;f:\PROGRA~1\GNU\WINCVS~1.3\CVSNT;d:\vslick\win;F:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;F:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;F:\Program Files\Microsoft Visual Studio\Common\Tools;F:\Program Files\Microsoft Visual Studio\VC98\bin;f:\Modeltech_6.0\win32;f:\Program Files\STI\bin\pc-win95;;f:\padspwr\specctra\bin
    PERL5LIB=F:\Program Files\ActiveState Perl Dev Kit 6.0\lib\
    PERLDB_OPTS=RemotePort=127.0.0.1:2000
    PERL_BADLANG (unset)
    SHELL (unset)




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