in reply to perl crashes parsing huge script - how to find a line that crashes it?

Firstly, I can't believe it's 6MB.

Anyway, you've run it with "perl -d" right? Did that show anything?

Next thing I'd try is running perl within the Visual Studio debugger. You can download the "Express" edition from MS free. That will at least show you the subroutine / symbol where it's dying.

But to be honest, when I've had this kind of problem before it's been pretty inscrutable, e.g. a problem with one Perl XS module causing crash errors elsewhere.

GL, Peter
http://perl.dragonstaff.co.uk

  • Comment on Re: perl crashes parsing huge script - how to find a line that crashes it?

Replies are listed 'Best First'.
Re^2: perl crashes parsing huge script - how to find a line that crashes it?
by girarde (Hermit) on Feb 21, 2008 at 15:27 UTC
    Firstly, I can't believe it's 6MB.

    I can't either. My biggest single script is less than 20k, and my average is less than 3.