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

Bug 576744

Summary: www-client/firefox spontaneous crashes during media playback (gstreamer)
Product: Gentoo Linux Reporter: R030t1
Component: Current packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: RESOLVED NEEDINFO    
Severity: major CC: gentoo
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description R030t1 2016-03-08 05:39:42 UTC
Using ~amd64, though firefox notably DOES NOT crash on another x86_64 machine, ever, uptime >2mo.
Comment 1 R030t1 2016-03-08 05:39:54 UTC
Portage 2.2.26 (python 2.7.11-final-0, hardened/linux/amd64/selinux, gcc-4.9.3, glibc-2.21-r2, 4.4.2-hardened x86_64)
=================================================================
System uname: Linux-4.4.2-hardened-x86_64-Intel-R-_Core-TM-_i5-4278U_CPU_@_2.60GHz-with-gentoo-2.2
KiB Mem:     8139328 total,   3891848 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 07 Mar 2016 00:45:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo, 3.5.1-r2::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.12.6::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.3.0::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl amd64 avx avx2 berkdb bindist bzip2 cli consolekit cracklib crypt cxx dbus dri egl evdev gdbm gles hardened iconv ipv6 justify mmx mmxext modules multilib ncurses nls nptl open_perms opencv opengl openmp pam pax_kernel pcre pie pulseaudio qt5 readline seccomp selinux session sse sse2 ssl ssp tcpd unconfined unicode urandom vim-syntax wayland xattr xcb xrandr xtpax zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 qemu" INPUT_DEVICES="udev evdev synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_5" QEMU_SOFTMMU_TARGETS="x86_64 arm arm64" QEMU_USER_TARGETS="x86_64 arm arm64" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel i915 i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Pacho Ramos gentoo-dev 2016-03-08 11:55:35 UTC
Please provide emerge -pv firefox output and a proper backtrace:
https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
Comment 3 Lee Trager 2016-03-11 10:22:01 UTC
I'm seeing this as well. According to upstream Firefox 35 should no longer be using gstreamer(https://bugzilla.mozilla.org/show_bug.cgi?id=947287)

# emerge -pv firefox 

These are the packages that would be merged, in order:

Calculating dependencies                         ... done!         
[ebuild   R    ] www-client/firefox-45.0::gentoo  USE="dbus ffmpeg gmp-autoupdate gstreamer-0 gtk3 hwaccel jemalloc3 jit pulseaudio startup-notification -bindist -custom-cflags -custom-optimization -debug -gstreamer -hardened (-neon) (-pgo) (-selinux) -system-cairo -system-icu -system-jpeg -system-libevent -system-libvpx -system-sqlite {-test} -wifi" LINGUAS="-af -ar -as -ast -be -bg -bn_BD -bn_IN -br -bs -ca -cs -cy -da -de -el -en_GB -en_ZA -eo -es_AR -es_CL -es_ES -es_MX -et -eu -fa -fi -fr -fy_NL -ga_IE -gd -gl -gu_IN -he -hi_IN -hr -hu -hy_AM -id -is -it -ja -kk -km -kn -ko -lt -lv -mai -mk -ml -mr -nb_NO -nl -nn_NO -or -pa_IN -pl -pt_BR -pt_PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv_SE -ta -te -th -tr -uk -vi -xh -zh_CN -zh_TW" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Backtrace:
#0  0x00007ffff7bcf33f in send () from /lib64/libpthread.so.0
#1  0x00007fffe631923f in ?? () from /usr/lib64/libnspr4.so
#2  0x00007fffe60cc9fa in ?? () from /usr/lib64/libssl3.so
#3  0x00007fffe60bc210 in ?? () from /usr/lib64/libssl3.so
#4  0x00007fffe60bc9c3 in ?? () from /usr/lib64/libssl3.so
#5  0x00007fffe60d2ba6 in ?? () from /usr/lib64/libssl3.so
#6  0x00007fffe8c6bf4a in ?? () from /usr/lib64/firefox/libxul.so
#7  0x00007fffe8c6bfd9 in ?? () from /usr/lib64/firefox/libxul.so
#8  0x00007fffe73fe502 in ?? () from /usr/lib64/firefox/libxul.so
#9  0x00007fffe74024b4 in ?? () from /usr/lib64/firefox/libxul.so
#10 0x00007fffe73ff1a4 in ?? () from /usr/lib64/firefox/libxul.so
#11 0x00007fffe73ff755 in ?? () from /usr/lib64/firefox/libxul.so
#12 0x00007fffe7403513 in ?? () from /usr/lib64/firefox/libxul.so
#13 0x00007fffe737ddb2 in ?? () from /usr/lib64/firefox/libxul.so
#14 0x00007fffe739c14f in ?? () from /usr/lib64/firefox/libxul.so
#15 0x00007fffe75acc93 in ?? () from /usr/lib64/firefox/libxul.so
#16 0x00007fffe7574106 in ?? () from /usr/lib64/firefox/libxul.so
#17 0x00007fffe73808ea in ?? () from /usr/lib64/firefox/libxul.so
#18 0x00007fffe631bd5b in ?? () from /usr/lib64/libnspr4.so
#19 0x00007ffff7bc6434 in start_thread () from /lib64/libpthread.so.0
#20 0x00007ffff6e7728d in clone () from /lib64/libc.so.6
Comment 4 gentoo 2016-03-12 04:20:12 UTC
I am also seeing periodic crashes on firefox 45 built on a hardened profile with jit enabled. Based on a recommendation here: https://bugzilla.mozilla.org/show_bug.cgi?id=1136417 I exported X_MOZ_SYNC, and the incedents of crashes seems to have gone down significantly.
Comment 5 Pacho Ramos gentoo-dev 2016-03-14 12:12:46 UTC
(In reply to Lee Trager from comment #3)

> Backtrace:
> #0  0x00007ffff7bcf33f in send () from /lib64/libpthread.so.0
> #1  0x00007fffe631923f in ?? () from /usr/lib64/libnspr4.so
> #2  0x00007fffe60cc9fa in ?? () from /usr/lib64/libssl3.so
> #3  0x00007fffe60bc210 in ?? () from /usr/lib64/libssl3.so
> #4  0x00007fffe60bc9c3 in ?? () from /usr/lib64/libssl3.so
> #5  0x00007fffe60d2ba6 in ?? () from /usr/lib64/libssl3.so
> #6  0x00007fffe8c6bf4a in ?? () from /usr/lib64/firefox/libxul.so
> #7  0x00007fffe8c6bfd9 in ?? () from /usr/lib64/firefox/libxul.so
> #8  0x00007fffe73fe502 in ?? () from /usr/lib64/firefox/libxul.so
> #9  0x00007fffe74024b4 in ?? () from /usr/lib64/firefox/libxul.so
> #10 0x00007fffe73ff1a4 in ?? () from /usr/lib64/firefox/libxul.so
> #11 0x00007fffe73ff755 in ?? () from /usr/lib64/firefox/libxul.so
> #12 0x00007fffe7403513 in ?? () from /usr/lib64/firefox/libxul.so
> #13 0x00007fffe737ddb2 in ?? () from /usr/lib64/firefox/libxul.so
> #14 0x00007fffe739c14f in ?? () from /usr/lib64/firefox/libxul.so
> #15 0x00007fffe75acc93 in ?? () from /usr/lib64/firefox/libxul.so
> #16 0x00007fffe7574106 in ?? () from /usr/lib64/firefox/libxul.so
> #17 0x00007fffe73808ea in ?? () from /usr/lib64/firefox/libxul.so
> #18 0x00007fffe631bd5b in ?? () from /usr/lib64/libnspr4.so
> #19 0x00007ffff7bc6434 in start_thread () from /lib64/libpthread.so.0
> #20 0x00007ffff6e7728d in clone () from /lib64/libc.so.6

As the libs are shown in ?? that mean you need to recompile with debugging symbols the packages providing that libs too

Also, if you are hitting https://bugzilla.mozilla.org/show_bug.cgi?id=1136417 it seems to be caused by cairo with xlib-xcb support enabled, is that your case?