I can't reproduce this problem. I tried with perl 5.8.8 and 5.10.0 with this script:

#!/usr/bin/perl use strict; use warnings; my $swiss = 'P07445'; warn "swiss='$swiss'\n"; my @rer; $rer[0] = $swiss =~ /^\p{IsAlpha}/;

Most likely some XS or Inline::C module (or an interpreter bug) corrupts your program's memory, and then it dies at an otherwise harmless operation.

Please try to reproduce the problem with a minimal but complete example (i.e. it crashes, but uses as little modules and code as possible) - I don't think the example you gave us crashes on your perl, unless it's executed in the context of another program.


In reply to Re: panic: Something requested a negative number of bytes of malloc by moritz
in thread panic: Something requested a negative number of bytes of malloc by Dave Howorth

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.