[Bug 1822184] Re: clear_console locks up video when X is running and you log out from a plain text console
Daniel van Vugt
daniel.van.vugt at canonical.com
Fri Mar 29 03:28:57 UTC 2019
** Bug watch added: Debian Bug tracker #866898
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=866898
** Also affects: xorg (Debian) via
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=866898
Importance: Unknown
Status: Unknown
** Bug watch added: Debian Bug tracker #810660
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=810660
** Also affects: xorg-server (Debian) via
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=810660
Importance: Unknown
Status: Unknown
** Bug watch added: gitlab.freedesktop.org/xorg/xserver/issues #492
https://gitlab.freedesktop.org/xorg/xserver/issues/492
** Also affects: xorg-server via
https://gitlab.freedesktop.org/xorg/xserver/issues/492
Importance: Unknown
Status: Unknown
** Also affects: xorg-server (Ubuntu)
Importance: Undecided
Status: New
** Changed in: bash (Ubuntu)
Status: Confirmed => Opinion
** Changed in: xorg-server (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/1822184
Title:
clear_console locks up video when X is running and you log out from a
plain text console
Status in X.Org X server:
Unknown
Status in bash package in Ubuntu:
Opinion
Status in xorg-server package in Ubuntu:
Confirmed
Status in xorg package in Debian:
Unknown
Status in xorg-server package in Debian:
Unknown
Bug description:
References:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=810660
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=866898
If X is running and you switch to a plain text console (ie ctrl-alt-f3), log in as a regular user, and then log out, the display switches back to the graphical login screen and locks up. The system is still functioning (can ssh in, etc) but the video output is frozen.
The underlying cause is:
https://gitlab.freedesktop.org/xorg/xserver/issues/492
However, the problem can at least be worked around by making
clear_console switch to tty 6 and back instead of switching to 1 and
back. This patch corrects the problem:
--- bash-4.4.18.orig/debian/clear_console.c 2019-03-28 12:09:02.415907787 -0400
+++ bash-4.4.18/debian/clear_console.c 2019-03-28 12:08:11.984366858 -0400
@@ -205,7 +205,7 @@
#if defined(__linux__)
num = vtstat.v_active;
#endif
- tmp_num = (num == 1 ? 2 : 1);
+ tmp_num = (num == 6 ? 5 : 6);
/* switch vt to clear the scrollback buffer */
if (ioctl(fd, VT_ACTIVATE, tmp_num))
To manage notifications about this bug go to:
https://bugs.launchpad.net/xorg-server/+bug/1822184/+subscriptions
More information about the foundations-bugs
mailing list