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-17 16:39:23 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!netnews.com!xfer02.netnews.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail From: "mulp" Newsgroups: comp.sys.dec,comp.arch 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> Subject: Re: CPU failure in an SMP system (was Re: Compaq kills Alpha) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: Date: Tue, 17 Jul 2001 23:39:15 GMT NNTP-Posting-Host: 4.54.155.223 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 995413155 4.54.155.223 (Tue, 17 Jul 2001 16:39:15 PDT) NNTP-Posting-Date: Tue, 17 Jul 2001 16:39:15 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net X-Received-Date: Tue, 17 Jul 2001 16:36:54 PDT (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.sys.dec:5947 comp.arch:14175 Ok, I thought it would be obvious what the point is, but let's put it this way. Your job is to debug some 10 million lines of code that you were hired to port; buried in the code is a coding or logic error that unfortunately has the effect of the of the routing corrupt_stack, but unfortunately for you, the original developers of the code were not courteous enough to name their malfunctioning routine corrupt_stack. You can argue that the code shouldn't have that error. You can argue that the compiler should or should not detect the problem. You can argue whatever you want, except that doesn't get you closer to solving that problem, tonight, before the code ships. The good news is that you have a test tool that will reproduce the problem in 1-6 hours. You could try single stepping or tracing it. You could try code inspection. Our you could look at the part of the stack below the stack pointer for some hint as to what was going on.... "Peter Boyle" wrote in message news:Pine.SOL.4.33.0107160402580.3839-100000@holyrood.ed.ac.uk... > > 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? > > > > > > > > > > > > >