Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 730986 - www-client/firefox-78.0.1 crashes on wayland
Summary: www-client/firefox-78.0.1 crashes on wayland
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:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-05 21:52 UTC by Maxim
Modified: 2020-07-07 15:52 UTC (History)
4 users (show)

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


Attachments
emerge --info output (emerge --info,5.64 KB, text/plain)
2020-07-05 21:52 UTC, Maxim
Details
firefox +wayland segfault backtrace (ff_backtrace_wl,2.41 KB, text/plain)
2020-07-06 19:16 UTC, Constantine Kardaris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim 2020-07-05 21:52:44 UTC
Created attachment 647856 [details]
emerge --info output

Not reproducible in firefox-bin. Not reproducible in firefox-77.0.1. Tried different USE-flags and compiling with clang, nothing helped. Already described here: https://bugzilla.mozilla.org/show_bug.cgi?id=1650594. 
USE-flags: bindist eme-free gmp-autoupdate l10n_ru openh264 screenshot system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp wayland
Typical crash messages:
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
[1]    6265 segmentation fault  firefox
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2020-07-06 02:08:42 UTC
Any chance you could provide a backtrace?
Comment 2 Luis Cáceres 2020-07-06 06:42:39 UTC
I think I have the same issue. It may be the same problem as this comment in the firefox bugtracker (https://bugzilla.mozilla.org/show_bug.cgi?id=1641749#c2) which also has a backtrace.

I'm rebuilding firefox with debugging symbols to see if I can get my own backtrace.
Comment 3 Constantine Kardaris 2020-07-06 19:15:00 UTC
I will take a gamble and say that we have the same segfaults with the backtrace i attach.
I found the culprit to be "0027-bmo-1618914-Wayland-Fall-back-to-ftruncate-if-posix_.patch".
Removing it seems to fix the crashes, minus the problem that the patch supposed to fix.

If it's not the case, i'm sorry for the noise.
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2020-07-06 19:15:31 UTC
Are you using ZFS?
Comment 5 Constantine Kardaris 2020-07-06 19:16:06 UTC
Created attachment 648038 [details]
firefox +wayland segfault backtrace
Comment 6 Larry the Git Cow gentoo-dev 2020-07-06 19:24:15 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86c6cab4a54c344a8c9bcbb1e3ea781e065ddc15

commit 86c6cab4a54c344a8c9bcbb1e3ea781e065ddc15
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2020-07-06 19:23:14 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2020-07-06 19:23:14 +0000

    www-client/firefox: drop patch for bmo#1618914
    
    Bug: https://bugs.gentoo.org/730986
    Package-Manager: Portage-2.3.103, Repoman-2.3.23
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 www-client/firefox/firefox-78.0.1.ebuild | 2 ++
 1 file changed, 2 insertions(+)
Comment 7 Luis Cáceres 2020-07-07 12:35:16 UTC
Fix works for me. Thanks!
Comment 8 Larry the Git Cow gentoo-dev 2020-07-07 13:46:40 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c11d921ca0d6135ca9f4036b03662aad522d878

commit 6c11d921ca0d6135ca9f4036b03662aad522d878
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2020-07-07 13:46:14 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2020-07-07 13:46:25 +0000

    www-client/firefox: rev bump for new patch set
    
    Closes: https://bugs.gentoo.org/730606
    Closes: https://bugs.gentoo.org/730986
    Package-Manager: Portage-2.3.103, Repoman-2.3.23
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 www-client/firefox/Manifest                                    |  2 +-
 .../{firefox-78.0.1.ebuild => firefox-78.0.1-r1.ebuild}        | 10 +++++++---
 2 files changed, 8 insertions(+), 4 deletions(-)
Comment 9 David Heidelberg (okias) 2020-07-07 15:52:55 UTC
Thank you Thomas for finding the offending patch & Luis for testing, I though that Firefox crashing on my wayland setup is some old library which I forgot to update.!

Thank you guys!!! (meanwhile compiling like crazy and looking forward to crash-less experince).