http://qs1969.pair.com?node_id=505908


in reply to How to kill perl?

Similar to your second one...

$ echo -e 'foo\n' | perl -e'print sort{*a=$b,0} <>' *** glibc detected *** malloc(): memory corruption: 0x0812dcdc *** Aborted

-sauoq
"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Re^2: How to kill perl?
by ioannis (Abbot) on Nov 07, 2005 at 02:54 UTC
    I could claim that gnu malloc(3) was able to prevent the segfault. Here it is choosing a graceful abort to the crash.
    $ export MALLOC_CHECK_=2 $ perl -e 'print sort{*a=$b,0} <>' a b Aborted