[Bug 1254562] [NEW] firefox gets 100% cpu and sometimes segfaults when using deb built package libasound2

Launchpad Bug Tracker 1254562 at bugs.launchpad.net
Tue Mar 18 03:03:28 UTC 2014


You have been subscribed to a public bug:

See firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=938361
In the backtraces attached there you can see that libasound.so is causing the bug.

It seems that the way libasound gets built determines the way firefox
behaves: You get the error only when you use the automated method "apt-
get source -b" for building libasound; If you build it manually, there
is no error. See detailed instructions below.

Steps to reproduce (1st way):
See firefox bug.

Steps to reproduce (2nd way):

mkdir libasound-deb
cd libasound-deb
apt-get source -b libasound2=1.0.27.2-1ubuntu6
ar p libasound2_1.0.27.2-1ubuntu6_amd64.deb data.tar.gz | tar -xzf -
LD_PRELOAD=`pwd`/usr/lib/x86_64-linux-gnu/libasound.so.2.0.0 firefox http://mozilla.github.io/webrtc-landing/gum_test.html & lsof | grep $! | grep libasound.so
# Now click on "Video", "Audio" or "Video & Audio", it doesn't matter!
# see cpu at constant 100%
sleep 30
kill $!

However, the bug can't be reproduced with the following steps.
Steps to NOT reproduce:

mkdir libasound-manual
cd libasound-manual
apt-get source libasound2=1.0.27.2-1ubuntu6
cd alsa-lib-1.0.27.2/
make clean; ./gitcompile ; autoconf; ./configure --prefix=`pwd`/../; make; make install
LD_PRELOAD=`pwd`/../lib/libasound.so.2.0.0 firefox http://mozilla.github.io/webrtc-landing/gum_test.html & lsof | grep $! | grep libasound.so

Also not reproducible with automatically built package version
2_1.0.25-4ubuntu3.1:

mkdir libasound-old
cd libasound-old
wget http://archive.ubuntu.com/ubuntu/pool/main/a/alsa-lib/libasound2_1.0.25-4ubuntu3.1_amd64.deb
ar p libasound2_1.0.25-4ubuntu3.1_amd64.deb data.tar.gz | tar -xzf -
LD_PRELOAD=`pwd`/../lib/libasound.so.2.0.0 firefox http://mozilla.github.io/webrtc-landing/gum_test.html & lsof | grep $! | grep libasound.so

I've also checked out the sources from upstream, there the bug also doesn't show up. Something in the way the package gets built automatically is messed up.
I've verified the behaviour on two different hardwares.

** Affects: ubuntu-meta (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: alsa-lib (Ubuntu)
     Importance: Undecided
         Status: New

-- 
firefox gets 100% cpu and sometimes segfaults when using deb built package libasound2
https://bugs.launchpad.net/bugs/1254562
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to ubuntu-meta in Ubuntu.



More information about the foundations-bugs mailing list