From owner-freebsd-threads@FreeBSD.ORG Wed Nov 9 15:48:04 2005 Return-Path: X-Original-To: freebsd-threads@FreeBSD.org Delivered-To: freebsd-threads@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5359516A41F for ; Wed, 9 Nov 2005 15:48:04 +0000 (GMT) (envelope-from bland@FreeBSD.org) Received: from mvs5.plala.or.jp (c158133.vh.plala.or.jp [210.150.158.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FDF143D45 for ; Wed, 9 Nov 2005 15:48:03 +0000 (GMT) (envelope-from bland@FreeBSD.org) Received: from hub.bbnest.net ([220.220.221.240]) by mvs5.plala.or.jp with ESMTP id <20051109154801.DSFI3620.mvs5.plala.or.jp@hub.bbnest.net> for ; Thu, 10 Nov 2005 00:48:01 +0900 Received: from [10.0.0.2] (nest.bbnest.net [10.0.0.2]) by hub.bbnest.net (8.13.4/8.13.4) with ESMTP id jA9Fm1NO004634 for ; Thu, 10 Nov 2005 00:48:01 +0900 (JST) (envelope-from bland@FreeBSD.org) Message-ID: <43721989.3030802@FreeBSD.org> Date: Thu, 10 Nov 2005 00:45:13 +0900 From: Alexander Nedotsukov User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20050930 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-threads@FreeBSD.org Content-Type: multipart/mixed; boundary="------------020901020205070102060602" Cc: Subject: bogus pthread_cond_wait stub? X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2005 15:48:04 -0000 This is a multi-part message in MIME format. --------------020901020205070102060602 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Guys, Doesn't patch attached look reasonable for you? From my deletant point of view :-) this seems to be the culprit of mysterious crashes in multithreaded plugins loaded by singlethreaded program. Thanks, Alexander. --------------020901020205070102060602 Content-Type: text/x-patch; name="_pthread_stubs.c.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="_pthread_stubs.c.patch" Index: _pthread_stubs.c =================================================================== RCS file: /home/ncvs/src/lib/libc/gen/_pthread_stubs.c,v retrieving revision 1.11 diff -u -r1.11 _pthread_stubs.c --- _pthread_stubs.c 29 Jul 2004 18:07:08 -0000 1.11 +++ _pthread_stubs.c 9 Nov 2005 15:31:17 -0000 @@ -176,7 +176,7 @@ STUB_FUNC1(pthread_cond_destroy, PJT_COND_DESTROY, int, void *) STUB_FUNC2(pthread_cond_init, PJT_COND_INIT, int, void *, void *) STUB_FUNC1(pthread_cond_signal, PJT_COND_SIGNAL, int, void *) -STUB_FUNC1(pthread_cond_wait, PJT_COND_WAIT, int, void *) +STUB_FUNC2(pthread_cond_wait, PJT_COND_WAIT, int, void *, void *) STUB_FUNC1(pthread_getspecific, PJT_GETSPECIFIC, void *, pthread_key_t) STUB_FUNC2(pthread_key_create, PJT_KEY_CREATE, int, void *, void *) STUB_FUNC1(pthread_key_delete, PJT_KEY_DELETE, int, pthread_key_t) --------------020901020205070102060602--