:: [devuan-dev] bug#209: marked as don…
Góra strony
Delete this message
Reply to this message
Autor: Devuan bug Tracking System
Data:  
Dla: Mark Hindley
Temat: [devuan-dev] bug#209: marked as done (ASCII: Default config in ~/.bash_logout crashes X server)
Your message dated Thu, 19 Jan 2023 17:57:43 +0000
with message-id <Y8mEl8fSHAC93oa0@???>
and subject line Fixed in Debian #810660
has caused the Devuan bug report #209,
regarding ASCII: Default config in ~/.bash_logout crashes X server
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@???
immediately.)


--
209: https://bugs.devuan.org/cgi/bugreport.cgi?bug=209
Devuan Bug Tracking System
Contact owner@??? with problems
Package: bash
Version: 4.4-5

When running X on VT1 and another user session (CLI) on VT2, logging out
on VT2, will either

  * crash the X server running on VT1, leaving you with a functional CLI
or
  * leave you with a blank screen and an apparently frozen-up system
    once you switch back to VT1


Running X with setuid root does not make any difference here. But if the
user on VT2 is root, X on VT1 will not crash when logging out on VT2.

In a discussion on Debian's IRC channel, I've been informed that this
problem is caused by the default configuration in ~/.bash_logout, which
looks like this:

# ~/.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 out the if statement (or just deleting the file) will cure
the problem.

The culprit here is clear_console. Running /usr/bin/clear_console from
VT2 in the scenario described above will result in the same problems you
get when logging out.

fsmithred has also found that this problem does not occur on D-Bus-free
installations (with the above config in place).


msi
Version: 5.0-3