[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: :(){ :|:&};: in bash causes systemchrash

From: Klaus Frank
Subject: Re: :(){ :|:&};: in bash causes systemchrash
Date: 20 Oct 2000 10:39:57 GMT

"address@hidden" <address@hidden> writes:

>       When :(){ :|:&};: is typed in a bash shell, the whole system hags BIG

This isn't a system crash, it's intentional resource consumption.

Does the shell exhibit any errors in this situation? Is it exiting with
a "segmentation violation" message? Would you like to see a warning in
the documentation? Does a recursively constructed pipeline work without
errors if you limit the recursion depth and don't put it in the
background? (You might want to construct a pipeline of 16 cat processes.)


Would you like to see that a kernel detected this situation and
logged or prevented it? (There are similar situations that occur
accidentally.) If yes, how? Would it be acceptable to introduce delays
into the fork system call that depend exponentially on the number of
failed fork calls in the same session or process group?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]