Fellow monks - please help me for I am nearly at my wits end

In our web-database system we sometimes get the error "Bizarre copy of ARRAY in aassign at /usr/local/lib/perl5/5.6.0/Carp/Heavy.pm line 79."
The line in question is just: @a = @DB::args; # must get local copy of args.
perldoc perldiag says that this error is "An internal error you should never see (trappable)."
The programmes that emit the error are servers, that communicate with the databases through DBI and with the web-servers by COPE (a pure perl CORBA implementation). This gives us layers and layers of evals, so trapping the error by surrounding the whole thing in an eval (as recomended in perldiag) is not possible (or at least not easy).
I can see from our logs (and my attempts to pinpoint the error), that the code that causes the error is in fact our errorhandler, that calls Carp:Cluck to print a stack-trace in order to help us pinpoint errors.

The "Bizarre copy" only occcurs sometimes, normally the error message and Clucks' stack-trace is output in the log, and everything continues merrily. But soemtimes (and I just cant discover why) Cluck fails.

So my situation is that the error reporting errors out, and pulls down the server, disturbing my peace. All due to an internal perl error, that I should never see!

Anybody got any good ideas as to what I can try next? Tearing out my hair is no longer an option, and I am out of white chicken.


In reply to Why do I get the error by htoug

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.