Dear monks,

I am trying to troubleshoot a seg fault in a Perl script. It happens when I attempt to save a HoH to disk using Storable::store. Using DB, I can step right up to the store statement. At that point I can access elements of the HoH without any problem. Only when I attempt to execute the store step does the fault occur. The HoH is largish but not gigantic (1.5MB according to Devel::Size::total_size).

The fault occurs with version 5.8.4 of Perl together with either version 2.12 or 2.13 of Storable; it does not occurr with version 5.6.1 of Perl and version 2.05 of Storable. This indicates that the problem is either with perl or with Storable, and not with my program, but I don't know where to go from here. The program where this error occurs is large, so it would not be a good thing to submit as part of a bug report.

Any ideas you may have on where to go from this would be most welcome.

the lowliest monk

P.S. FWIW:

% uname -ar Linux luna 2.4.18-686-smp #1 SMP Sun Apr 14 12:07:19 EST 2002 i686 unk +nown


In reply to Troubleshooting a seg fault by tlm

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.