Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Force Perl Executable to Crash

by WAmaro (Acolyte)
on Dec 06, 2006 at 21:56 UTC ( [id://588209]=perlquestion: print w/replies, xml ) Need Help??

WAmaro has asked for the wisdom of the Perl Monks concerning the following question:

I need to do some special case error checking.

In Perl 5.8 I can use the following to cause the perl executable to crash perl -e"$x = 'x' x 1e11" (Thanks BrowserUK).

I need to force a crash of a 5.6 perl executable, however, the above command doesn't seem to do it.

Anyone have a command that will cause a 5.6 perl executable to crash? Not the script to fail, but the actual perl executable

Thanks in advance for your help

Replies are listed 'Best First'.
Re: Force Perl Executable to Crash
by BrowserUk (Patriarch) on Dec 06, 2006 at 22:09 UTC

    This should probably work for 5.6?

    perl -edump

    If not, take a look at How to kill perl?, something there should.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      Thanks for the pointer..
      perl -e dump
      didn't but
      perl -e "()= sort {*a=*b, 1} 2,3"
      did
        perl -e dump works for me in 5.6 - what kind of output are you looking for?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://588209]
Approved by chargrill
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-25 14:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found