From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 114c38,c460a62c19b2c0ab X-Google-Attributes: gid114c38,public X-Google-Thread: 103376,c460a62c19b2c0ab X-Google-Attributes: gid103376,public From: dennison@telepath.com Subject: Re: SCSI disk problems - Don't know where to begin Date: 1998/10/22 Message-ID: <70npig$7om$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 403969543 References: <70lj95$s66$1@nnrp1.dejanews.com> X-Http-Proxy: 1.0 x14.dejanews.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu Oct 22 17:21:20 1998 GMT Newsgroups: comp.os.vxworks,comp.lang.ada X-Http-User-Agent: Mozilla/4.05 [en] (WinNT; I) Date: 1998-10-22T00:00:00+00:00 List-Id: 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