Many Params-Validate versions before 1.20 have a bug in the XS code that could cause the corruption described. (Versions before 0.50 did not have an XS implementation and so would not suffer from this problem.)

If you are using an older version, you can check if you are suffering from this bug by persuading your program to use the pure perl implementation. (Read the source of Params/Validate.pm on your system to find out how to do this.) If the problem goes away under the pure perl implementation, then you probably are suffering from the bug in the XS implementation.

The bug was addressed in versions 1.20 and 1.23.

1.23    2016-03-26
 
- Fixed some Perl stack corruption bugs. Based on a proposed PR from Tony Cook
  plus some additional changes. GH #8.
 
- Fixed tests with Carp 1.01 (shipped with Perl 5.8.3). Patch by Andreas
  Koenig. RT #113318.
1.20    2015-06-28
 
- Fixed a bug with stack handling in the XS code. If a callback sub caused
  Perl to reallocate the stack this could trigger weird errors of the form
  "Bizarre copy of ARRAY" from Perl itself. Fixed by Noel Maddy. GH #5.

See also https://rt.cpan.org/Public/Bug/Display.html?id=86811


In reply to Re: Tracking down a segfault by zgpmax
in thread Tracking down a segfault by davee123

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.