Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-lcc!lll-winken!uunet!munnari!otc!metro!physiol!shocking From: shocking@physiol.su.oz (Stephen Hocking) Newsgroups: comp.unix.wizards Subject: Re: C bug causes double fault (actually double panic) Summary: microport is strange Message-ID: <573@physiol.su.oz> Date: 29 Mar 89 07:31:51 GMT References: <244@tree.UUCP> <9884@smoke.BRL.MIL> <2044@viper.Lynx.MN.Org> Organization: Physiology Dept., Univ. of Sydney, NSW, Australia Lines: 35 In article <2044@viper.Lynx.MN.Org>, dave@viper.Lynx.MN.Org (David Messer) writes: < In article <9884@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) writes: < >In article <244@tree.UUCP> zarquon@tree.UUCP (Erin Filbert) writes: < < { Mention that this causes the system to crash deleted by Doug Gwyn } < < >>main() < >>{ < >> float x; < >> printf("x = %d", x); < >>} < > < >You'll undoubtedly get a flood of responses correctly pointing out < >that conversion of a double (promoted float) argument according to < >an int format is incorrect. Use %g or some such format specifier. < < And you will probably get a flood of responses correctly pointing out < that what you say is irrelevent. The original message mentioned that < he "crashed the entire system" by running this program (calling it < a "double fault" rather than "double panic"; which may have misled you). < It doesn't matter that the C program has a bug, it still shouldn't < crash the operating system. Ah, the joys of running under Uport 2.4. It is listed as a bug in the release notes, but does not seem to trouble my machine (NEC APC4 8MHz, 80287-8) at this joint, but it does kill my home one (6MHz, 80287-3). AAAAAAAAAGGGGGHHHHHH!!!!! Stephen ------ -------- Stephen Hocking ACSnet shocking@physiol.su.oz UUCP ...!uunet!munnari!physiol.su.oz!shocking