Date: Thu, 10 Nov 2005 00:45:13 +0900 From: Alexander Nedotsukov <bland@FreeBSD.org> To: freebsd-threads@FreeBSD.org Subject: bogus pthread_cond_wait stub? Message-ID: <43721989.3030802@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43721989.3030802>