From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,5747331edea7cbab X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,85404311f8041f7a X-Google-Attributes: gid102b75,public X-Google-ArrivalTime: 2001-07-15 20:23:38 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!130.133.1.3!fu-berlin.de!server1.netnews.ja.net!newsfeed.ed.ac.uk!holyrood.ed.ac.uk!pboyle From: Peter Boyle Newsgroups: comp.sys.dec,comp.arch Subject: Re: CPU failure in an SMP system (was Re: Compaq kills Alpha) Date: Mon, 16 Jul 2001 04:23:32 +0100 Organization: Edinburgh University Message-ID: References: <3b4c75ea$0$25358$6e365a64@newsreader02.highway.telekom.at> <9ik7r7$1s3$3@bob.news.rcn.net> <9ikjh9$11d2$1@news.rchland.ibm.com> <9ilud8$464$1@nnrp2.phx.gblx.net> <9im1od$4e1$1@nnrp2.phx.gblx.net> <9is0k7$t1c$4@bob.news.rcn.net> NNTP-Posting-Host: holyrood.ed.ac.uk Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: scotsman.ed.ac.uk 995253814 17069 129.215.16.14 (16 Jul 2001 03:23:34 GMT) X-Complaints-To: usenet@scotsman.ed.ac.uk NNTP-Posting-Date: 16 Jul 2001 03:23:34 GMT In-Reply-To: Xref: archiver1.google.com comp.sys.dec:5866 comp.arch:14037 On Sun, 15 Jul 2001, mulp wrote: Hi, I'm afraid I don't understand what your statement is precisely. > Have you ever looked at the stack after a system or program failed to see > what might have caused the failure? > > corruptstack() > {char foo[10]; > strcpy(foo,"this is evidence of a bug in the design or > implementation of this routine"); > } > > With a well designed debugger, little if any of the stack has been destroyed i) the debugger has no control over how the compiler chooses to use the stack. ii) The amount of corruption hardly matters to such a binary response as crash or not crash: all this needs to do is overwrite the return address for either the corruptstack routine or it's caller and you soon the code branches to the hex translation of "bug ". I don't see that there is any surprise that this causes a crash. Peter > Or are you talking about a different kind of stack? > > >