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).
Created attachment 902496 [details] emerge --info This is my emerge --info
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
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]
What are your firefox, harfbuzz & freetype use flags? Let me update my musl container and try emerging 131.0 and browsing reddit.
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.