__uclibc_mutex_unlock

Joakim Tjernlund joakim.tjernlund at transmode.se
Tue Jan 9 08:57:39 UTC 2007


> -----Original Message-----
> From: Atsushi Nemoto [mailto:anemo at mba.ocn.ne.jp] 
> Sent: 09 January 2007 07:26
> To: Joakim Tjernlund
> Cc: uclibc at uclibc.org
> Subject: Re: __uclibc_mutex_unlock
> 
> On Sat, 6 Jan 2007 03:10:13 +0100, "Joakim Tjernlund" 
> <joakim.tjernlund at transmode.se> wrote:
> > Took a crack at fixing this but I am too tiered(and lazy)
> > to test it.
> > 
> > Anyone feel like testing(with/without thread support and dynamic
> > vs. static)? Or perhaps just comment?
> 
> I had similar SEGV problem with statically linked program on mips and
> mips64, and your patch fixed both.  Thanks!

Good, mind trying with only this part applied?

Index: libc/sysdeps/linux/common/bits/uClibc_mutex.h
===================================================================
--- libc/sysdeps/linux/common/bits/uClibc_mutex.h	(revision 17166)
+++ libc/sysdeps/linux/common/bits/uClibc_mutex.h	(working copy)
@@ -36,7 +36,7 @@
 		struct _pthread_cleanup_buffer
__infunc_pthread_cleanup_buffer;				\
 		if (C) {
\
 
_pthread_cleanup_push_defer(&__infunc_pthread_cleanup_buffer,
\
-
__uclibc_mutex_unlock,	\
+						    (void (*) (void
*))__pthread_mutex_unlock,		\
 
&(M));			\
 			__pthread_mutex_lock(&(M));
\
 		}							



More information about the uClibc mailing list