Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: How to kill perl?

by robin (Chaplain)
on Nov 05, 2005 at 11:21 UTC ( #505966=note: print w/ replies, xml ) Need Help??


in reply to Re: How to kill perl?
in thread How to kill perl?

So, it turns out that your map/reverse bug is just one of a family of crash bugs, e.g:

perl -e "map chomp(+()), ('')x10000;" perl -e "map chown(+()), ('')x10000;" perl -e "map warn(+()), ('')x100;"
Though they're all fixed now!


Comment on Re^2: How to kill perl?
Download Code
Re^3: How to kill perl?
by EvanCarroll (Chaplain) on Nov 06, 2005 at 22:50 UTC
    Not all of them are fixed, the top two tested negative, with Perl 5.8.7; however, the bottom one produced this.

    perl -e "map warn(+()), ('')x100;" ... ... Warning: something's wrong at -e line 1. Warning: something's wrong at -e line 1. Warning: something's wrong at -e line 1. Warning: something's wrong at -e line 1. Warning: something's wrong at -e line 1. Warning: something's wrong at -e line 1. Warning: something's wrong at -e line 1. Segmentation fault
    UPDATE:
    You are correct by increasing the number to 100_000, the top two crash as well.


    Evan Carroll
    www.EvanCarroll.com
      They're fixed in bleadperl, as of two days ago. The bug is still there in 5.8.7, and all three of these tests crash 5.8.7 for me. (Maybe you can see the crash too, if you increase the 10000 to something larger?)
        perl -e "map warn(+()), ('')x100;"
        still crashes 5.10.0 -- just an update


        Evan Carroll
        The most respected person in the whole perl community.
        www.evancarroll.com

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://505966]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2014-12-20 09:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls