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

[perl #27064] Segfaults with regex

Thread Next
From:
Boris Zentner
Date:
February 24, 2004 20:29
Subject:
[perl #27064] Segfaults with regex
Message ID:
rt-3.0.8-27064-79831.16.5314971034073@perl.org
# New Ticket Created by  Boris Zentner 
# Please include the string:  [perl #27064]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=27064 >



This is a bug report for perl from Boris Zentner <bzm@2bz.de>,
generated with the help of perlbug 1.34 running under perl v5.8.1.


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

This test program segfaults for at least perl 5.6.1, 5.8.1 and 5.8.3.
Sometimes it did not segfault, but you can examine the error with 
valgrind very well.

################ test prog ######################
#!/usr/bin/perl
local $/;
my $xx;
 $xx =
 qr%
      \<(!--)?\s*PKIT_COMMENT\s*(?(1)--)\>
      (?:
	(?>[^\<]+)
	| \<
	  (?!(!--)?\s*PKIT_COMMENT\s*(?(2)--)\>)
	  (?!(!--)?\s*\/PKIT_COMMENT\s*(?(3)--)\>)
	| (??{$xx})
      )*
      \<(!--)?\/PKIT_COMMENT\s*(?(4)--)\>
    %isx;

my $z = <DATA>;
$z =~ s/(??{$xx})/XX/g;
## $z =~ s/((??{$xx}))/XX/g;
print $z;
exit;

__DATA__
<PKIT_COMMENT>
  <PKIT_COMMENT>bla</PKIT_COMMENT>
</PKIT_COMMENT>
<!--PKIT_COMMENT-->
 <!--PKIT_COMMENT-->
  <!--PKIT_COMMENT-->bla</PKIT_COMMENT>
 </PKIT_COMMENT>
</PKIT_COMMENT>
################### test end ######################

#####################################################
# here the gdb backtrace from perl ~/regex_bug.pl   #
# ( perl 5.8.1 )                                    #
#####################################################

(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 16974)]
0x080bdd46 in Perl_runops_standard ()
(gdb) bt
#0  0x080bdd46 in Perl_runops_standard ()
#1  0x0811320e in S_regmatch ()
#2  0x08112c12 in S_regtry ()
#3  0x08112a08 in Perl_regexec_flags ()
#4  0x080c3a87 in Perl_pp_subst ()
#5  0x080bdd49 in Perl_runops_standard ()
#6  0x08063528 in S_run_body ()
#7  0x08063395 in perl_run ()
#8  0x0805fa1d in main ()

#####################################################
# here the output from perl ~/regex_bug.pl #
# ( perl 5.8.3 with DEBUGGING )                     #
#####################################################
perltest@foo:/home/boris> perl /tmp/regex_bug.pl
XX
XX
assertion botched (chunk's tail overwrite?): ((unsigned int *)((caddr_t)ovp + 
nbytes))[-1] == 0x55555555 (malloc.c:2074)
Abgebrochen

#####################################################
# here the output from valgrind perl ~/regex_bug.pl #
# ( perl 5.8.1 )                                    #
#####################################################
==16981== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux.
==16981== Copyright (C) 2002, and GNU GPL'd, by Julian Seward.
==16981== Using valgrind-1.9.6, a program instrumentation system for 
x86-linux.
==16981== Copyright (C) 2000-2002, and GNU GPL'd, by Julian Seward.
==16981== Estimated CPU clock rate is 1004 MHz
==16981== For more details, rerun with: -v
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x8115DFB: S_regmatch (in /usr/bin/perl)
==16981==    by 0x811606F: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8112C11: S_regtry (in /usr/bin/perl)
==16981==    by 0x8112A07: Perl_regexec_flags (in /usr/bin/perl)
==16981==    Address 0x411FAD68 is 0 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F04F: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid read of size 4
==16981==    at 0x8112FF8: S_regmatch (in /usr/bin/perl)
==16981==    by 0x81159C2: S_regmatch (in /usr/bin/perl)
==16981==    by 0x81159C2: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8115D97: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD68 is 0 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F04F: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x8115DFB: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8113067: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD6C is 4 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F04F: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x8113579: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x811366A: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD6C is 4 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F04F: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid read of size 4
==16981==    at 0x810E019: S_regcppush (in /usr/bin/perl)
==16981==    by 0x8115FE3: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD6C is 4 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F04F: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid read of size 4
==16981==    at 0x810E02F: S_regcppush (in /usr/bin/perl)
==16981==    by 0x8115FE3: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD38 is 4 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F019: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x8115DFB: S_regmatch (in /usr/bin/perl)
==16981==    by 0x811606F: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD68 is 0 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F04F: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid read of size 4
==16981==    at 0x810E019: S_regcppush (in /usr/bin/perl)
==16981==    by 0x8116C8C: S_regmatch (in /usr/bin/perl)
==16981==    by 0x811366A: S_regmatch (in /usr/bin/perl)
==16981==    by 0x81159C2: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD6C is 4 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F04F: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid read of size 4
==16981==    at 0x810E02F: S_regcppush (in /usr/bin/perl)
==16981==    by 0x8116C8C: S_regmatch (in /usr/bin/perl)
==16981==    by 0x811366A: S_regmatch (in /usr/bin/perl)
==16981==    by 0x81159C2: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD38 is 4 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F019: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid read of size 4
==16981==    at 0x810E019: S_regcppush (in /usr/bin/perl)
==16981==    by 0x8116C8C: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x811366A: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD6C is 4 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F04F: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid read of size 4
==16981==    at 0x810E02F: S_regcppush (in /usr/bin/perl)
==16981==    by 0x8116C8C: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x811366A: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD38 is 4 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F019: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid read of size 4
==16981==    at 0x810E045: S_regcppush (in /usr/bin/perl)
==16981==    by 0x8115FE3: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FB9D0 is 0 bytes after a block of size 12 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x8112C53: S_regtry (in /usr/bin/perl)
==16981==    by 0x8112A07: Perl_regexec_flags (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x810E1B4: S_regcppop (in /usr/bin/perl)
==16981==    by 0x811609E: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD34 is 0 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F019: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x810E1D4: S_regcppop (in /usr/bin/perl)
==16981==    by 0x811609E: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD68 is 0 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F04F: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x810E19E: S_regcppop (in /usr/bin/perl)
==16981==    by 0x811609E: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FB9D0 is 0 bytes after a block of size 12 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x8112C53: S_regtry (in /usr/bin/perl)
==16981==    by 0x8112A07: Perl_regexec_flags (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x810E21B: S_regcppop (in /usr/bin/perl)
==16981==    by 0x811609E: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD6C is 4 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F04F: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x810E20E: S_regcppop (in /usr/bin/perl)
==16981==    by 0x811609E: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD40 is 12 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F019: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x810E1B4: S_regcppop (in /usr/bin/perl)
==16981==    by 0x8116CDC: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x811366A: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD38 is 4 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F019: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x810E21B: S_regcppop (in /usr/bin/perl)
==16981==    by 0x8116CDC: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x811366A: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD6C is 4 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F04F: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x810E20E: S_regcppop (in /usr/bin/perl)
==16981==    by 0x8116CDC: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x811366A: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD3C is 8 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F019: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x8115DFB: S_regmatch (in /usr/bin/perl)
==16981==    by 0x811695F: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x811366A: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD74 is 12 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F04F: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid read of size 4
==16981==    at 0x8112FF8: S_regmatch (in /usr/bin/perl)
==16981==    by 0x81159C2: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8115D97: S_regmatch (in /usr/bin/perl)
==16981==    by 0x811695F: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD74 is 12 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F04F: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid read of size 4
==16981==    at 0x810E019: S_regcppush (in /usr/bin/perl)
==16981==    by 0x811665D: S_regmatch (in /usr/bin/perl)
==16981==    by 0x81159C2: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8115D97: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD74 is 12 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F04F: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid read of size 4
==16981==    at 0x810E02F: S_regcppush (in /usr/bin/perl)
==16981==    by 0x811665D: S_regmatch (in /usr/bin/perl)
==16981==    by 0x81159C2: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8115D97: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD40 is 12 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F019: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid read of size 4
==16981==    at 0x810E045: S_regcppush (in /usr/bin/perl)
==16981==    by 0x811665D: S_regmatch (in /usr/bin/perl)
==16981==    by 0x81159C2: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8115D97: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FB9D4 is 4 bytes after a block of size 12 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x8112C53: S_regtry (in /usr/bin/perl)
==16981==    by 0x8112A07: Perl_regexec_flags (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x810E1B4: S_regcppop (in /usr/bin/perl)
==16981==    by 0x810E25F: S_regcp_set_to (in /usr/bin/perl)
==16981==    by 0x8116679: S_regmatch (in /usr/bin/perl)
==16981==    by 0x81159C2: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD34 is 0 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F019: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x810E1D4: S_regcppop (in /usr/bin/perl)
==16981==    by 0x810E25F: S_regcp_set_to (in /usr/bin/perl)
==16981==    by 0x8116679: S_regmatch (in /usr/bin/perl)
==16981==    by 0x81159C2: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD68 is 0 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F04F: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x810E21B: S_regcppop (in /usr/bin/perl)
==16981==    by 0x810E25F: S_regcp_set_to (in /usr/bin/perl)
==16981==    by 0x8116679: S_regmatch (in /usr/bin/perl)
==16981==    by 0x81159C2: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD6C is 4 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F04F: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x810E20E: S_regcppop (in /usr/bin/perl)
==16981==    by 0x810E25F: S_regcp_set_to (in /usr/bin/perl)
==16981==    by 0x8116679: S_regmatch (in /usr/bin/perl)
==16981==    by 0x81159C2: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD3C is 8 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F019: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid read of size 4
==16981==    at 0x810E019: S_regcppush (in /usr/bin/perl)
==16981==    by 0x8116C8C: S_regmatch (in /usr/bin/perl)
==16981==    by 0x81166C7: S_regmatch (in /usr/bin/perl)
==16981==    by 0x81159C2: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD6C is 4 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F04F: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid read of size 4
==16981==    at 0x810E02F: S_regcppush (in /usr/bin/perl)
==16981==    by 0x8116C8C: S_regmatch (in /usr/bin/perl)
==16981==    by 0x81166C7: S_regmatch (in /usr/bin/perl)
==16981==    by 0x81159C2: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD38 is 4 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F019: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid read of size 4
==16981==    at 0x810E019: S_regcppush (in /usr/bin/perl)
==16981==    by 0x8116C8C: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x81166C7: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD6C is 4 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F04F: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid read of size 4
==16981==    at 0x810E02F: S_regcppush (in /usr/bin/perl)
==16981==    by 0x8116C8C: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x81166C7: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD38 is 4 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F019: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x8113579: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x81166C7: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD70 is 8 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F04F: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x810E1B4: S_regcppop (in /usr/bin/perl)
==16981==    by 0x8116CDC: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x81166C7: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD38 is 4 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F019: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x810E21B: S_regcppop (in /usr/bin/perl)
==16981==    by 0x8116CDC: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x81166C7: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD6C is 4 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F04F: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x810E20E: S_regcppop (in /usr/bin/perl)
==16981==    by 0x8116CDC: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x81166C7: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD3C is 8 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F019: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x8115DFB: S_regmatch (in /usr/bin/perl)
==16981==    by 0x811695F: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x81166C7: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD74 is 12 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F04F: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x810E20E: S_regcppop (in /usr/bin/perl)
==16981==    by 0x811609E: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8112C11: S_regtry (in /usr/bin/perl)
==16981==    by 0x8112A07: Perl_regexec_flags (in /usr/bin/perl)
==16981==    Address 0x411FAD34 is 0 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F019: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x810E21B: S_regcppop (in /usr/bin/perl)
==16981==    by 0x811609E: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8112C11: S_regtry (in /usr/bin/perl)
==16981==    by 0x8112A07: Perl_regexec_flags (in /usr/bin/perl)
==16981==    Address 0x411FAD68 is 0 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F04F: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x8115D66: S_regmatch (in /usr/bin/perl)
==16981==    by 0x811606F: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8112C11: S_regtry (in /usr/bin/perl)
==16981==    by 0x8112A07: Perl_regexec_flags (in /usr/bin/perl)
==16981==    Address 0x411FAD34 is 0 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F019: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x8115D80: S_regmatch (in /usr/bin/perl)
==16981==    by 0x811606F: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8112C11: S_regtry (in /usr/bin/perl)
==16981==    by 0x8112A07: Perl_regexec_flags (in /usr/bin/perl)
==16981==    Address 0x411FAD68 is 0 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F04F: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x8115D66: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8113067: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD38 is 4 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F019: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x8115D80: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8113067: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD6C is 4 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F04F: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x8115D66: S_regmatch (in /usr/bin/perl)
==16981==    by 0x811606F: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD34 is 0 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F019: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== 
==16981== Invalid write of size 4
==16981==    at 0x8115D80: S_regmatch (in /usr/bin/perl)
==16981==    by 0x811606F: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    by 0x8116CB5: S_regmatch (in /usr/bin/perl)
==16981==    Address 0x411FAD68 is 0 bytes after a block of size 4 alloc'd
==16981==    at 0x401646E3: malloc (vg_clientfuncs.c:103)
==16981==    by 0x80AB449: Perl_safesysmalloc (in /usr/bin/perl)
==16981==    by 0x809F04F: Perl_pregcomp (in /usr/bin/perl)
==16981==    by 0x808FC5D: Perl_pmruntime (in /usr/bin/perl)
==16981== valgrind's libpthread.so: KLUDGED call to: siglongjmp (cleanup 
handlers are ignored)
XX
XX
==16981== 
==16981== ERROR SUMMARY: 324 errors from 46 contexts (suppressed: 90 from 2)
==16981== malloc/free: in use at exit: 102951 bytes in 852 blocks.
==16981== malloc/free: 1331 allocs, 479 frees, 147451 bytes allocated.
==16981== For a detailed leak analysis,  rerun with: --leak-check=yes
==16981== For counts of detected errors, rerun with: -v

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=low
---
This perlbug was built using Perl v5.8.1 - Wed Dec 10 09:21:16 UTC 2003
It is being executed now by  Perl v5.8.1 - Wed Dec 10 09:15:53 UTC 2003.

Site configuration information for perl v5.8.1:

Configured by root at Wed Dec 10 09:15:53 UTC 2003.

Summary of my perl5 (revision 5.0 version 8 subversion 1) configuration:
  Platform:
    osname=linux, osvers=2.6.0-test3, archname=i586-linux-thread-multi
    uname='linux g8 2.6.0-test3 #1 smp fri nov 14 00:07:01 utc 2003 i686 i686 
i386 gnulinux '
    config_args='-ds -e -Dprefix=/usr -Dvendorprefix=/usr -Dinstallusrbinperl 
-Dusethreads -Di_db -Di_dbm -Di_ndbm -Di_gdbm -Duseshrplib=true 
-Doptimize=-O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -pipe'
    hint=recommended, useposix=true, d_sigaction=define
    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='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS 
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -pipe',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS 
-fno-strict-aliasing'
    ccversion='', gccversion='3.3.1 (SuSE Linux)', 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 =''
    libpth=/lib /usr/lib /usr/local/lib
    libs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.3.2'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic 
-Wl,-rpath,/usr/lib/perl5/5.8.1/i586-linux-thread-multi/CORE'
    cccdlflags='-fPIC', lddlflags='-shared'

Locally applied patches:
    

---
@INC for perl v5.8.1:
    /usr/lib/perl5/5.8.1/i586-linux-thread-multi
    /usr/lib/perl5/5.8.1
    /usr/lib/perl5/site_perl/5.8.1/i586-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.1
    /usr/lib/perl5/site_perl
    /usr/lib/perl5/vendor_perl/5.8.1/i586-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.1
    /usr/lib/perl5/vendor_perl
    .

---
Environment for perl v5.8.1:
    HOME=/home/boris
    LANG=de_DE@euro
    LANGUAGE (unset)
    LC_COLLATE=POSIX
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/boris/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/java/bin:/opt/bitkeeper:/opt/bitkeeper
    PERL_BADLANG (unset)
    SHELL=/bin/bash

-- 
Boris

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