From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26354 invoked by alias); 7 Dec 2009 11:27:17 -0000 Received: (qmail 26346 invoked by uid 22791); 7 Dec 2009 11:27:16 -0000 X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_50,SPF_PASS X-Spam-Check-By: sourceware.org Received: from aldebaran.he1ix.org (HELO aldebaran.he1ix.org) (188.40.40.241) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 07 Dec 2009 11:27:08 +0000 Received: from [62.12.134.36] (helo=drpepper.local) by aldebaran.he1ix.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1NHbkg-0001kY-7p for pthreads-win32@sourceware.org; Mon, 07 Dec 2009 12:27:44 +0100 Message-ID: <4B1CE678.7020306@emmenlauer.de> Date: Mon, 07 Dec 2009 11:27:00 -0000 From: Mario Emmenlauer User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: pthreads-win32@sourceware.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 62.12.134.36 X-SA-Exim-Mail-From: mario@emmenlauer.de Subject: crash with pthreads after dlclose() X-SA-Exim-Version: 4.2.1 (built Thu, 26 Jun 2008 09:24:34 +0000) X-SA-Exim-Scanned: Yes (on aldebaran.he1ix.org) 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: 2009/txt/msg00058.txt.bz2 Hi, thank you for the pthreads-win32 project, its doing a great job for us! Currently we have an issue with a program crash on exit, which seems to be related to pthreads. We are using FreeLibrary to close a library, that uses pthreads internally. Since we do not call pthreads directly, I don't know if I have to unregister/close/free anything before calling FreeLibrary()? The application crashes not at FreeLibrary(), but instead when it exists normally. Here is the top of the callstack, in case that helps: pthreadVC2.dll!_ptw32_callUserDestroyRoutines() + 0xd8 bytes C pthreadVC2.dll!_pthread_win32_thread_detach_np() + 0x2c bytes C Thanks, and all the best, Mario -- Dipl. Inf. Mario Emmenlauer Office: +41-(0)44-430-1106 Bitplane AG Fax: +41-(0)44-430-1101 Badenerstrasse 682 mailto: mario * emmenlauer.de CH-8048 Zurich http://www.marssoft.de / http://www.xuvtools.org