Bug#834270: xorg: logging out of shell on vt2 crashes X on vt1
On Sat, 13 Aug 2016 17:40:49 -0500 Rob Browning <rlb@defaultvalue.org>
wrote:
> With a machine running more or less current stretch the following steps
> will crash X on VT1 every time:
>
> - log in to VT1
> - launch X via startx (.xsession launches a few things, and then xmonad)
> - Ctrl-Alt-F2
> - log in as another user on VT2
> - launch X via startx (.xsession launches xmonad)
> - quit xmonad, which quits the xsession
> - exit the VT2 shell
>
> At that point, the X instance on VT1 will crash
[...]
Summing up a discussion on #devuan:
The crash on logout is caused by the clear_console program shipped with
Debian's package of Bash.
There is a default configuration in ~./bash_logout which will run
clear_console when Bash is a login shell:
# ~/.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
Commenting the last three lines (or just deleting the file) will prevent
this.
So, as far as I can see, this is not an xorg issue.
Reply to: