Bug#885318: systemd kills X or freezes it when logging out from last opened tty

Michael Biebl biebl at debian.org
Fri Dec 29 08:29:37 GMT 2017


Am 29.12.2017 um 08:55 schrieb Michael Biebl:

> Which shell do you use as user shell. If it is bash, how does
> ~/.bash_logout look like?
> 
> Is the problem gone if you edit ~/.bash_logout as suggested in
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=858073#10

Fwiw, my ~/.bash_logout looks like this:

> # ~/.bash_logout
> 
> clear

With that, I'm not able to reproduce the problem you described.

Afaics, this was changed in /etc/skel/.bash_logout and newly created
users now get:

> # ~/.bash_logout: executed by bash(1) when login shell exits.
> 
> # when leaving the console clear the screen to increase privacy
> 
> if [ "$SHLVL" = 1 ]; then
>     [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
> fi


So, the problem seems the change to /usr/bin/clear_console.

And surely enough, just running that command on tty2 freezes Xorg on
tty1. So, it seems /usr/bin/clear_console is either doing something
wrong, or something unexpected which Xorg does no properly cope with.

See also
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=810660
which was filed against bash but then reassigned to xserver-xorg-core.

I guess we should reassign this issue here as well, either to bash
(#858073) or xserver-xorg-core (#810660).
Both seem to be about the same issue.

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20171229/10db60b6/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list