Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upunrelated changes are breaking qubes-gui-agent #2447
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Nov 22, 2016
Member
(The updated anon-ws-disable-stacked-tor doesn't work yet, but the bug I am reporting here is, that qubes-gui-agent shouldn't break easily.)
Actually anon-ws-disable-stacked-tor should work. (Does when installing it in AppVM and reloading environment variables from /etc/X11/Xsession.d/20torbrowser.) (Confused myself if also anon-shared-helper-scripts needs an update since this is supposed to become an important Whonix backport / stable upgrade.) Yet, I remain confused how that diff can break qubes-gui-agent.
Actually anon-ws-disable-stacked-tor should work. (Does when installing it in AppVM and reloading environment variables from |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Nov 22, 2016
Member
The following 3 issues might be regarded as follow-up bugs or bugs that can be possibly fixed?
sudo service qubes-gui-agent restart does not show any error, but it still does not work.
user@dom0 ~]$ qvm-run --pass-io anon-whonix-dev konsole
--> Starting Qubes GUId...
Connecting to VM's GUI agent: .exiting
ERROR(anon-whonix-dev): Cannot start qubes-guid!
sudo xl console anon-whonix-dev
login...
user@host:~$ konsole
[ 1789.953944] konsole[2157]: segfault at e0 ip 00007fb1da77eead sp 00007ffcd9ec0610 error 4 in libkdeui.so.5.14.2[7fb1da3f7000+461000]
Segmentation fault
|
The following 3 issues might be regarded as follow-up bugs or bugs that can be possibly fixed?
login...
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Anything interesting in X log (in the VM)? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Nov 22, 2016
Member
Partial /tmp/Xorg.0.log:
[ 5.918] (EE) AIGLX: reverting to software rendering
[ 5.919] (EE) AIGLX error: dlopen of /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so failed (/usr/lib/x86_64-linux-gnu/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
[ 5.919] (EE) GLX: could not load software renderer
[ 5.957] (EE) Failed to load module "evdev" (module does not exist, 0)
[ 5.957] (EE) No input driver matching `evdev'
[ 5.985] (EE) Server terminated successfully (0). Closing log file.
(Also just now sent the full to your by encrypted mail since I don't want to share all in public.)
|
Partial
(Also just now sent the full to your by encrypted mail since I don't want to share all in public.) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Nov 22, 2016
Member
It looks like anon-ws-disable-stacked-tor does change things related to X session. Namely /etc/X11/Xsession.d/20controlportfilt. I've tried to reproduce (successfully) and this is what I've found in ~user/.xsession-errors:
/usr/bin/xinit: connection to X server lost
waiting for X server to shut down (EE) Server terminated successfully (0). Closing log file.
ilt.sh: shopt: not found
Invalid config file: /etc/controlportfilt.d/*.conf
bash_n_exit_code: 127
bash_n_output:
bash: /etc/controlportfilt.d/*.conf: No such file or directory
|
It looks like
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Nov 22, 2016
Member
I guess the script expect to be running by bash, but it is sourced (not executed) by another script (that Xsession one) which is just /bin/sh.
|
I guess the script expect to be running by bash, but it is sourced (not executed) by another script (that Xsession one) which is just |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Nov 22, 2016
Member
Indeed, that's a bug. I'll work on that.
Looks like one issue in /etc/X11/Xsession.d (before qubes-gui-agent?) can disrput the whole qubes-gui-agent. Do you think this can be made more robust?
|
Indeed, that's a bug. I'll work on that. Looks like one issue in |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Nov 22, 2016
Member
The whole idea of /etc/X11/Xsession.d is to have some way to source scripts into session (to set env variables etc). If any of those scripts calls exit it will terminate the whole session. That's the price of sourcing vs executing.
So, to answer your question: don't call exit in /etc/X11/Xsession.d.
|
The whole idea of |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Nov 22, 2016
Member
Alright. So this bug is actually invalid, not a Qubes bug.
Thanks so much for your very quick and nice help, @marmarek!
|
Alright. So this bug is actually invalid, not a Qubes bug. Thanks so much for your very quick and nice help, @marmarek! |
adrelanos commentedNov 21, 2016
Qubes OS version (e.g.,
R3.1):R3.2 with Qubes testing repository
Affected TemplateVMs (e.g.,
fedora-23, if applicable):whonix-ws
Expected behavior:
qubes-gui-agent should not break.
Actual behavior:
qubes-gui-agent service fails to start.
Steps to reproduce the behavior:
Start whonix-ws TemplateVM. Enable developers repository or otherwise upgrade to
anon-ws-disable-stacked-torversion2.2-1.Then try starting anon-whonix which fails due to qubes-gui-agent service failing to start.
General notes:
I cannot make head or tail why that kind of diff...
git diff 2.0-1 2.2-1Could break qubes-gui-agent.
(The updated anon-ws-disable-stacked-tor doesn't work yet, but the bug I am reporting here is, that qubes-gui-agent shouldn't break easily.)