Script just stops working with a popup. I'm trying to figure this out. Using Strawberry perl. Win10 log file. I'm hoping this may tell someone what I'm doing wrong or the problem is or simply how to get around it. The Exception is a bad pointer reference in the dll.

Faulting application name: perl.exe, version: 5.24.0.1, time stamp: 0x +57323a0d Faulting module name: perl524.dll, version: 0.0.0.0, time stamp: 0x573 +239d2 Exception code: 0xc0000005 Fault offset: 0x000000000007a3ee Faulting process id: 0x3d18 Faulting application start time: 0x01d27b7a00d0b9b8 Faulting application path: C:\StrawberryPerl\perl\bin\perl.exe Faulting module path: C:\StrawberryPerl\perl\bin\perl524.dll Report Id: 8e19886c-5bf8-4d4f-aef1-84a7b8e365aa Faulting package full name: Faulting package-relative application ID:

I use OptiPerl for editing and debugging, and script fails whether I run it on a command line or with OptiPerl. Always about the same spot. And if I'm being kind of obscure it's because the problem is obscure.

When debugging, I can simple step. Although it's a simple recursive program portion of a huge script, when I single step in it doesn't fail right away, but there is a pause of 5 to 10 seconds. No threads running or anything.

Basically the spot is (with more and more debugging code added):

if ( ( $g = $Grouping[$i][GEXTGRP] ) != $l ) { print "Calling BreakUpGroupingByGroup.\n"; return BreakUpGroupingByGroup( __LINE__, $match ); }

$match is a simple variable (0 or 1).

BreakUpGroupingByGroup is executed many times. But when it fails, first statement (debug print) in the sub isn't getting executed. Succeeds many times before.

sub BreakUpGroupingByGroup { my ( $lineno, $match ) = (@_); print "In BreakUpGroupingByGroup( $lineno, \$match=$match).\n"; .......

Fails repeatedly in exact same instance.


In reply to Win10: Getting popup "Perl Interpreter has stopped working" by AllBackJack

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.