AllBackJack has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win10: Getting popup "Perl Interpreter has stopped working"
by kcott (Archbishop) on Jan 31, 2017 at 05:49 UTC | |
|
Re: Win10: Getting popup "Perl Interpreter has stopped working"
by FreeBeerReekingMonk (Deacon) on Jan 31, 2017 at 19:07 UTC | |
by AllBackJack (Initiate) on Feb 04, 2017 at 16:22 UTC | |
by FreeBeerReekingMonk (Deacon) on Feb 07, 2017 at 22:24 UTC |