One way that might shed some light on the source of the problem would be to profile it using Devel::DProf.

If you set the size of the output buffer (PERL_DPROF_BUFFER) to some thing fairly small, say 4K, then that ought to get you fairly close to where the failure occurs.

If, after failure eventually happens (your program will run very slowly), then examining (the quite probably huge output file (TMON.OUT by default) it should not only tell you where it was and what (roughly) it was doing when the failure occurred, but also the sequence of events that led up to it.

I've used this technique to get me much closer to the source of the failure, and give me hints on where to put tracing and/ or set break points. No guarentees that it won't change the point of failure to a completely different place, but even that can be a clue as to the cause.

HTH.

Ps. I am not kidding when I say your program will run slowly! Don;t sit and wait for it to fail. Start it running once you have you coat on and are leaving for the day (or going to bed or whatever). The output will be waiting for you in the morning:). Sitting and watching and waiting will drive you nuts.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
If I understand your problem, I can solve it! Of course, the same can be said for you.


In reply to Re: segmentation violations by BrowserUk
in thread segmentation violations by Phomer

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.