pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: mplayer -ao nas fails: Unlocking unlocked mutex



> 'mplayer -ao nas' and libao-based applications like mpg321 and ogg123
> fail with the same error message on NetBSD-4.

>   mplayer: Error detected by libpthread: Unlocking unlocked mutex.
>   Detected by file "/srv/src/lib/libpthread/pthread_mutex.c", line 363, 
> function "pthread_mutex_unlock".
>   See pthread(3) for information.

The following patch solves the problem.

Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/audio/nas/distinfo,v
retrieving revision 1.23
diff -u -r1.23 distinfo
--- distinfo    31 May 2008 13:32:04 -0000      1.23
+++ distinfo    12 Oct 2008 18:43:46 -0000
@@ -10,3 +10,4 @@
 SHA1 (patch-ae) = f8ec2cb1809937aa7366ab65bee294e8affce543
 SHA1 (patch-af) = c08e0e2e6bfe6fd3aed7171dfd16a4df99a0b66a
 SHA1 (patch-ag) = 99a8c9af8385d0ce9c4c08f09b4ae41a2ba268ab
+SHA1 (patch-ah) = d28330ab1bfbc421fa9776bab9d6bfc2dbe1f975
Index: patches/patch-ah
===================================================================
RCS file: patches/patch-ah
diff -N patches/patch-ah
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-ah    12 Oct 2008 18:43:46 -0000
@@ -0,0 +1,14 @@
+$NetBSD$
+
+# fix for "libpthread: Unlocking unlocked mutex" seen on NetBSD-4
+
+--- lib/audio/OpenSvr.c.orig   2006-08-31 03:04:28.000000000 +0300
++++ lib/audio/OpenSvr.c
+@@ -327,7 +327,6 @@ server is %d.%d!\r\n",
+ /*
+  * and done mucking with the server
+  */
+-      _AuUnlockServer();              /* didn't exist, so didn't lock */
+       _AuUnlockMutex(_init_mutex);
+ 
+ /*


-- 
Best regards, Aleksey Cheusov.


Home | Main Index | Thread Index | Old Index