-
-
Notifications
You must be signed in to change notification settings - Fork 393
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
new polkit listener causes segfault without system bus #2781
Comments
Doesn't crash here :( |
@matthiasclasen Doh. Will ask @dnohales to share some more details about reproducing. (Can we add -dbgsym for polkit? It might be that this Ubuntu has an old/buggy polkit.) |
Ok, I found something interesting, this is the test I did. Basically I ran this Docker container: FROM ubuntu:16.04
RUN apt-get update && \
apt-get dist-upgrade -y && \
apt-get install -y apt-transport-https \
curl \
software-properties-common && \
apt-get autoremove -y && \
apt-get clean
RUN add-apt-repository ppa:alexlarsson/flatpak && \
apt-get update && \
apt-get install -y flatpak && \
apt-get clean
RUN mkdir /code
COPY . /code
CMD ["/code/start.sh"] So, for the #!/bin/bash
flatpak remote-list But this raises a segfault: #!/bin/bash
faketty () {
script -qfec "$(printf "%q " "$@")"
}
faketty flatpak remote-list Running On the other hand, this runs ok: #!/bin/bash
faketty () {
script -qfec "$(printf "%q " "$@")"
}
mkdir -p /var/run/dbus
dbus-daemon --system
faketty flatpak remote-list So maybe this has something to do with interactive shells for some reason? I also tried with |
hmm. I tried
in my desktop, and it worked just fine (it told me that it couldn't get a connection to the system bus) Would be good to get a stacktrace with polkit symbols. |
|
Not clear whats going on here. The only idea I have is that you might be missing this patch: https://gitlab.freedesktop.org/polkit/polkit/commit/542c6ec832919df6a74e16aba574adaeebe35e08 |
@dnohales thanks a lot! |
#2997 has been merged now. |
The missing polkit patch was commit 59f2d96ce3ac63173669f299a9453a7bf5e70a70 from 0.108. I attached a copy to https://bugs.debian.org/923046. |
We use the Ubuntu PPAs on some Endless build clusters, running flatpak inside docker containers to do some app/content build tasks. Some jobs run as root, some run as the user, but neither used the system helper as the containers had no system bus at all. Since upgrading to the new CLI code in 1.3.0, these jobs all segfault because it seems that in anticipation of using the system helper, the polkit listener is set up, and libpolkit is not safe in the case there is no system bus:
The text was updated successfully, but these errors were encountered: