From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,4a212ac2372bd10e X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,4a212ac2372bd10e X-Google-Attributes: gid1164f8,public From: Tony Griffiths Subject: Re: 21164PC demonstration/talk at Microprocessor Forum Date: 1996/11/09 Message-ID: <3283D700.47EB@OntheNet.com.au>#1/1 X-Deja-AN: 195387406 references: <54r02t$fjc@usenet.pa.dec.com> <557hl1$srt@usenet.pa.dec.com> <327FEF6E.783A@OntheNet.com.au> content-type: text/plain; charset=us-ascii organization: On the Net (ISP on the Gold Coast, Australia) mime-version: 1.0 reply-to: tonyg@OntheNet.com.au newsgroups: comp.arch,comp.sys.dec x-mailer: Mozilla 3.0 (WinNT; I) Zalman Stern wrote: > > Tony Griffiths (tonyg@OntheNet.com.au) wrote: > [Stuff about FX!32 and "whose bug is it?"] > > I believe FX!32 is intended to provide perfect emulation of the x86 > execution environment. A such, if a program behaves a certain way on Intel > x86 implementations and doesn't behave that way on FX!32, then it is an > FX!32 bug. (As Jerry Leichter said, its just like an x86 clone vendor, only > in software rather than silicon.) > Ah but FX!32 is _NOT_ an x86 emulator, it's a binary (JIT?) translator. Now consider the following TRUE example of a "latent" bug- Proc A calls Proc B with certain args. B executes and returns. Proc A then calls Proc C with SAME args _AND_ the local variables in C are declared in the same order as B with a pointer to a structure being the first local var. Proc B properly computes this pointer from the input args, but proc C doesn't. However, proc C executes 'correctly' on Digital Unix for many years because the stack location that the pointer variable is allocated to just happens to have the pointer to the correct structure in it, put there by Proc B. Now the code is ported to VMS on Alpha. The VMS C compiler is more agressive in stack usage (slightly different compile time switches and defaults are used) and now the memory location is different or possibly re-used by another variable in a different scope. The "working" code falls in a heap and the system with it given that this is networking code running in kernel mode! This is the sort of problem I am referring to. A true x86 emulator might allow code like this to continue operating but an on-the-fly port which is what FX!32 does cannot guarantee that buggy code will continue to operate. Whose fault is it in this situation? FX!32 for not providing the identical operating environment or the ISV's code which has the latent bug? How many other "mission critical" apps are out there with code paths that have not been properly debugged and tested, just waiting for their day in the limelight (or CNN news as the case may be ;-) ). I would suggest quite a few. Tony