From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,b93f0750ad45bdb5,start X-Google-Attributes: gidfa528,public X-Google-Thread: ffc1e,b93f0750ad45bdb5,start X-Google-Attributes: gidffc1e,public X-Google-ArrivalTime: 2001-10-24 18:37:57 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-xfer.siscom.net!intgwlon.nntp.telstra.net!nsw.nnrp.telstra.net!not-for-mail Message-ID: <3BD76D47.4235EF92@ot.com.au> From: Raj Calisa Organization: Open Telecommunications Ltd X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.programming.threads,comp.unix.tru64 Subject: Mutex corruption when using DECthreads Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cache-Post-Path: emissary!unknown@10.70.82.254 X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/) Date: Thu, 25 Oct 2001 11:39:19 +1000 NNTP-Posting-Host: 203.42.249.64 X-Complaints-To: abuse@telstra.net X-Trace: nsw.nnrp.telstra.net 1003973874 203.42.249.64 (Thu, 25 Oct 2001 11:37:54 EST) NNTP-Posting-Date: Thu, 25 Oct 2001 11:37:54 EST Xref: archiver1.google.com comp.programming.threads:6621 comp.unix.tru64:5519 Hi all, We are using the following: Tru64 Unix 4.0F (patch kit 5), Compaq C++ 6.2-T009. We are currently faced with a wierd pthread_mutex_lock() failure in our application. Unfortunately, we do not know the return code. We only know that it is not "0". This is because the actual mutex lies hidden under two sets of C++ wrappers and the error code is neither propogated nor logged anywhere. We are almost convinced that this could be due to memory corruption and we are trying to use a tool called "Third degree" to find out if there is really any corruption. We are running the instrumented executable under ladebug and put a watch on the mutex in question. In the course of execution we get the following error: %DECthreads bugcheck (version V3.16-023), terminating execution. % Reason: selected a non-ready thread 28 (0x140dab880) state sorting % Running on OSF1 V4.0 on AlphaServer 1000A 5/500, 512Mb; 1 CPUs If we do not put a watch on the mutex, it fails on the mutex_lock call. Occasionally, we have seen another message as given below when we run the instrumented program on another machine: %DECthreads bugcheck (version V3.16-023), terminating execution. % Reason: schPriority: unrecognized class 0 % Running on OSF1 V4.0 on AlphaServer 1200 5/533 4MB, 1024Mb; 1 CPUs I wanted to know what the above errors mean and could they be related to the mutex corruption that we see. The mutex that we are using is a "normal" mutex not a errorcheck or recursive one. Is there a way of determining if the mutex is still valid by looking at the "lock" field? Thanks rajanish...