Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 773277 - www-client/firefox-78.x: Video crashes the tab when built with >=rust-1.50
Summary: www-client/firefox-78.x: Video crashes the tab when built with >=rust-1.50
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL: https://bugzilla.mozilla.org/1680166
Whiteboard:
Keywords:
: 787080 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-02-27 12:55 UTC by sphakka
Modified: 2021-04-30 10:52 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sphakka 2021-02-27 12:55:51 UTC
It looks like we got regression with `www-client/firefox-78.8.0`: no HTML video can be played any more, from youtube, vimeo, arte.tv, and others. I just see the useless message "Gah. Your tab just crashed."... :(

Possibly related to Bug 767775.

Reproducible: Always

Steps to Reproduce:
1. Start a fresh firefox profile
2. Open any page with embedded HTMl5 video (URL above, youtube, vimeo, etc.)
3. Play the video
Actual Results:  
The tab crashes: "Gah. Your tab just crashed."

Expected Results:  
The video should instead play fine.

Portage 3.0.13 (python 3.8.7-final-0, default/linux/amd64/17.1/no-multilib, gcc-9.3.0, glibc-2.32-r6, 5.4.97-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.4.97-gentoo-x86_64-Intel-R-_Core-TM-_i7-4702MQ_CPU_@_2.20GHz-with-glibc2.2.5
KiB Mem:    16108284 total,   7769320 free
KiB Swap:   16777212 total,  16364000 free
Timestamp of repository gentoo: Fri, 26 Feb 2021 19:52:13 +0000
Head commit of repository gentoo: b38f529836b5ced0b10538077153bc2b729f7c40

Timestamp of repository nest: Thu, 25 Feb 2021 03:52:20 +0000
Head commit of repository nest: 30926de1efe9da3324386fa36573feab63976fb5

sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash:          5.0_p18::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r6::gentoo, 3.7.9::gentoo, 3.8.7-r1::gentoo, 3.9.1-r1::gentoo
dev-util/cmake:           3.18.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2-r1::gentoo
sys-devel/binutils:       2.34-r2::gentoo, 2.35.1-r1::gentoo
sys-devel/gcc:            9.3.0-r2::gentoo
sys-devel/gcc-config:     2.3.3::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r6::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000

nest
    location: /var/db/repos/nest
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/nest.git
    masters: gentoo

localrepo
    location: /var/db/repos/overlay/localrepo
    masters: gentoo
    priority: 10

bubba
    location: /var/lib/layman/bubba
    sync-type: laymansync
    sync-uri: https://github.com/gordonb3/bubba-overlay.git
    masters: gentoo
    priority: 50

Installed sets: @audio, @dev, @emacs, @emul, @fonts, @gkrellm, @graphix, @net, @office, @utilz, @video, @web, @webdev, @xfce
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=haswell -pipe -O2 -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=haswell -pipe -O2 -fomit-frame-pointer"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=haswell -pipe -O2 -fomit-frame-pointer"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=haswell -pipe -O2 -fomit-frame-pointer"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/usr/lib/systemd/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS=""
MAKEOPTS="-j9"
PKGDIR="/var/cache/binpkgs"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="alsa amd64 apng berkdb bittorrent bluetooth btrfs bzip2 calendar caps cddb cdparanoia clang cli corefonts crypt cups curl cvs dav1d dbus device-mapper djvu dri dvd dynamic-loading ebook elogind emacs eme-free enchant fam fbcon fortran fpm gdbm git glamor gnome-keyring gnutls gpm graphicsmagick gtk3 gtkstyle gui h323 hddtemp heif http hunspell iconv icu id3tag imagemagick introspection jabber jpeg jumbo-build kpathsea ladspa laptop latex lcms libglvnd libnotify libsamplerate libtirpc lm_sensors lto luks1_default mng mp3 mplayer musepack musicbrainz mysql mysqli ncurses networkmanager nls nptl ntfs ntfsprogs objc objc++ ogg openmp openvg opus pam pcre pgo png policykit postscript ppds python3 readline rtmp scanner sdl seamonkey seccomp split-usr sql sqlite sqlitessh ssl system-av1 system-bootstrap system-cmark system-crontab system-ffmpeg system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-libyaml system-llvm system-mesa system-sqlite system-ssl system-webp system-zlib tcpd threads tordns truetype udisks unicode v4l v4l2 video vlc vorbis wavpack xattr xcb xcomposite xetex xfce xfs xkb xmp xorg xvfb zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel usb-audio" 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="karbon sheets words" 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 greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby25 ruby26" SANE_BACKENDS="epson2 epkowa hp" USERLAND="GNU" VIDEO_CARDS="intel 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, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

www-client/firefox-78.8.0::gentoo was built with the following:
USE="clang dbus eme-free lto openh264 pgo system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp -debug -geckodriver -gmp-autoupdate -hardened -hwaccel -jack -pulseaudio (-screencast) (-selinux) -wayland -wifi" L10N="fr -ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -ca-valencia -cak -cs -cy -da -de -dsb -el -en-CA -en-GB -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -ia -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mk -mr -ms -my -nb -ne -nl -nn -oc -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW"
CFLAGS="-march=haswell -pipe -fomit-frame-pointer"
CXXFLAGS="-march=haswell -pipe -fomit-frame-pointer"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--compress-debug-sections=zlib -Wl,-rpath=/usr/lib64/firefox,--enable-new-dtags"
Comment 1 Jonas Stein gentoo-dev 2021-02-27 14:20:57 UTC
Does is also crash with the other stable versions and the binary version?
Tested www-client/firefox-86.0 here, which works fine.
Comment 2 Daniel Nelson 2021-03-01 07:04:41 UTC
I am experiencing the same issue with the firefox package, and with the firefox-bin package video is playing fine.  I'm planning to try rebuilding with '-system-webp' tonight to see if that helps at all.
Comment 3 Daniel Nelson 2021-03-02 06:13:03 UTC
Building with '-system-webp' did not help me, however after building firefox-86.0 videos are playing without issue.
Comment 4 sphakka 2021-03-02 20:01:07 UTC
Does this tell you anything?

MediaDe~hine #1[9303]: segfault at 0 ip 00007f23fd3a62eb sp 00007f23e934cc80 error 4 in libmozsandbox.so[7f23fd39d000+f000]
[Code: 05 00 00 00 89 c6 4c 89 c2 31 c0 e8 bf 4d 00 00 48 89 c3 48 85 c0 79 c2 e8 12 4d 00 00 48 63 18 48 f7 db eb b5 83 f8 9c 74 09 <80> 3a 2f 0f 85 9c 00 00 00 41 89 f9 41 81 e1 ff f6 ff ff 75 17 0f

It's on dmesg each time a tab crashes.
Comment 5 Oleg 2021-03-14 07:58:43 UTC
I have rebuild world after updating to gcc10 and catch this error too.
Comment 6 Dave Hughes 2021-03-14 20:52:35 UTC
If you're on rust 1.50, try downgrading to 1.49 and rebuild firefox. I had an issue similar to what you are describing and downgrading rust fixed it for me.
Comment 7 Thomas Deutschmann (RETIRED) gentoo-dev 2021-03-14 22:13:41 UTC
Please add more information (`emerge --info www-client/firefox`) and used rust version.
Comment 8 Oleg 2021-03-15 00:13:01 UTC
Yes, I forgot to switch default rust version and built it with nightly. I rebuilt it with 1.47 and video started to work. Firefox 86.0.1 works even if was built with nightly.
Comment 9 Daniel Nelson 2021-04-07 22:04:49 UTC
Rebuilding with rust 1.47.0 also fixed the issue for me in firefox-78.8.0.
Comment 10 Marco Sirabella 2021-04-22 08:00:41 UTC
I see the same dmesg output & recently started getting these problems after upgrading rust to unstable, will try re-emerging tonight
Comment 11 Marco Sirabella 2021-04-22 14:07:02 UTC
emerge `=virtual/rust-1.49.0 www-client/firefox` fixes this for me.

Firefox should probably be pinned to `<virtual/rust-1.50.0`?
Comment 12 Marco Sirabella 2021-04-23 03:56:59 UTC
Yup, and emerging back to `=virtual/rust-1.51.0 www-client/firefox` causes the same breakage
Comment 13 Thomas Deutschmann (RETIRED) gentoo-dev 2021-04-23 21:18:17 UTC
Reproduced as described.
Comment 14 Larry the Git Cow gentoo-dev 2021-04-23 21:47:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=092ab0c34647f7b6c826f65f8d2bdd39e90dda28

commit 092ab0c34647f7b6c826f65f8d2bdd39e90dda28
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2021-04-23 21:39:40 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2021-04-23 21:39:40 +0000

    www-client/firefox: fix runtime crash when built with >=rust-1.50
    
    Closes: https://bugs.gentoo.org/773277
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 www-client/firefox/Manifest               | 1 +
 www-client/firefox/firefox-78.10.0.ebuild | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
Comment 15 Joonas Niilola gentoo-dev 2021-04-30 10:52:46 UTC
*** Bug 787080 has been marked as a duplicate of this bug. ***