Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939401 - www-client/firefox-130.0 tabs keeps crashing on musl profile.
Summary: www-client/firefox-130.0 tabs keeps crashing on musl profile.
Status: UNCONFIRMED
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: 2024-09-09 22:02 UTC by timmy
Modified: 2024-10-05 19:46 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge-info.txt,15.43 KB, text/plain)
2024-09-09 22:13 UTC, timmy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description timmy 2024-09-09 22:02:51 UTC
I have already created a bug report with upstream but it seems like it might be a gentoo specific issue. (link posted below)

For summary it seems that firefox tries to load a font as a child process which triggers the sandbox to kill the process; causing the tab to crash. This shouldn't happen and is reproducible on multiple gentoo musl systems (gcc/llvm).
Comment 1 timmy 2024-09-09 22:13:16 UTC
Created attachment 902496 [details]
emerge --info

This is my emerge --info
Comment 2 timmy 2024-09-10 15:21:14 UTC
I have tried to do a bit of work on my end to see if I could find any differences in our patchset vs alpines.

I first off tried applying this patch: <alpines_git>/aports/tree/community/firefox/sandbox-sched_setscheduler.patch

But it still didn't fix tabs crashing although I am not sure if the error messages were the same I presume it was since it we are talking about random crashes when browsing pages.

Then after some looking I see that the only patches I could see that are not for a particular architecture were these 4 patches that alpine applies:

* /aports/tree/community/firefox/fix-webrtc-glibcisms.patch
* /aports/tree/community/firefox/force-can-use-pack-relative-relocs.patch
* /aports/tree/community/firefox/lfs64.patch
* /aports/tree/community/firefox/no-ccache-stats.patch

However I am not sure if they are related and I am pretty sure number 3 is applied in a different way in our patchset.

So it seems like either this issue might be added via a patch from our patchset or it is a problem that should effect alpine as well. I did look through our patchset but couldn't see anything that I would think would relate to this issue. Not sure if anyone has an alpine system to test the firefox error but an example would be to go to a website like frame.work or reddit.com browse click multiple pages and elements and it should just crash.

P.S I can't post links still just yet so I had to remove them
Comment 3 timmy 2024-10-04 16:05:49 UTC
This also occurs with firefox-131. Could it be because of system-harfbuzz use flag as the crash is related to fonts (as mentioned upstream).

https://bug1883915.bmoattachments.org/attachment.cgi?id=9418546

libuxl.so seems to be causing traps in dmesg as well

[ 9821.131609] traps: Isolated Web Co[23215] trap invalid opcode ip:6f9fa10a9bce sp:7fff270d69e8 error:0 in libxul.so[62a8bce,6f9f9c886000+5e0b000]
Comment 4 Joonas Niilola gentoo-dev 2024-10-05 14:46:22 UTC
What are your firefox, harfbuzz & freetype use flags? Let me update my musl container and try emerging 131.0 and browsing reddit.
Comment 5 Joonas Niilola gentoo-dev 2024-10-05 19:46:22 UTC
30 minute session, opening all kinds of reddit threads from the frontpage. No crashes. 

[ebuild   R    ] www-client/firefox-131.0:rapid::gentoo  USE="X dbus gmp-autoupdate jumbo-build system-av1 system-harfbuzz system-icu system-jpeg (system-libevent) system-libvpx system-webp telemetry -clang (-debug) -eme-free -gnome-shell -hardened -hwaccel -jack -libproxy -lto -openh264 -pgo -pulseaudio (-selinux) -sndio -system-png (-valgrind) -wayland -wifi"

I couldn't emerge all clang-related deps on musl so just decided to build with gcc instead.