Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mc freezes for 10 seconds, after which it opens with an empty PS1 (mc, tmux). #4568

Open
mc-butler opened this issue Aug 9, 2024 · 2 comments
Labels
area: core Issues not related to a specific subsystem prio: medium Has the potential to affect progress ver: 4.8.31 Reproducible in version 4.8.31

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/4568
Reporter krekhov (@iikrllx)
Keywords mc, tmux, subshell, freeze

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

Note

Original attachments:

  • a.png (raw) by krekhov (@iikrllx) on Aug 9, 2024 at 15:41 UTC
  • b.png (raw) by krekhov (@iikrllx) on Aug 9, 2024 at 15:41 UTC
@mc-butler
Copy link
Author

Changed by krekhov (@iikrllx) on Aug 9, 2024 at 15:41 UTC

@mc-butler
Copy link
Author

Changed by krekhov (@iikrllx) on Aug 9, 2024 at 15:41 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: core Issues not related to a specific subsystem prio: medium Has the potential to affect progress ver: 4.8.31 Reproducible in version 4.8.31
Development

No branches or pull requests

1 participant