Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909676 - >=www-client/firefox-114 crashes with "Illegal instruction"
Summary: >=www-client/firefox-114 crashes with "Illegal instruction"
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-05 04:49 UTC by Nathan Zachary
Modified: 2023-07-18 03:04 UTC (History)
3 users (show)

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


Attachments
emerge --info firefox (emerge.info,7.18 KB, text/plain)
2023-07-05 04:50 UTC, Nathan Zachary
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Zachary 2023-07-05 04:49:02 UTC
I experience crashes at seemingly random times when using Firefox 114 or 115:

$ firefox
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
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.
Illegal instruction
Exiting due to channel error.
Comment 1 Nathan Zachary 2023-07-05 04:50:08 UTC
Created attachment 865147 [details]
emerge --info firefox
Comment 2 Joonas Niilola gentoo-dev 2023-07-05 07:05:54 UTC
Could you boot into <6.4 kernel if you have one available? I recently learned 6.4 has some issues with Firefox making it crash.
Comment 3 Joonas Niilola gentoo-dev 2023-07-05 07:06:37 UTC
Unfortunately the shell log doesn't provide anything meaningful, you'd have to debug the crash.
Comment 4 Nathan Zachary 2023-07-05 14:31:18 UTC
Unfortunately, I don't have any <6.4 kernel available.  I could try to go drop back to a 6.3 kernel and redo the configuration if you think that will be helpful.  If I recall correctly, though, the problem existed in Firefox 114 before I switched to a 6.4 kernel as I only have an uptime of 7 days at the moment.
Comment 5 Larry the Git Cow gentoo-dev 2023-07-06 06:48:04 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=611e4dd27464b1222aef483bd9bcc78cc38be409

commit 611e4dd27464b1222aef483bd9bcc78cc38be409
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2023-07-06 06:47:15 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2023-07-06 06:47:15 +0000

    www-client/firefox: include latest skia-avx patch for 115
    
    Bug: https://bugs.gentoo.org/908979
    Bug: https://bugs.gentoo.org/909676
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 www-client/firefox/Manifest             | 2 +-
 www-client/firefox/firefox-115.0.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 6 Nathan Zachary 2023-07-06 22:57:05 UTC
I was hopeful that the new set of patches would fix the problem, but it didn't.
Comment 7 Petr Šabata 2023-07-09 13:04:38 UTC
My Firefox has been crashing like crazy, however, there is no clean reproducer.  I can confirm both v114 and v115 are affected, but v114 used to work fine until ~late June.  The errors printed to the terminal are very cryptic and sometimes non-existent.

Heh, I've even rebuilt @world numerous times with saner flags, switched from clang to gcc for a while, both for Firefox itself and the whole system, flipped every Firefox USE flag, disabled and removed the binary plugins... to no avail.

I have tried downgrading my firmware blobs and even switched back to 6.3.11 which did not help.  At this point I'd like to believe it's the kernel, however.  It's really the last thing...

Oh and I'd note firefox-bin crashes the same way.  (I should have tried that before all the other things.)
Comment 8 Petr Šabata 2023-07-09 13:38:30 UTC
I've switched to =gentoo-sources-6.1.38 and so far so good.  Opening lots of tabs and going through various websites that typically triggered a crash before didn't do anything.
Comment 9 Piotr Karbowski (RETIRED) gentoo-dev 2023-07-11 05:53:40 UTC
Addressed in 6.4.3 kernel release.
Comment 10 Nathan Zachary 2023-07-11 14:57:20 UTC
I can't find the exact commit that is expected to fix the problem in Firefox, but I'm thinking that it's probably related to the VMA Locking.

Thank you for the update.
Comment 11 Nathan Zachary 2023-07-13 04:40:07 UTC
No crashes for >24 hours, so it seems like the 6.4.3 kernel release did fix the problem.
Comment 12 Joonas Niilola gentoo-dev 2023-07-13 05:26:44 UTC
Glad to hear that!
Comment 13 Piotr Karbowski (RETIRED) gentoo-dev 2023-07-13 07:42:06 UTC
(In reply to Nathan Zachary from comment #10)
> I can't find the exact commit that is expected to fix the problem in
> Firefox, but I'm thinking that it's probably related to the VMA Locking.
> 
> Thank you for the update.

Here you have the more insight on what is the source of problem and current fix -- https://bugzilla.mozilla.org/show_bug.cgi?id=1835488#c9
Comment 14 Nathan Zachary 2023-07-13 14:41:48 UTC
Thanks for the link, Piotr.  So it is indeed related to VMA locking, which was fixed in kernel 6.4.3.