Devuan bug report logs - #209
ASCII: Default config in ~/.bash_logout crashes X server

version graph

Package: bash; Maintainer for bash is (unknown); Source for bash is src:bash.

Reported by: Michael Siegel <msi@malbolge.net>

Date: Sun, 13 May 2018 22:03:01 UTC

Severity: normal

Tags: debian

Fixed in version 5.0-3

Done: Mark Hindley <mark@hindley.org.uk>

Forwarded to https://bugs.debian.org/810660

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to devuan-bugs@lists.dyne.org, owner@bugs.devuan.org:
bug#209; Package bash. (full text, mbox, link).


Acknowledgement sent to Michael Siegel <msi@malbolge.net>:
New bug report received and forwarded. Copy sent to owner@bugs.devuan.org. (full text, mbox, link).


Message #5 received at submit@bugs.devuan.org (full text, mbox, reply):

From: Michael Siegel <msi@malbolge.net>
To: submit@bugs.devuan.org
Subject: ASCII: Default config in ~/.bash_logout crashes X server
Date: Sun, 13 May 2018 23:42:09 +0200
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


Information forwarded to devuan-bugs@lists.dyne.org, owner@bugs.devuan.org:
bug#209; Package bash. (full text, mbox, link).


Acknowledgement sent to Michael Siegel <msi@malbolge.net>:
Extra info received and forwarded to list. Copy sent to owner@bugs.devuan.org. (full text, mbox, link).


Message #10 received at 209@bugs.devuan.org (full text, mbox, reply):

From: Michael Siegel <msi@malbolge.net>
To: 209@bugs.devuan.org
Subject: Debian changelog for Bash in Stretch
Date: Mon, 14 May 2018 17:03:21 +0200
The Debian changelog for the package of Bash in Stretch includes:

  bash (4.4-3) unstable; urgency=medium

    * Apply upstream patches 006 - 007.
    * clear_console: Securely erase the current console. Closes:
      #845177.
    * Mark locales and time build dependencies with <!nocheck>.
      Closes: #838201.
    * Don't configure with --with-curses. Closes: #794588.

   -- Matthias Klose <doko@debian.org>  Fri, 20 Jan 2017 11:52:59 +0100


msi


Added tag(s) debian. Request was from Mark Hindley <mark@hindley.org.uk> to control@bugs.devuan.org. (Thu, 19 Jan 2023 17:44:02 GMT) (full text, mbox, link).


Set bug forwarded-to-address to 'https://bugs.debian.org/810660'. Request was from Mark Hindley <mark@hindley.org.uk> to control@bugs.devuan.org. (Thu, 19 Jan 2023 17:44:02 GMT) (full text, mbox, link).


Reply sent to Mark Hindley <mark@hindley.org.uk>:
You have taken responsibility. (Thu, 19 Jan 2023 18:00:01 GMT) (full text, mbox, link).


Notification sent to Michael Siegel <msi@malbolge.net>:
bug acknowledged by developer. (Thu, 19 Jan 2023 18:00:03 GMT) (full text, mbox, link).


Message #19 received at 209-done@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: 209-done@bugs.devuan.org
Subject: Fixed in Debian #810660
Date: Thu, 19 Jan 2023 17:57:43 +0000
Version: 5.0-3

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Thu Mar 28 08:51:47 2024;