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

Full log


🔗 View this message in rfc822 format

MIME-Version: 1.0
X-Mailer: MIME-tools 5.509 (Entity 5.509)
X-Loop: owner@bugs.devuan.org
From: "Devuan bug Tracking System" <owner@bugs.devuan.org>
To: Michael Siegel <msi@malbolge.net>
Subject: bug#209 closed by Mark Hindley <mark@hindley.org.uk> (Fixed in
 Debian #810660)
Message-ID: <handler.209.D209.167415111921517.notifdone@bugs.devuan.org>
References: <Y8mEl8fSHAC93oa0@hindley.org.uk>
 <fce8085e-c24a-2280-50ef-16b098cf6b64@malbolge.net>
X-Devuan-PR-Message: they-closed 209
X-Devuan-PR-Package: bash
X-Devuan-PR-Keywords: debian
Reply-To: 209@bugs.devuan.org
Date: Thu, 19 Jan 2023 18:00:03 +0000
Content-Type: multipart/mixed; boundary="----------=_1674151203-21553-1"
[Message part 1 (text/plain, inline)]
This is an automatic notification regarding your bug report
which was filed against the bash package:

#209: ASCII: Default config in ~/.bash_logout crashes X server

It has been closed by Mark Hindley <mark@hindley.org.uk>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Mark Hindley <mark@hindley.org.uk> by
replying to this email.


-- 
209: https://bugs.devuan.org/cgi/bugreport.cgi?bug=209
Devuan Bug Tracking System
Contact owner@bugs.devuan.org with problems
[Message part 2 (message/rfc822, inline)]
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
[Message part 3 (message/rfc822, inline)]
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

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: Fri May 3 05:21:32 2024;