Has anyone encountered or have any pointers to discussion of attempts to use DProf causing Perl to trap?

The code compiles clean under -w and strict. Runs clean both on its own and under debug (-d), but when I try to profile it, perl traps with

Access violation (0xc0000005) at address 0x280742a4.

Stranger still, if I insert a print statement on a previously blank line, I can profile.

If I then comment that line out, I can still profile.

If I remove the print statement but leave the comment, the trap returns.

The commented out print statement will only prevent the trap if it has an argument, and that argument cannot be $/ or $., but can be "" or $^X.

Am I going completely mad? This is repeatable. Any suggestions of how I work out why this occurs?

Is there any way to invoke the profiler but also enter debug mode?


Examine what is said, not who speaks.


In reply to DProf problem by BrowserUk

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.