Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

Some extensions don't work in Firefox [Workaround]

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
24 posts • Page 1 of 1
Author
Message
pickd.mask
n00b
n00b
Posts: 28
Joined: Tue Aug 02, 2011 8:16 am

Some extensions don't work in Firefox [Workaround]

  • Quote

Post by pickd.mask » Tue Aug 24, 2021 10:55 pm

General info:
System is ~amd64, built with gcc-11.2.0 and glibc-2.34.
Profile: default/linux/amd64/17.1/desktop/plasma/systemd (stable)
Proprietary nvidia drivers, old (but gold) GTX-1060 6gb.
Emerge --info here: https://pastebin.com/wFn6iQj7

ATM firefox is built with the following flags and options:

Code: Select all

(clang dbus gmp-autoupdate hwaccel lto openh264 pulseaudio system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp wayland -debug -eme-free -geckodriver -hardened -jack -pgo -screencast -selinux -sndio -wifi CPU_FLAGS_ARM="-neon" KERNEL="linux" L10N="ru -ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -ca-valencia -cak -cs -cy -de -dsb -el -en-CA -en-GB -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -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 -sco -si -sk -sl -son -sq -sr -sv -szl -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW")
The problem:
So the thing is that suddenly some extensions like Ublock origin and Duplicate Tab Closer just stopped working. Whenever I press on the icon, tiny vertical bar appears and nothing else happens.
Same error happen both in firefox and firefox-bin.

And here's what I get in the log:

Code: Select all

авг 25 00:57:49 pc kernel: WebExtensions[4923]: segfault at 0 ip 00007f36727c3399 sp 00007ffebe0d6f10 error 4 in libc.so.6[7f36726b6000+16f000]
авг 25 00:57:49 pc kernel: Code: ff e9 7f fd ff ff e8 96 66 fe ff 66 0f 1f 44 00 00 41 55 41 54 49 89 f5 49 89 d4 55 53 48 89 fb 48 89 cd 48 83 ec 08 48 8b 07 <48> 8b 38 48 85 ff 74 1f e8 4a 1f 00 00 48 89 45 00 48 85 c0 74 18
авг 25 00:57:49 pc systemd[1]: Started Process Core Dump (PID 4960/UID 0).
авг 25 00:57:49 pc systemd-coredump[4961]: Process 4923 (WebExtensions) of user 1000 dumped core.
авг 25 00:57:49 pc systemd[1]: systemd-coredump@38-4960-0.service: Deactivated successfully.
OR:

Code: Select all

авг 25 01:01:38 pc kernel: WebExtensions[6669]: segfault at 0 ip 00007f8deb431399 sp 00007ffc0ffd67f0 error 4 in libc.so.6[7f8deb324000+16f000]
авг 25 01:01:38 pc kernel: Code: ff e9 7f fd ff ff e8 96 66 fe ff 66 0f 1f 44 00 00 41 55 41 54 49 89 f5 49 89 d4 55 53 48 89 fb 48 89 cd 48 83 ec 08 48 8b 07 <48> 8b 38 48 85 ff 74 1f e8 4a 1f 00 00 48 89 45 00 48 85 c0 74 18
авг 25 01:01:38 pc systemd[1]: Started Process Core Dump (PID 6705/UID 0).
авг 25 01:01:39 pc systemd-coredump[6706]: Process 6669 (WebExtensions) of user 1000 dumped core.
авг 25 01:01:39 pc systemd[1]: systemd-coredump@39-6705-0.service: Deactivated successfully.
And also Firefox tab will crash if I'll try to move picture on the page (e.g. just click on some picture and move cursor while holding LMB) with this in the log:

Code: Select all

авг 25 01:02:15 pc kernel: Web Content[5422]: segfault at 0 ip 00007fcd6b0d8399 sp 00007ffd4b18b980 error 4 in libc.so.6[7fcd6afcb000+16f000]
авг 25 01:02:15 pc kernel: Code: ff e9 7f fd ff ff e8 96 66 fe ff 66 0f 1f 44 00 00 41 55 41 54 49 89 f5 49 89 d4 55 53 48 89 fb 48 89 cd 48 83 ec 08 48 8b 07 <48> 8b 38 48 85 ff 74 1f e8 4a 1f 00 00 48 89 45 00 48 85 c0 74 18
авг 25 01:02:15 pc systemd[1]: Started Process Core Dump (PID 7044/UID 0).
авг 25 01:02:15 pc systemd-coredump[7045]: Process 5422 (Web Content) of user 1000 dumped core.
авг 25 01:02:15 pc systemd[1]: systemd-coredump@41-7044-0.service: Deactivated successfully.
Many other extensions stopped working too (I tried some other adblockers), but some others still work just fine (e.g. Session Boss)

Judging by the logs, I'm inclined to blame glibc-2.34.
But, this issue appeared about about 1 week ago while glibc-2.34 was merged about 3 weeks ago. So for 2 weeks everything was fine and then suddenly broke? Kinda strange.
Anyway, one cannot simply downgrade glibc, so I can't try it with v2.33.

What I tried:
  1. Using firefox-bin. Same issue.
  2. Downgrading firefox-bin. Even worse - both 90.0.2 and 78.13.0 ESR get tab crashes immediately.
  3. Trying new profile, "refreshing" firefox etc. No luck.
  4. Removing ~/.mozilla folder. Didn't help.
  5. Downloading binary nightly build. Same thing.
  6. Rebuilding firefox and whole @world. Nope, didn't help.
  7. Rebuilding firefox without pgo. All the same.
  8. Downgrading nvidia-drivers to 460.91. No luck so far.
  9. Run memtest: test completed with 0 errors.
Probably missing something obvious here. Any advices?

P.S.
It took me some time to get through "Error in posting"
In this case it was triggered by angled arrow symbol - this one https://www.compart.com/en/unicode/U+1F855 in the log's fragments
Last edited by pickd.mask on Sat Sep 04, 2021 11:33 pm, edited 1 time in total.
Top
CooSee
Veteran
Veteran
User avatar
Posts: 1617
Joined: Sat Nov 20, 2004 10:38 pm
Location: right here !

  • Quote

Post by CooSee » Tue Aug 24, 2021 11:24 pm

Judging by the logs, I'm inclined to blame glibc-2.34.
yep.

i had a similar problems with chromium - ah snap ... error.

have you tried clean mozilla start?

or only chance maybe to start mozilla with:

Code: Select all

MOZ_DISABLE_CONTENT_SANDBOX=1
or

Code: Select all

--no-sandbox option for Chrome
for now.
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Top
pickd.mask
n00b
n00b
Posts: 28
Joined: Tue Aug 02, 2011 8:16 am

  • Quote

Post by pickd.mask » Tue Aug 24, 2021 11:41 pm

Thanks for your reply.
CooSee wrote: have you tried clean mozilla start?
Not sure I understand it right.
I tried creating new profile, also tried removing whole ~/.mozilla folder and start firefox. Does this qualify as "clean"? :)
CooSee wrote: or only chance maybe to start mozilla with:

Code: Select all

MOZ_DISABLE_CONTENT_SANDBOX=1
or

Code: Select all

--no-sandbox option for Chrome
for now.
That worked for both chrome and firefox, thanks a lot :)
Top
CooSee
Veteran
Veteran
User avatar
Posts: 1617
Joined: Sat Nov 20, 2004 10:38 pm
Location: right here !

  • Quote

Post by CooSee » Tue Aug 24, 2021 11:50 pm

you're welcome :D

this is odd, because it seems resolved:

https://bugs.gentoo.org/803950

try with another user, after a restart of your system.
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Top
pickd.mask
n00b
n00b
Posts: 28
Joined: Tue Aug 02, 2011 8:16 am

  • Quote

Post by pickd.mask » Wed Aug 25, 2021 1:06 am

Using another user and fresh profile doesn't help, still same issue.

And the bug, as I understand, is only related to merging FF. And I remember that time when I had it, but that was fixed in upstream and for some time everything was fine. Until few days ago I found out that the whole "internet" changed for me: tons of ads everywhere :D -- because Ublock Origin stopped working.
Probably FF 92 will fix it for me, who knows.
Top
CooSee
Veteran
Veteran
User avatar
Posts: 1617
Joined: Sat Nov 20, 2004 10:38 pm
Location: right here !

  • Quote

Post by CooSee » Thu Aug 26, 2021 4:39 pm

tons of ads everywhere
you should search for Ultimate.Hosts.Blacklist on github.

it'll change the speed of browsing profoundly 8)
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Top
pickd.mask
n00b
n00b
Posts: 28
Joined: Tue Aug 02, 2011 8:16 am

  • Quote

Post by pickd.mask » Sat Sep 04, 2021 11:33 pm

CooSee wrote:
tons of ads everywhere
you should search for Ultimate.Hosts.Blacklist on github.

it'll change the speed of browsing profoundly 8)
Thanks, not needed once I got UBlock Origin working with the solution you proposed :-)
Top
devsk
Advocate
Advocate
User avatar
Posts: 3039
Joined: Fri Oct 24, 2003 1:16 am
Location: Bay Area, CA

  • Quote

Post by devsk » Thu Nov 25, 2021 5:13 am

So, I struggled with this one as well. Although, I could not identify the exact extension that was failing because the behavior was very odd.

Now, the question is this: Is disabling the sandbox allowing the failing extension to break some security protocols? What's the risk with running firefox with MOZ_DISABLE_CONTENT_SANDBOX=1?

Is it related to glibc-2.34? Did anyone try lower versions of glibc to confirm?
Top
Hu
Administrator
Administrator
Posts: 24398
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Thu Nov 25, 2021 5:19 pm

Assuming the sandbox is the one I think it is, then it is a system call filter that automatically kills the calling process for making a disallowed system call. The theory is that the caller has an exhaustive list of all the calls it will make when operating "properly" and the disallowed calls would only occur if a security bug allowed unauthorized code to make system calls of its choosing. In that case, disabling the sandbox is much like driving around without wearing a seat belt: as long as you don't actually crash the car (or in the Firefox case, have a security bug running unauthorized code), it's fine. If you do crash the car, the seat belt would have greatly reduced the damage you suffer in the crash. The sandbox would cause the unauthorized code to die immediately, rather than running arbitrary code to read files, make network calls, etc. Based on that, if you were using the browser in a context where you had a high level of trust in the content it is processing (say, reading HTML documents you downloaded a year ago, and keep for local reference, such as things in /usr/share/doc), I wouldn't worry much about disabling the sandbox. On the other hand, if you're using the browser in a hostile environment, like browsing the open web with Javascript enabled, I would not disable the sandbox.

This could well be related to glibc-2.34, but it's not a glibc bug. As above, the sandbox has a theoretically exhaustive list of system calls. The new glibc uses a new system call that the old sandbox doesn't know about, so the sandbox panics and kills the process. As far as I know, the glibc project never documented that they would seek the permission and cooperation of every ad-hoc sandbox project before adding new system calls to regular operation, so designing a sandbox that requires such cooperation is inherently flawed. To fix this, you need to add the new system call(s) to the sandbox allow list. For extra fun, I'm not sure if Firefox actually has a way to do that without patching its source and recompiling. Nor do I know where in the Firefox source you would go to make such a patch, if you wished to do so. Nor do I know which system calls you need to put on the allow list. :)
Top
gruftie
Apprentice
Apprentice
Posts: 184
Joined: Tue Sep 24, 2002 9:26 pm

  • Quote

Post by gruftie » Mon Nov 29, 2021 4:43 pm

CooSee wrote:
Judging by the logs, I'm inclined to blame glibc-2.34.
yep.

i had a similar problems with chromium - ah snap ... error.

have you tried clean mozilla start?

or only chance maybe to start mozilla with:

Code: Select all

MOZ_DISABLE_CONTENT_SANDBOX=1
or

Code: Select all

--no-sandbox option for Chrome
for now.
I had the same problem as the original poster and this helped, thank you!
Instead of disabling the sandbox completely, for me it works lowering the value for "security.sandbox.content.level" from 4 to 2 in about:config (found here) 8)
Top
pickd.mask
n00b
n00b
Posts: 28
Joined: Tue Aug 02, 2011 8:16 am

  • Quote

Post by pickd.mask » Mon Nov 29, 2021 9:03 pm

gruftie wrote: Instead of disabling the sandbox completely, for me it works lowering the value for "security.sandbox.content.level" from 4 to 2 in about:config (found here) 8)
Worked for me too, thanks :)
Top
devsk
Advocate
Advocate
User avatar
Posts: 3039
Joined: Fri Oct 24, 2003 1:16 am
Location: Bay Area, CA

  • Quote

Post by devsk » Mon Nov 29, 2021 11:37 pm

Something strange I can't explain...We got a glibc update today. On one system, I have the level set to 4 and it works. Made sure the env var is not set.

On another system, level has to be 2 for me to see umatrix drop down.

No idea what's going on!
Top
devsk
Advocate
Advocate
User avatar
Posts: 3039
Joined: Fri Oct 24, 2003 1:16 am
Location: Bay Area, CA

  • Quote

Post by devsk » Wed Dec 01, 2021 7:51 pm

Could the clone3 syscall be involved? https://bugs.gentoo.org/827386
Top
sam_
Developer
Developer
User avatar
Posts: 2816
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Thu Dec 02, 2021 12:36 am

devsk wrote:Could the clone3 syscall be involved? https://bugs.gentoo.org/827386
Yeah, I'd be interested in learning if -clone3 on glibc helps anyone experiencing this issue (please update bug 803950 if so).
Top
pickd.mask
n00b
n00b
Posts: 28
Joined: Tue Aug 02, 2011 8:16 am

  • Quote

Post by pickd.mask » Thu Dec 02, 2021 3:23 am

sam_ wrote: Yeah, I'd be interested in learning if -clone3 on glibc helps anyone experiencing this issue (please update bug 803950 if so).
Didn't help on my system.
I had glibc and then whole toolchain rebuilt with -clone3 useflag. Upon that I also rebuilt Firefox.
And it didn't change much, I still have same issue when not using two aforementioned workarounds.

However this glibc revision update along with discord-bin revision update fixed discord. Now it works, thanks to developers.
Top
devsk
Advocate
Advocate
User avatar
Posts: 3039
Joined: Fri Oct 24, 2003 1:16 am
Location: Bay Area, CA

This patch works to solve the issue with the FF extensions

  • Quote

Post by devsk » Sat Dec 04, 2021 2:30 am

patch available at https://bugs.gentoo.org/803950

Trying it in a little bit...

Update: This works!
Top
Havin_it
Veteran
Veteran
Posts: 1343
Joined: Sun Jul 17, 2005 10:26 am
Location: Edinburgh, UK
Contact:
Contact Havin_it
Website

  • Quote

Post by Havin_it » Thu Jan 13, 2022 5:22 pm

Well this gave me a fun 3/4 day of confusion and searching :evil:

Thank you @Hu for the really good digestible synopsis of the issue above.

I picked the option of rebuilding dev-libs/glib with USE="-fam" as it seems to have least impact on anything else; better that than putting a config in firefox or an envvar that I'll only forget about by the time the issue is resolved :roll:

Even when either firefox or glibc has this ironed out (I'm not quite sure whose job that really ought to be from reading the above), it sounds like a category of problem that could easily occur again down the line :(
Top
devsk
Advocate
Advocate
User avatar
Posts: 3039
Joined: Fri Oct 24, 2003 1:16 am
Location: Bay Area, CA

  • Quote

Post by devsk » Sun Feb 27, 2022 6:41 am

Looks like this is broken again with latest glibc and latest firefox-97.0.1. The patch does not seem to help anymore.
Top
Hu
Administrator
Administrator
Posts: 24398
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sun Feb 27, 2022 4:19 pm

In this context, what is the "latest" glibc? Latest stable (2.33), latest testing (2.34), latest no-keyword (2.35), or a -9999 ebuild? The patch was probably specific to the previous way in which the sandbox failed to account for new glibc syscalls. The latest glibc probably introduces use of yet another syscall that Firefox wrongly assumes will never be used. An strace of the dying process would likely tell us which syscall is causing problems this time.
Top
devsk
Advocate
Advocate
User avatar
Posts: 3039
Joined: Fri Oct 24, 2003 1:16 am
Location: Bay Area, CA

  • Quote

Post by devsk » Sun Feb 27, 2022 4:50 pm

I meant ~amd64, which is 2.34
Top
Havin_it
Veteran
Veteran
Posts: 1343
Joined: Sun Jul 17, 2005 10:26 am
Location: Edinburgh, UK
Contact:
Contact Havin_it
Website

  • Quote

Post by Havin_it » Mon Feb 28, 2022 1:49 am

For me the symptoms of breakage were different (tabs just not loading at all, instead of the more subtle breakages in bits of addon UIs) but the fix of rebuilding glib with USE="-fam" still resolves it.
Top
devsk
Advocate
Advocate
User avatar
Posts: 3039
Joined: Fri Oct 24, 2003 1:16 am
Location: Bay Area, CA

  • Quote

Post by devsk » Mon Feb 28, 2022 1:58 am

Havin_it wrote:For me the symptoms of breakage were different (tabs just not loading at all, instead of the more subtle breakages in bits of addon UIs) but the fix of rebuilding glib with USE="-fam" still resolves it.
Where is this documented? Do you have a link?

The original issue was glibc but you are talking about dev-libs/glib, not glibc.

My symptoms are same: tabs don't load at all.
Top
devsk
Advocate
Advocate
User avatar
Posts: 3039
Joined: Fri Oct 24, 2003 1:16 am
Location: Bay Area, CA

  • Quote

Post by devsk » Mon Feb 28, 2022 6:20 am

Found this bug report where glib with -fam is mentioned: https://bugs.gentoo.org/828070
Top
Havin_it
Veteran
Veteran
Posts: 1343
Joined: Sun Jul 17, 2005 10:26 am
Location: Edinburgh, UK
Contact:
Contact Havin_it
Website

  • Quote

Post by Havin_it » Mon Feb 28, 2022 11:25 pm

Yes that's it, sorry I thought it was in the bug you linked above, but forgot it was that other one that followed on from it. Glad to see you found it :)
Top
Post Reply

24 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic