comp.lang.ada
 help / color / mirror / Atom feed
From: dennison@telepath.com
Subject: Re: SCSI disk problems - Don't know where to begin
Date: 1998/10/22
Date: 1998-10-22T00:00:00+00:00	[thread overview]
Message-ID: <70npig$7om$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 70lj95$s66$1@nnrp1.dejanews.com

In article <70lj95$s66$1@nnrp1.dejanews.com>,
  krichey@nswc.navy.mil wrote:
> I am writing some data extraction code in Ada (Greenhills) in a VxWorks,
> PowerPC, VME card cage system, with a SCSI disk.  VME-167 cards
> Also there are some C tasks.
>
> At some point (it varies, and doesn't happen every time) the best we can tell

That generally is the hallmark of a race condition. You may want to go back
over the code to make sure *any* object accessed by more than one task
(except via a rendezvous) either has a "pragma atomic", or is placed in a
protected type.

> One guess is something is 'jumping its bounds' and messing up memory where the
> device driver resides- but what?  Any ideas?

If you suspect that, try to catch it happening. If you are using AdaMulti,
check out the section on "Watchpoints" in the debugger command list in your
AdaMulti reference manual. You should be able to set the debugger up to stop
any task that tries to modify a designated area of memory. In my AdaMulti for
Windows Reference Manual (v 1.8.8), the relevant discussion is on page 252.

Race conditions happen to the best of us. But if a rougue task is really
trashing other's code space, that's a different matter entirely. Whoever wrote
that code is in dire need of a "swirlee". >:-)

--
T.E.D.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




  reply	other threads:[~1998-10-22  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-21  0:00 SCSI disk problems - Don't know where to begin krichey
1998-10-22  0:00 ` dennison [this message]
1998-10-23  0:00 ` jhassett
1998-10-28  0:00   ` John Chann
replies disabled

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