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

valgrind finding from blead

Thread Next
From:
Jarkko Hietaniemi
Date:
October 28, 2005 12:48
Subject:
valgrind finding from blead
Message ID:
4362813F.3040000@gmail.com
valgrind 2.4.0 gives me from

$_ = 'a';
$r = 'x';
s/a(?{})/$r/;
my $f = eval '$&';

the following:

==18571== Invalid read of size 1
==18571==    at 0x1BA084DD: memmove (in /lib/libc-2.3.2.so)
==18571==    by 0x80EB5A4: Perl_sv_setpvn (sv.c:4373)
==18571==    by 0x80C8E54: Perl_magic_get (mg.c:844)
==18571==    by 0x80C779B: Perl_mg_get (mg.c:166)
==18571==    by 0x80E9D83: Perl_sv_setsv_flags (sv.c:3899)
==18571==    by 0x80F18F0: Perl_sv_mortalcopy (sv.c:7146)
==18571==    by 0x811C15C: Perl_pp_leaveeval (pp_ctl.c:3555)
==18571==    by 0x80BFD9C: Perl_runops_debug (dump.c:1597)
==18571==    by 0x8063877: S_run_body (perl.c:2290)
==18571==    by 0x80633D2: perl_run (perl.c:2217)
==18571==    by 0x805EC3D: main (perlmain.c:103)
==18571==  Address 0x1BAECB28 is 0 bytes inside a block of size 8 free'd
==18571==    at 0x1B904B04: free (vg_replace_malloc.c:152)
==18571==    by 0x80C0656: Perl_safesysfree (util.c:155)
==18571==    by 0x810F844: Perl_pp_substcont (pp_ctl.c:242)
==18571==    by 0x80BFD9C: Perl_runops_debug (dump.c:1597)
==18571==    by 0x8063877: S_run_body (perl.c:2290)
==18571==    by 0x80633D2: perl_run (perl.c:2217)
==18571==    by 0x805EC3D: main (perlmain.c:103)





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