Hi Robert:
On Thu, 13 Jan 2005 17:56:21 -0600, Robert Citek
<[EMAIL PROTECTED]> wrote:
>
> Hello all,
>
> I was able to successfully kill my Mac last night with the following
> script:
>
> perl -le '
> @foo=qw(hello) ;
> for (my $i ; $i<100 ; $i++) {
> push(@foo, @foo) || die "$i -- no more\n" ;
> print "$i" ;
> } ;
> print "size is $#foo" ;
> '
>
> By killed I mean that without warning the Mac just turned off. When I
> powered on, it took a long time (probably doing an fsck) and then the
> time was set to January 1970. So, this was the hardest crash I have
> ever seen on a Unix box.
>
> So I figured this script would be a good test for ulimit (bash, ksh ;
> limit in tcsh, csh). But no matter what setting I used for the various
> ulimit options, the script kept running, sucking up more and more RAM,
> until I manually stopped it with a Ctrl-C.
>
> I'm curious to know if the above script kills anyone else's machines
> and if setting ulimit/limit options prevents it?
On FreeBSD 5.3 the above script did nothing. It ran for about 10
seconds during which my Xfce desktop responded slowly. The Xfce task
bar would not raise, while the script was running. Then this warning
was issued in the X term:
Out of memory during request for 1012 bytes, total sbrk() is 535257088 bytes!
Afterwards, the desktop resumed normal operation and the computer
operated normally. Top showed that 49 MB of swap had been used.
On OpenBSD 3.6 the script ran for about 4 seconds (if that) and gave
the warning:
Out of Memory!
There was no change in desktop performance during the fork bomb run.
I will ask what prevents this fork bomb script from taking the two
*BSD's down. Robert, can I forward your e-mail to the Front Range BSD
User Group list and ask there ?
Jon
_______________________________________________
CWE-LUG mailing list
http://www.cwelug.org/
[email protected]
http://lists.firepipe.net/listinfo/cwe-lug