Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914049 - www-client/firefox-117: Isolated Web Co[17972]: segfault at 88 ip 00007fcb9306d012 sp 000 07fffac4c8528 error 4 in libxul.so[7fcb91234000+3cf5000]
Summary: www-client/firefox-117: Isolated Web Co[17972]: segfault at 88 ip 00007fcb930...
Status: UNCONFIRMED
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: 2023-09-12 12:46 UTC by awilum
Modified: 2024-03-19 09:37 UTC (History)
1 user (show)

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


Attachments
Build log. (firefox-117-build-config.log.xz,50.79 KB, application/x-xz)
2023-09-12 13:02 UTC, awilum
Details
emerge --info (emerge_info.txt.xz,3.39 KB, application/x-xz)
2023-09-19 10:15 UTC, awilum
Details
distcc hosts (hosts,13 bytes, text/plain)
2023-09-19 10:17 UTC, awilum
Details
emerge --info www-client/firefox (emerge.info,8.06 KB, text/plain)
2024-03-19 09:37 UTC, MickKi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description awilum 2023-09-12 12:46:44 UTC
Hello,

[I] www-client/firefox
     Available versions:  
     (esr)  102.15.0 (~)115.2.0
     (rapid) (~)117.0
       {+X +clang dbus debug eme-free geckodriver +gmp-autoupdate hardened hwaccel jack +jumbo-build libproxy lto openh264 pgo pulseaudio screencast selinux sndio +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx system-png system-python-libs +system-webp +telemetry valgrind wayland wifi CPU_FLAGS_ARM="neon" L10N="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 fr fur 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 sc sco si sk sl son sq sr sv szl ta te th tl tr trs uk ur uz vi xh zh-CN zh-TW"}
     Installed versions:  117.0(rapid)(16:02:28 10/09/2023)(X dbus gmp-autoupdate jumbo-build system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp telemetry wayland -clang -debug -eme-free -geckodriver -hardened -hwaccel -jack -libproxy -lto -openh264 -pgo -pulseaudio -screencast -selinux -sndio -system-png -system-python-libs -valgrind -wifi CPU_FLAGS_ARM="-neon" 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 -fur -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 -sc -sco -si -sk -sl -son -sq -sr -sv -szl -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW")


I had this segfault with firefox-117 & uBlock Origin version 1.51.0
[ 2449.542806] Isolated Web Co[17972]: segfault at 88 ip 00007fcb9306d012 sp 000
07fffac4c8528 error 4 in libxul.so[7fcb91234000+3cf5000] likely on CPU 26 (core
10, socket 0)

[ 2449.542824] Code: f0 48 29 f8 74 23 49 0f af f8 49 0f af c0 49 0f af f0 49 0f
af c8 48 8d 7c 3a 08 48 89 c2 48 01 fe 48 01 cf e9 97 1e 1d fe c3 <48> 8b 07 8b
08 48 8d 50 08 48 8d 4c c8 08 48 89 d0 48 39 c1 74 1f

But the official Firefox-117 did not rise any segfault, even the Night version.

Here report: https://bugzilla.mozilla.org/show_bug.cgi?id=1852441

I have put my firefox-117-build-config.log
Comment 1 awilum 2023-09-12 13:02:34 UTC
Created attachment 870349 [details]
Build log.

Stopped after configuration done.
Comment 2 Joonas Niilola gentoo-dev 2023-09-18 04:51:47 UTC
So does it not happen with ublock origin disabled? You should also try the latest versions (of firefox, +ubo).

Nothing obvious stands out, but I would try to compile it without distcc and strip any weird *FLAGS off too.
Comment 3 awilum 2023-09-18 13:54:03 UTC
Hi, Joonas Niilola,

> So does it not happen with ublock origin disabled? 
Yes, it doesn't happen with origin disabled.

> You should also try the latest versions (of firefox, +ubo).
I have tested with firefox-117.0.1 & uBO 1.52.0.

FEATURES: without distcc

When firefox-117.0.1 is compiled with clang & lto, also with clang & -lto, no problem.

But with -clang & -lto, maybe also with -clang & lto (I didn't tested this one), I have had this, in dmesg logs:

[ 4951.498984] Isolated Web Co[7861]: segfault at 88 ip 00007f8e7e519dca sp 00007ffe2138aa28 error 4 in libxul.so[7f8e7c6e1000+3cf5000] likely on CPU 18 (core 2, socket 0)
[ 4951.499003] Code: f0 48 29 f8 74 23 49 0f af f8 49 0f af c0 49 0f af f0 49 0f af c8 48 8d 7c 3a 08 48 89 c2 48 01 fe 48 01 cf e9 df 20 1d fe c3 <48> 8b 07 8b 08 48 8d 50 08 48 8d 4c c8 08 48 89 d0 48 39 c1 74 1f

So, to avoid this problem, we need to compile with clang ?

Best regards.
Comment 4 Joonas Niilola gentoo-dev 2023-09-19 06:52:36 UTC
Hmm, could you provide "emerge --info"?

I wonder if some library is broken with your *FLAGS setting, or distcc (are you using pump?). Wouldn't be the first time libs aren't breaking when building them, but show some random runtime issues with their rdeps. Especially when related to multimedia. Could also be related to alsa<->pulseaudio, since upstream binary is always built with pulseaudio support enabled. We just get around with using apulse, but with source-version, you can disable pulseaudio.

It's really hard to day. You may have to backtrace the issue to find the exact problem. It's better than guessing.
 
https://wiki.gentoo.org/wiki/Debugging
Comment 5 awilum 2023-09-19 10:15:58 UTC
Created attachment 870930 [details]
emerge --info
Comment 6 awilum 2023-09-19 10:17:37 UTC
Created attachment 870931 [details]
distcc hosts

There is only localhost
Comment 7 awilum 2023-09-19 10:28:06 UTC
> I wonder if some library is broken with your 
> *FLAGS setting, or distcc (are you using pump?).
I did not use pump mode. Also I have only localhost in my hosts for distcc.

> Could also be related to alsa<->pulseaudio, 
> since upstream binary is always built with pulseaudio support enabled.
> We just get around with using apulse, but with source-version, you can disable pulseaudio.
Pulseaudio is not installed, I have only both alsa & pipewire (with wireplumber).

> It's really hard to day. You may have to backtrace the issue to find the exact problem.
> It's better than guessing.
> 
>https://wiki.gentoo.org/wiki/Debugging
I will take a look at it.
Comment 8 MickKi 2024-03-19 09:37:46 UTC
Created attachment 887913 [details]
emerge --info www-client/firefox

This problem is not related to distcc - I don't use distcc and have the same segfault here running firefox on Wayland with two monitors.  It's been happening for different versions of firefox.  It crashes the whole OS and necessitates a hard reboot.  It is always repeatable by:

1. Placing PC in sleep and waking it up.
2. Launching firefox and start browsing.

Some random time after firefox is launched (usually between 15 to 50 minutes) the application segfaults irrecoverably.  A typical message shown in the log:

kernel: Isolated Web Co[24562]: segfault at 2100 ip 00007f7d18c5aad0 sp 00007ffde8c97e50 error 4 in libxul.so[7f7d18c1a000+5773000] likely on CPU 3 (core 3, socket 0)

I have placed the Firefox cache on /tmp, but it makes no difference.  I have also enabled in about:config with no success:

gfx.webrender.all
gfx.webrender.compositor

(this was suggested in some old Fedora bug report of Firefox-60).

From a fresh reboot Firefox could be used continuously and for many days and hours (5-10hr) at a time with no problem manifesting, but if if launched and used after the PC is put on sleep and woken up it will always crash.  I attach emerge --info.