mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6913] torbrowser-launcher: crash when uploading files (glycin) #3415
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#3415
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @S0AndS0 on GitHub (Sep 29, 2025).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6913
Description
Browser crashes when trying to upload file/image to website, such as T/Xwitter
Steps to Reproduce
Steps to reproduce the behavior
LC_ALL=C firejail --profile=/etc/firejail/torbrowser-launcher.profile .local/share/torbrowser/tbb/x86_64/tor-browser/Browser/start-tor-browser(LC_ALL=Cto get a consistentoutput in English that can be understood by everybody)
Scroll down to '....'ERROR... or lack there of, it crashes without any error reported to STD{OUT,ERR}Expected behavior
KDE's select file window to pop for selecting a file to upload
Actual behavior
Crashes all windows/tabs of
torbrowserwithout error being reportedBehavior without a profile
KDE's select file window to pops for selecting a file to upload
Additional context
This is relatively recent, some-when between 2025-09-18 through 2025-09-27 something about KDE and/or Firejail and/or Tor Browser ain't playing nice.
Environment
firejail --version): 0.9.76If you use a development version of firejail, also the commit from which it was compiled (git rev-parse HEAD):Checklist
/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.--profile=PROFILENAMEto set the right profile. (Only relevant for AppImages)Log
Output of
LC_ALL=C firejail /path/to/programOutput of
LC_ALL=C firejail --debug /path/to/programProfiles currently in use
> `/etc/firejail/torbrowser-launcher.profile`@Blourvim commented on GitHub (Sep 29, 2025):
firejail version 0.9.76
Mozilla Firefox 143.0.1
KDE plasma
arch linux 6.16.8-arch3-1
When trying to upload attachment same issue happens on vanilla firefox FYI
Sorry for no logs, will continue testing
@Blourvim commented on GitHub (Sep 29, 2025):
@S0AndS0 Could you run firefox via the terminal, replicate the issue then paste the logs here
I think I am having the same problem, got in the zone would love to find a solution
@Friskygote commented on GitHub (Sep 29, 2025):
Have same/similar issue with Firefox on Arch after updating yesterday, to me it seems like issue with icons for built in filepicker maybe? Window icon for closing, minimizing etc. no longer show up either.
If needed I could provide full log with --debug, however I'd rather avoid it. Here is the output that gets printed when Firefox crashes while showing the file picker window (happens when uploading, downloading):
@S0AndS0 commented on GitHub (Sep 29, 2025):
@Blourvim gonna be a bit for me to replicate via
firefoxbut logs oftorbrowser, as unhelpful as they may be, are provided in OP x-)@Friskygote I can confirm similar errors be popping for
thunderbirdtoo!But adding
whitlist/noblackliststuff to local profile ain't resulting in joy;... So I'm inclined to point fingers of blame at KDE.
@Antiz96 commented on GitHub (Sep 29, 2025):
Can confirm that most things (if not anything) that has to do with the download folder in both firefox and thunderbird (e.g. upload a file, save an image or an attachment, etc...) results in a crash, probably since the latest firefox/thunderbird update. I also confirm that the icon for "closing, maximizing, minimizing" are invisible too now.
I'm happy to provide more info if needed or test any patches if it helps :)
@kmk3 commented on GitHub (Sep 29, 2025):
Since the error seems very similar, closing as a duplicate of:
If the problem is actually caused by something else, please clarify.
@S0AndS0 commented on GitHub (Sep 29, 2025):
@kmk3 Thanks! I tried the profile suggestions from
myrslintwithinthunderbird.localand that seems to allow file upload/picker to pop 🎉If I don't report back with an update, then it may be safe to assume those profile modifications to work with Tor too :-)Edit 2025-09-29 20:41 -- Nope no joy with Tor Browser
Edit 2025-10-02 21:10 UTC
Seems the
"Unable to create user data directory"warning can be ignored, here be some logs from a non-firejail Tor execution that's been fine for a few hours;@ferreum commented on GitHub (Oct 6, 2025):
torbrowser also required
netlinkprotocol for me. With this intorbrowser-launcher.localthe open/save dialog does not crash the browser any more:whitelist /usr/share/glycin-loadersis not needed because the it apparently ships its own version of that in.localFor posterity: I found this by attaching
sudo strace -p $firefoxPid -s 2048and making the browser crash by pressingctrl+s(open a save dialog). Scanning the strace output, directly before the crash I found an error log with a longbwrapcommand. I ran that command manually in the same torbrowser-launcher firejail profile, which printedbwrap: loopback: Failed to create NETLINK_ROUTE socket: Operation not supportedwhich points to the netlink protocol. Note I used strace because torbrowser seems to redirect its own stdout/stderr to /dev/null and I couldn't find a quick way to prevent that. Edit: I see runningstart-tor-browserwith--verboseas mentioned above would have worked here, so better do that than use strace.@S0AndS0 commented on GitHub (Oct 6, 2025):
Hmm, seems even with those configs it still be crashing on Arch Linux for me;
... but the
Could not spawn"bwrap" "--unshare-all"bits are consistent with whatstrace` be leading us towards 🤔@ferreum commented on GitHub (Oct 7, 2025):
The fact it says
Permission denied (os error 13)indicates there's some other permission issue going on.If the issue is running
bwrapitself, you can easily see that by checkingfirejail --ls=$torbrowserFirejailPid /bin/bwrap. If it says "cannot access /bin/bwrap", it may still be blacklisted by another rule.Assuming it's accessible, try to run the
bwrapcommand in the same firejail profile. BasicallyThen check if there's any better indication for what's wrong. For me where the crash is fixed, manually running bwrap like this results in
bwrap: Can't read seccomp data: Bad file descriptor@S0AndS0 commented on GitHub (Oct 7, 2025):
Woot, totally works now 🎉 ya was right and I was wrong!
For any future folks that are doing the questionable thing of using keepassxc with Tor, here be the
torbrowser-launcher.localfile that's functionally merged various modifications;@ipaqmaster commented on GitHub (Nov 20, 2025):
Thanks
Fixes
xfce4-screenshooterfor the most recent firejail update I installed, which restored its symlink to firejail.