Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 302003

Summary: skype aborts because emul-linux-x86-soundlibs installs pulseaudio 32bit libs regardless of wether pulseaudio is installed
Product: Gentoo Linux Reporter: Marcel Partap <mpartap>
Component: New packagesAssignee: AMD64 Project <amd64>
Status: RESOLVED FIXED    
Severity: critical CC: axiator, net-im
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 165270, 301928    

Description Marcel Partap 2010-01-24 03:57:20 UTC
well skype seems to try and load pulseaudio 32 bit libs, which are contained in the emul libs pkg. but i do not have any other bits of pulseaudio -> mysterious assertion in pa_mutex_unlock().

Reproducible: Always

Steps to Reproduce:
after upgrading the emul-packages, skype would always abort with
Assertion 'pthread_mutex_unlock(&m->mutex) == 0' failed at pulsecore/mutex-posix.c:108, function pa_mutex_unlock(). Aborting.

Actual Results:  
assertion

Expected Results:  
no assertion in pulseaudio compability libs because of missing native lib?

i was clueless how to fix it but http://share.skype.com/sites/linux/2009/09/some_explanations.html#comment-150551 gave the most helpful hint to just
sudo chmod o-r /usr/lib32/libpulsecommon-0.9.19.so /usr/lib32/libpulse.so.0.12.0 /usr/lib32/libpulse-simple.so.0.0.3
which fixes the problem, but in a stupid way.
Comment 1 Marcel Partap 2010-01-24 04:01:03 UTC
wow WTF? bugzilla is asking all these questions and ommitting them when displaying the bug report? gross misconfiguration, anyone?
just in case they'd else be lost:

skype seems to try and load pulseaudio 32 bit libs, which are contained in the emul libs pkg. but i do not have any other bits of pulseaudio -> mysterious assertion in pa_mutex_unlock():
Assertion 'pthread_mutex_unlock(&m->mutex) == 0' failed at pulsecore/mutex-posix.c:108, function pa_mutex_unlock(). Aborting.

i was clueless what to do about it but http://share.skype.com/sites/linux/2009/09/some_explanations.html#comment-150551 gave the most helpful hint to just
sudo chmod o-r /usr/lib32/libpulsecommon-0.9.19.so /usr/lib32/libpulse.so.0.12.0 /usr/lib32/libpulse-simple.so.0.0.3
which fixes the problem, but in a stupid way.
Comment 2 Marcel Partap 2010-01-24 04:03:13 UTC
omg lols bbq
khtml has a problem ATM cutting of the page after the submit button, go figure. sorry about repetitititiveness x)
Comment 3 Pacho Ramos gentoo-dev 2010-01-24 10:13:54 UTC
What skype version do you have installed? I will probably add a USE flag for installing pulse libs or not, rdepending on pulseaudio when installed

(seems that skype autodetection should be improved a bit or, at least, it should fallback to alsa if pulse fails, but it looks more like an upstream problem)
Comment 4 Marcel Partap 2010-01-24 17:53:23 UTC
both 2.1.0.47 and 2.1.0.81 have the problem, and yes upstream should apply some sanity checks before depending on an optional library... ^^
Comment 5 Pacho Ramos gentoo-dev 2010-01-24 20:55:38 UTC
Commited -r1 for solving this problem. Thanks for reporting
Comment 6 Pacho Ramos gentoo-dev 2012-06-04 15:14:13 UTC
Please review:
https://bugs.gentoo.org/show_bug.cgi?id=416751#c39

Thanks