Package: bash Version: 5.1-2+b1 Followup-For: Bug #806256 Hi.
This bug seems the same as "fixed" bugs #805605 and #810660, which are definitely not fixed yet. The freeze is caused by vt switch performed by 'clear_console', and the commited "fix" just changed vt (choosed for switch) from 1 and 2 to 5 and 6: @@ -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)) So, since this can't fix anything, the bug is easily reproducible: 1. Start X on vt 6. 2. Log in at any other vt. 3. Run '/usr/bin/clear_console' and X crashes/freezes. -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (990, 'testing'), (500, 'testing-security'), (40, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.10.0-6-amd64 (SMP w/16 CPU threads) Locale: LANG=en_US.utf8, LC_CTYPE=ru_RU.utf8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages bash depends on: ii base-files 11 ii debianutils 4.11.2 ii libc6 2.31-11 ii libtinfo6 6.2+20201114-2 Versions of packages bash recommends: ii bash-completion 1:2.11-2 Versions of packages bash suggests: pn bash-doc <none> -- no debconf information