From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31350 invoked by alias); 27 Mar 2007 07:41:54 -0000 Received: (qmail 31330 invoked by uid 22791); 27 Mar 2007 07:41:51 -0000 X-Spam-Check-By: sourceware.org Received: from mu-out-0910.google.com (HELO mu-out-0910.google.com) (209.85.134.185) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 27 Mar 2007 08:41:46 +0100 Received: by mu-out-0910.google.com with SMTP id w1so3034247mue for ; Tue, 27 Mar 2007 00:41:42 -0700 (PDT) Received: by 10.82.114.3 with SMTP id m3mr15626650buc.1174981301850; Tue, 27 Mar 2007 00:41:41 -0700 (PDT) Received: from ?10.1.1.4? ( [84.226.133.228]) by mx.google.com with ESMTP id g8sm23400859muf.2007.03.27.00.41.40; Tue, 27 Mar 2007 00:41:41 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit X-Image-Url: http://www.equalizergraphics.com/images/me-64.png From: Stefan Eilemann Subject: pthread_join problem Date: Tue, 27 Mar 2007 13:44:00 -0000 To: Pthreads-Win32 list X-Mailer: Apple Mail (2.752.3) X-IsSubscribed: yes Mailing-List: contact pthreads-win32-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sourceware.org X-SW-Source: 2007/txt/msg00020.txt.bz2 Hello, I am in the situation that a pthread_join does not return, even though the thread has called pthread_exit. I read the cleanup notes, but I think it does not apply here. I am using the C cleanup code. One thread calls pthread_exit, the other phtread_join. I've verified that the thread calling pthread_exit does the longjmp to the thread start code, which calls _endthreadex. The main thread calling pthread_join does hang in WaitForMultipleObjects. The problem only occurs when I am using some unrelated(?) external code (the Mellanox SDP Infiniband implementation), so it could be caused by that, or just be a race appearing with this code. There are other pthreads in my application, which terminate correctly with pthread_exit/pthread_join. Only one thread - the network receive thread ;)- does exhibit the problem. Do you have an idea what could be the cause of this problem? Anything else I could try to find the problem? Best Regards, Stefan. PS: I've tested the Win64 version, and it works like a charm. -- http://www.equalizergraphics.com http://www.linkedin.com/in/eilemann