Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

"double free or corruption" in Perl 5.16.0 but not in 5.14.2

by mje (Curate)
on Sep 20, 2012 at 15:18 UTC ( #994686=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    use strict;
    use warnings;
    my @b = glob(qq{$path/mp_[0123456789]*.dat
    print scalar(@b), "\n";
  2. or download this
    *** glibc detected *** perl: double free or corruption (!prev): 0x09ca
    +5390 ***
    ======= Backtrace: =========
    b77ea000-b77eb000 rw-p 0001e000 08:01 12755028   /lib/i386-linux-gnu/l
    bf9cf000-bf9f0000 rw-p 00000000 00:00 0          [stack]
  3. or download this
    ==26288== Invalid write of size 4
    ==26288==    at 0x4029C3E: memcpy (mc_replace_strmem.c:635)
    ==26288==    by 0x807B9DA: perl_parse (in

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://994686]
Approved by marto
Front-paged by Corion
[Tux]: C99 is not supported on HP-UX before 11.31
[Tux]: at least not reliable. And perl itself requires C89 (but probes if it can safely use some C99 features)
Eily takes a peek in the last hour of CB to discover that LanX woke up is boobs with some Queen :P
[Eily]: s/\K\bis\b/h/
[Tux]: you left the space in
[Tux]: and that \K is not required

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (11)
As of 2017-09-20 16:33 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (237 votes). Check out past polls.