pa_assert_se should not be used with system calls
Submitted by Christopher Yeleighton
Assigned to pul..@..op.org
Link to original bug (#106581)
Description
I got the following abortion from libpulse0:
Assertion 'pthread_mutex_unlock(&m->mutex) == 0' failed at pulsecore/mutex-posix.c:108, function pa_mutex_unlock(). Aborting.
pthread_mutex_unlock is a system call. System calls can fail for various reasons and it should never be asserted that they succeed. Libraries should not abort their client.
Please handle the error somehow.