From owner-freebsd-questions Mon Nov 10 01:58:21 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA18435 for questions-outgoing; Mon, 10 Nov 1997 01:58:21 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from rvc1.informatik.ba-stuttgart.de (rvc1.informatik.ba-stuttgart.de [141.31.112.22]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id BAA18426 for ; Mon, 10 Nov 1997 01:58:12 -0800 (PST) (envelope-from helbig@Informatik.BA-Stuttgart.DE) Received: (from helbig@localhost) by rvc1.informatik.ba-stuttgart.de (8.8.7/8.8.5) id KAA07447; Mon, 10 Nov 1997 10:52:22 +0100 (MET) From: Wolfgang Helbig Message-Id: <199711100952.KAA07447@rvc1.informatik.ba-stuttgart.de> Subject: Re: Crashing FreeBSD In-Reply-To: from sporkl at "Nov 9, 97 08:46:56 pm" To: sporkl@dti.net Date: Mon, 10 Nov 1997 10:52:22 +0100 (MET) Cc: 026809r@dragon.acadiau.ca, freebsd-questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL30 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Well, there are other ways too. > > 1. Toggle power really fast > 2. write a "forkbomb": > #include > > main() { > > for(;;) {fork();} > } The forkbomb does not crash a FreeBSD system, at least if run by a user who is not the superuser. There is a per user limit of process (on my system around 60) and if reached, those 60 processes will just loop. They can be killed by the superuser. > > Well folks, it looks like anyone can crash a FreeBSD box. I am told that > > this is a bug in the pentium processor. Compile and run, it will crash the > > machine right away... > > > > Very simple: > > > > > > char x [5] = { 0xf0, 0x0f, 0xc7, 0xc8 }; > > > > main () { > > void (*f)() = x; > > f(); > > } This won't crash my FreeBSD box either, since I its powered by an old i486 :-) Everyone knows by now: Don't use Pentiums for mission critical systems. Intel choose to make them complex--way beyond what they can master. Wolfgang