Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 575998 - =www-client/firefox-38.6.1 random crashes
Summary: =www-client/firefox-38.6.1 random crashes
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-29 13:20 UTC by Eduardo Coutinho Scalabrin
Modified: 2017-08-26 17:56 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info firefox (emerge_info.txt,8.83 KB, text/plain)
2016-02-29 16:42 UTC, Fab
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eduardo Coutinho Scalabrin 2016-02-29 13:20:46 UTC
I have the same problem that the error in "Bug 558150 - =www-client/firefox-40.0.2 random crashes", but I have '=www-client/firefox-38.6.1'. I have these two errors:

-the browser closes and I get this message:

libva info: VA-API version 0.38.1
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/va/drivers/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_0_35
libva info: va_openDriver() returns 0
[NPAPI 23627] ###!!! ABORT: Aborting on channel error.: file /var/tmp/portage/www-client/firefox-38.6.1/work/mozilla-esr38/ipc/glue/MessageChannel.cpp, line 1584
[NPAPI 23627] ###!!! ABORT: Aborting on channel error.: file /var/tmp/portage/www-client/firefox-38.6.1/work/mozilla-esr38/ipc/glue/MessageChannel.cpp, line 1584
Falha de segmentação

-the system locks completely and I have to press the power button.

emerge --info
Portage 2.2.26 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.9.3, glibc-2.21-r2, 4.1.15-gentoo-r1 x86_64)
=================================================================
System uname: Linux-4.1.15-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-4790_CPU_@_3.60GHz-with-gentoo-2.2
KiB Mem:    32895548 total,  28040616 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Mon, 29 Feb 2016 09:30: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.10-r1::gentoo, 3.4.3-r1::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.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::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

eva
    location: /var/lib/layman/eva
    masters: gentoo
    priority: 0

torbrowser
    location: /var/lib/layman/torbrowser
    masters: gentoo
    priority: 1

wirelay
    location: /var/lib/layman/wirelay
    masters: gentoo
    priority: 2

gentoo-zh
    location: /var/lib/layman/gentoo-zh
    masters: gentoo
    priority: 3

local
    location: /usr/local/portage
    masters: gentoo
    priority: 4

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core-avx2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distfiles.gentoo.org/ ftp://ftp.osuosl.org/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
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 a52 aac aacplus aacs aalib acl acpi ads alac alsa amd64 amr analyzer ao audacious audiofile autotrace bash-completion bazaar berkdb bidi bittorrent bl bluetooth bluray branding bs2b btrfs bzip2 cairo cdda cddb cdio cdparanoia cdr celt chm cjk clang cli clucene consolekit corefonts cover cpudetection cracklib crypt css cue cups cvs cxx darcs dbus declarative designer device-mapper dga dirac directfb discid dlna dmx dri drm dts dv dvb dvd dvdr embedded emboss emovix encode exif extensions extras faac faad fam fasttrack fat fdformat fdk ffmpeg firefox flac fontconfig fortran frei0r ftp fuse g3dvl gadu gd gdbm geoip ggi gif gimp git glade glamor gme gmp gnome-keyring gnutella gnutls gphoto2 gpm graphviz groupwise gsf gsm gstreamer gtk hddtemp hfs hidpi hpijs http iconv icu ieee1394 imagemagick imlib inotify iostats ipod iptc irda java javascript jfs joystick jpeg jpeg2k kde kdenlive kdepim kdrive kipi ladspa lame lcms ldap libass libcaca libkms libmpeg2 libmpv libnotify libsamplerate libsoxr libv4l live lm_sensors lvm lyrics lz4 lzma lzo mac mad matroska mdadm meanwhile melt mencoder mercurial messages midi mikmod minizip mjpeg mms mmx mmxext mng mod modplug modules mp3 mp4 mpeg mplayer mpris msn multilib musepack musicbrainz mysql nas ncurses network nls nptl nsplugin ntfs nut ogg ogm openal opencl openexr opengl openmp openssl opus oscar pam pango pcre pcre16 pdf perl phonon plasma playlist png pnm policykit postproc ppds ppp pvr python qsui qt3support qt4 quicktime radio rar readline reiser4 reiserfs replaygain rss rtmp rubberband scanner schroedinger script sdl seccomp semantic-desktop session shorten shout sid smp sms sndfile soprano sox speex spell sqlite srt sse sse2 ssl startup-notification stemmer stereo subtitles subversion svg swat taglib tcl tcpd tga theora threads thumbnail tiff timidity tk toolame tools tracker transcode tray tremor truetype tta twolame udev udisks unicode upnp upnp-av upower usb utils v4l vaapi vala vcd vcdx vdpau vf-dlopen vorbis vpx wavpack webkit widevine winbind wma wmf wxwidgets x264 x265 xa xanin xattr xcb xcomposite xfs xine xinerama xml xmp xpm xps xscreensaver xv xvid xvmc yahoo zlib zoran" ABI_X86="32 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="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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="pc" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="pdfimport" LINGUAS="pt_BR" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Fab 2016-02-29 15:13:07 UTC
I'm getting the same segfault with firefox-38.6.1 when viewing html5 videos.
I think this start to happen since about one week, after all gnome and gstreamer related packages were updated in bug #566378.
Comment 2 Ian Stakenvicius (RETIRED) gentoo-dev 2016-02-29 15:39:54 UTC
OK so per the original bug filer, if the system is locking up completely then the issue likely relates more to the nvidia driver than not.  If you haven't already, please check to make sure hardware acceleration is turned off in about:config :

layers.acceleration.force-enabled should be false

webgl.force-enabled should be false

Also in about:preferences#advanced , please un-check "Use Hardware Acceleration when possible"

..see if that prevents the crashes/lockups.


The segfault in the second comment on this bug would seem more like the referring bug.  More info is required, could you please post your emerge --info and the USE flags you have set on www-client/firefox?
Comment 3 Fab 2016-02-29 16:42:48 UTC
Created attachment 427014 [details]
emerge --info firefox

(In reply to Ian Stakenvicius from comment #2)
> The segfault in the second comment on this bug would seem more like the
> referring bug.  More info is required, could you please post your emerge
> --info and the USE flags you have set on www-client/firefox?

See attached file. Stable system, nothing special.

To reproduce the segfault :
 - launch firefox
 - open two tabs
 - on the first tab, go to http://www.dailymotion.com
 - click on a random video, play it a few seconds, then close that tab
 - firefox will crash a few seconds later like this :

> $ firefox --safe-mode
> 
> (process:14135): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
> console.error: 
>   [CustomizableUI]
>   Custom widget with id loop-button does not return a valid node
> console.error: 
>   [CustomizableUI]
>   Custom widget with id loop-button does not return a valid node
> libva info: VA-API version 0.38.1
> libva info: va_getDriverName() returns 0
> libva info: Trying to open /usr/lib64/va/drivers/nvidia_drv_video.so
> libva info: Found init function __vaDriverInit_0_35
> libva info: va_openDriver() returns 0
> Segmentation fault
Comment 4 Eduardo Coutinho Scalabrin 2016-02-29 22:22:04 UTC
(In reply to Ian Stakenvicius from comment #2)
> OK so per the original bug filer, if the system is locking up completely
> then the issue likely relates more to the nvidia driver than not.  If you
> haven't already, please check to make sure hardware acceleration is turned
> off in about:config :
> 
> layers.acceleration.force-enabled should be false
> 
> webgl.force-enabled should be false
> 
> Also in about:preferences#advanced , please un-check "Use Hardware
> Acceleration when possible"
> 
> ..see if that prevents the crashes/lockups.
> 
> 
> The segfault in the second comment on this bug would seem more like the
> referring bug.  More info is required, could you please post your emerge
> --info and the USE flags you have set on www-client/firefox?

I made the changes, but the browser is still crash, but not yet lockup.

www-client/firefox-38.6.1::gentoo was built with the following:
USE="dbus gmp-autoupdate gstreamer jemalloc3 jit minimal startup-notification -bindist -custom-cflags -custom-optimization -debug -egl -gstreamer-0 -hardened (-neon) (-pgo) -pulseaudio (-selinux) -system-cairo -system-icu -system-jpeg -system-libvpx -system-sqlite -test -wifi" ABI_X86="64" LINGUAS="pt_BR -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_PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv_SE -ta -te -th -tr -uk -vi -xh -zh_CN -zh_TW"
CFLAGS="-march=core-avx2 -pipe"
CXXFLAGS="-march=core-avx2 -pipe"
Comment 5 Fab 2016-03-01 12:07:34 UTC
For me one way to avoid this crash is to disable gstreamer support by setting media.gstreamer.enabled = false into about:config.
In this way html5 videos are disabled by default.

Another way is to rebuild media-plugins/gst-plugins-meta-1.6.3 without vaapi useflag and depclean media-plugins/gst-plugins-vaapi. This seems to have the same effect.
Comment 6 Ian Stakenvicius (RETIRED) gentoo-dev 2016-03-01 16:02:18 UTC
(In reply to Fab from comment #5)
> For me one way to avoid this crash is to disable gstreamer support by
> setting media.gstreamer.enabled = false into about:config.
> In this way html5 videos are disabled by default.
> 
> Another way is to rebuild media-plugins/gst-plugins-meta-1.6.3 without vaapi
> useflag and depclean media-plugins/gst-plugins-vaapi. This seems to have the
> same effect.

That would confirm that the issue is in fact media-plugins/gst-plugins-vaapi , possibly in combination with your nvidia (vdpau-only) video driver.  Please reassign the bug if you can confirm that gstreamer causes failures outside of firefox too when rendering video via gst-plugins-vaapi.
Comment 7 Fab 2016-03-01 18:35:58 UTC
It seems that's not a new bug. See [1] [2] [3].

It seems also that official builds of firefox were never compiled against gstreamer:1.0. See [4]. With gstreamer:0.10; there's no vaapi support, so no crash.

Finally, it seems that gstreamer support will purely be removed in future versions of firefox. See [5].

So as a temporary workaround I think I will remove vaapi useflag from gstreamer until newer version of firefox hit the tree and is stabilized.

[1] https://bugzilla.gnome.org/show_bug.cgi?id=732368
[2] https://bugs.launchpad.net/ubuntu/+source/gstreamer-vaapi/+bug/1395070
[3] https://bugzilla.mozilla.org/show_bug.cgi?id=1024125
[4] https://bugzilla.mozilla.org/show_bug.cgi?id=947287
[5] https://bugzilla.mozilla.org/show_bug.cgi?id=1234092
Comment 8 Franz Trischberger 2016-03-15 06:56:50 UTC
I also got those lockups (with firefox-44.0.2), I also fixed it by removing gstreamer-libav. But I have an intel-GPU, so it's not an issue with nvidia-drivers but with gstreamers vaapi-support.
Comment 9 Room Cays 2016-03-24 12:40:30 UTC
I have fixed this issue by forcing www-client/firefox-38.7.0 to use media-libs/gstreamer:0.10 thanks to USE flag "gstreamer-0".
Comment 10 Jory A. Pratt gentoo-dev 2017-08-26 17:56:00 UTC
If you feel I have closed your bug and it is still a current issue, please reopen and update it completely. We will not work bugs that have no ebuild in tree any longer or can not be reproduced with a current system.

Thank You for your support and understanding
The Mozilla Team