From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21149 invoked by alias); 18 Nov 2004 01:59:20 -0000 Mailing-List: contact pthreads-win32-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sources.redhat.com Received: (qmail 21126 invoked from network); 18 Nov 2004 01:59:15 -0000 Received: from unknown (HELO web12603.mail.yahoo.com) (216.136.173.226) by sourceware.org with SMTP; 18 Nov 2004 01:59:15 -0000 Received: (qmail 116 invoked by uid 60001); 18 Nov 2004 01:59:15 -0000 Message-ID: <20041118015914.114.qmail@web12603.mail.yahoo.com> Received: from [66.77.10.109] by web12603.mail.yahoo.com via HTTP; Wed, 17 Nov 2004 17:59:14 PST X-RocketYMMF: boozai Date: Thu, 18 Nov 2004 01:59:00 -0000 From: "nicolas@saintmac.com" Reply-To: nicolas@saintmac.com Subject: pb with semaphores in 2004-11-03 snapshot To: pthreads-win32@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004/txt/msg00149.txt.bz2 Hi list I have a problem with this snapshot, where as the previous ones were working fine. Threads seem to lock up randomly waiting for something to happen, but never happens. I tried to recompile the library using VS C++ .net in debug mode (no optimization at all), but the same problem occurs (except I can give details on where it's hanging). Every time I break in my frozen app, I am in a situation similar to this: * thread A, stuck in a pthread_cond_timedwait * thread B,C, etc stuck on pthread_mutex_lock for the mutex used in the condition in A. The mutex is indeed still taken by A, because A is stuck on this line: in ptw32_cond_timedwait /* Thread can be cancelled in sem_wait() but this is OK */ if (sem_wait (&(cv->semBlockLock)) != 0) and then it's stuck on result = pthreadCancelableWait (s->sem); in sem_wait I can not find who kept the semaphore (the owner field of the semaphore is 0). Does anyone experienced such problem? Thanks Nicolas ===== ------------------------------------------------------------ video meliora proboque deteriora sequor ------------------------------------------------------------