pthread_mutex_unlock.c:87: __pthread_mutex_unlock_usercnt: Assertion `type == PTHREAD_MUTEX_ERRORCHECK_NP' failed.

Bug #1541254 reported by Bastien Jacquet on 2016-02-03
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ike (Ubuntu)
Undecided
Unassigned

Bug Description

On Wily

Due to the following glibc bug :
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=810322

ike fails to start with the following error:
iked: pthread_mutex_unlock.c:87: __pthread_mutex_unlock_usercnt: Assertion `type == PTHREAD_MUTEX_ERRORCHECK_NP' failed.

The ike bug has been reported there:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=756316

I propose to apply the suggested patch :
diff -r -u ike-orig/source/libith/libith.cpp ike/source/libith/libith.cpp
--- ike-orig/source/libith/libith.cpp 2012-02-10 08:05:36.000000000 +0100
+++ ike/source/libith/libith.cpp 2016-01-08 11:42:32.000000000 +0100
@@ -94,7 +94,7 @@
 {
        memset( obj_name, 0, 20 );
        pthread_mutexattr_init( &attr );
- pthread_mutexattr_settype( &attr, PTHREAD_MUTEX_ERRORCHECK );
+ pthread_mutexattr_settype( &attr, PTHREAD_MUTEX_NORMAL );
        pthread_mutex_init( &mutex, &attr );
 }

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ike (Ubuntu):
status: New → Confirmed
Giraffe (dodger-forum) wrote :

My system is also affected by this bug...

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers