Hello All,
I am having a problem with my script causing the interpreter to crash (as in causing a windows error message box) when it exits. This is after all of my code is executed, so apparently it is during the garbage collection or some other cleanup.
I am using some regexes that refer to each other recursively with the experimental
(??{}) construct within
qr// strings, so my first thought was that this might be causing a circular reference problem of some sort for garbage collection. However, it makes no difference if I
undef all of these myself.
Unfortunately, my script is quite long, so I'm not certain where to look. The error started appearing when I added a large segment of code that includes the aforementioned regexes, as well as several recursive functions.
Does anyone have any general insight on what sort of thing would cause a crash like this? Is there a possibility that there is some sort of case with recursion that could cause garbage collection problems? Are the experimental regex features just living up to their name?
Update: Running in the debugger does not shed any light on the situation. In fact, the crash still happens, but when I exit the debugger.
Thanks in advance,
ColonelPanic
When's the last time you used duct tape on a duct? --Larry Wall
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.