-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firefox "Zombie" Process on Gentoo no systemd #30
Comments
So is it related to Nvidia and D-Bus? Maybe try to disable filtering for D-Bus proxy. I won't be able to help you much. I don't have either Nvidia or Gentoo. |
Is there a configuration option to disable dbus filtering? |
No. Just disable it directly in the source file: bubblejail/bubblejail/bubblejail_instance.py Line 550 in edc3fdb
bubblejail/bubblejail/bubblejail_instance.py Line 572 in edc3fdb
|
Unfortunately this does not seem to help and debugging this seems like it will be quite involved. Feel free to close this if it is unsupported. On the other hand, bubblejail works on Gentoo for Steam (with direct rendering enabled), Lutris and Chromium. An ebuild is below for anyone that wants it: bubblejail-0.5.3.ebuild# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson
DESCRIPTION="Bubblejail"
HOMEPAGE="https://github.com/igo95862/bubblejail"
SRC_URI="https://github.com/igo95862/bubblejail/releases/download/${PV}/bubblejail-${PV}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64"
DEPEND="
dev-python/tomli
dev-python/tomli-w
dev-python/pyxdg
sys-libs/libseccomp[python]
sys-apps/bubblewrap
sys-apps/xdg-dbus-proxy
dev-util/desktop-file-utils
dev-python/PyQt5
"
RDEPEND="${DEPEND}"
BDEPEND="sys-devel/m4"
S="${WORKDIR}" |
You can continue debugging it. Use |
It seems it works if |
Can you do an grep on strace logs to see what was accessed from |
It seems to be /etc/nsswitch.conf. I guess most distros don't use it nowadays. |
Scratch that. Bubblejail works on fedora which also has that file. Maybe firefox is typically configured in a way that doesn't read it? |
What is the content of your |
nsswitch.conf
|
It seems that removing |
Very strange... |
I guess because systemd host names are unavailable? |
Most likely. Not sure if worked on systemd systems in first place. None of the systemd's D-Bus interfaces are passed in. I have a plan to just pass entire |
That sounds like the best approach. Things in |
Are you sure that |
No, the only reason I thought so was because of the above line from my configuration file. It seems like it may be non-systemd specific as described on the homepage. Although there does seem to be some confusion about its behaviour. And it seems that |
Weird. I will keep this issue opened until I managed to implement the |
Alternatively, adding the actual hostname to
also works. My best guess is that firefox does an dns query for the hostname (which is the same as the non-bubblejail hostname). On systemd systems it gets the correct address through systemd (maybe systemd-resolved) but otherwise sends a query somewhere (uncertain as to where) and gets blackholed. |
This sounds like this might just be a slightly-incorrectly configured system. Setting the hostname in Edit: After some testing, I'm not sure what the root problem actually is here, Firefox never does self-hostname resolving on my system (hosting a local web server and trying to connect to it doesn't work), but the browser itself works just fine with no special configuration. The only difference I can see is I have |
I agree that it does seem like misconfiguration although I have tried most configurations of |
It may be worth knowing that I have no dns daemons running on the machine like dnsmasq or systemd-resolved. |
I'm curious if either |
Unfortunately, I think it confuses Xorg's (default) authentication:
So I think I would have to set up the server for remote access. |
Oh yeah, that's right. |
Oh. I didn't think it was that easy. Setting the namespace hostname to 'localhost' does indeed work. I guess the best way to do this would be to set the hostname to the auto generated |
That sounds like it would just break it again, and if I had to guess, having to edit X11's access control list to make it work is probably why bubblejail doesn't already do that. |
True, I guess the proper solution would be to keep the system hostname. |
Well, I think I found the issue. If I install |
Small update on I wanted to have ability to override There is an option to use overlayfs for this but unfortunately bwrap currently does not support it: containers/bubblewrap#412 There is also an option to pass a read-only mount for every file or directory in |
I think I will remove the autogenerated hostnames because there is |
I pushed 156538b @sad-goldfish can you give it a try? |
Firefox works with the commit. However
Is there any reason to modify |
I think nss-myhostname is primarily at fault. If I understand correctly, the Gentoo nss-myhostname package is a decade-old pre-systemd version of nss-myhostname and probably not the one that's distributed with systemd. The correct way to fix this on the gentoo end is probably just to not use nss-myhostname as @gnusenpai says. So I think it's fair to say that this is resolved now. From a design perspective though, I'm not sure if it makes sense to replace |
I believe I had issues just passing the file on my machine. Plus I wanted to make the file configurable. |
I implemented the |
I have installed bubblejail 0.5.3 on Gentoo with Openrc (no systemd) with i3 (tried Gnome too), Dbus, pipewire and Nvidia proprietary drivers. If I run:
I get no output whatsoever and htop shows firefox as a zombie process inside the container. If I go into the configuration GUI and enable direct rendering then run it again, firefox again shows up as a zombie process and I get the following output:
Running chromium inside the same profile using
--debug-shell
works however. Running firefox with strace hangs around:With no further output. Firefox does work outside of the container and in Firejail.
The text was updated successfully, but these errors were encountered: