Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: aarons@syma.sussex.ac.uk (Aaron Sloman)
Subject: Re: Problems with Ultrix on DECStation (corrupted text segment)
Date: 13 Apr 90 00:31:03 GMT	[thread overview]
Message-ID: <2479@syma.sussex.ac.uk> (raw)
In-Reply-To: 5093@crltrx.crl.dec.com

Previously I reported that in certain situations Ultrix allows the
text segment to be corrupted on a DECstation

jg@max.crl.dec.com (Jim Gettys) wrote in response:

> Date: 12 Apr 90 17:22:14 GMT
> Reply-To: jg@max.crl.dec.com (Jim Gettys)
> Organization: DEC Cambridge Research Lab

> Are you sure that this is what is going on?
>
> Remember the machine has seperate I and D caches.
>
> If you are doing run-time loading of code into your address
> space that you will be executing, you must flush the
> I-cache.  Failure to do so will cause random behavior as
> you are reporting. (i.e. executing whatever code happened to
> be left around in the Icache in those locations).
>
> I've seen N lisp/scheme implementors trip over this one, most
> recently within the last week....  So this sounds dreadfully
> familiar...
> 				- Jim

We did at first have trouble with the data cache, e.g. because a
user procedure that was being executed could be relocated as a
result of garbage collection that it triggered. However, this
problem was overcome by flushing the cache after each garbage
collection (although it took some effort to discover the correct
system call: the manual was wrong)!

This, however, is not the source of our current problem. We can
explicitly give a command to corrupt the text segment, then prove
that it has been corrupted by using "cmp" to compare it with a saved
copy. Ultrix should prevent the corruption and force an error.

I am surprised that nobody else has met this problem.

Aaron Sloman


  reply	other threads:[~1990-04-13  0:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1990-04-11 22:08 Problems with Ultrix on DECStation Aaron Sloman
1990-04-12 17:22 ` Jim Gettys
1990-04-13  0:31   ` Aaron Sloman [this message]
1990-04-13 14:50     ` Problems with Ultrix on DECStation (corrupted text segment) Jim Gettys
1990-04-13 22:13       ` Jim Gettys
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox