Ticket #4568 (new defect)
Opened 5 months ago
mc freezes for 10 seconds, after which it opens with an empty PS1 (mc, tmux).
Reported by: | krekhov | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | Future Releases |
Component: | mc-core | Version: | 4.8.31 |
Keywords: | mc, tmux, subshell, freeze | Cc: | |
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description
I discovered strange behavior of mc after exiting the tmux session. I checked this bug on Manjaro and Debian, package versions are listed below. The point is that mc freezes for 10 seconds when opened, then opens without PS1, only the '$' symbol is visible in the mc prompt and if return to tmux, in session 0 you can see the 'Bad file descriptor' errors (see 'b.png' screenshot).
--- Actions
-> install mc and tmux latest versions
$ sudo useradd -m -s /bin/bash tester $ sudo passwd tester $ sudo echo "[ -z \"\$TMUX\" ] && tmux" >> /home/tester/.bashrc $ su tester $ mc
mc opens well, PS1 is present.
-> exit from mc
-> exit from tmux
$ mc
or
$ mc -U
10 seconds wait, then PS1 will be empty. I expected that mc would open immediately and PS1 would be present there (see 'a.png' screenshot).
$ sudo mc
mc opens well, PS1 is present.
$ mc -u
mc opens well, PS1 is empty (that's how it should be, because '--nosubshell')
-> exit from mc
$ tmux
-> ctrl + b + s
-> select session 0 from the list
-> there will be errors (see 'b.png' screenshot)
--- Versions
-- Manjaro
$ lsb_release -a
LSB Version: n/a
Distributor ID: Manjaro
Description: Manjaro Linux
Release: 24.0.6
Codename: Wynsdey
$ pacman -Qi mc
Version : 4.8.31-3
Description : A file manager that emulates Norton Commander
Architecture : x86_64
...
$ pacman -Qi tmux
Name : tmux
Version : 3.4-10
Description : Terminal multiplexer
Architecture : x86_64
...
-- Debian
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
$ dpkg -l | grep -E 'tmux|mc'
ii mc 3:4.8.31-1 amd64 Midnight Commander - a powerful file manager
ii mc-data 3:4.8.31-1 all Midnight Commander - a powerful file manager -- data files
ii tmux 3.4-7 amd64 terminal multiplexer