Ticket #4263 (closed defect: invalid)

Opened 3 years ago

Last modified 3 years ago

mc hung on changing directory

Reported by: michaelst Owned by:
Priority: major Milestone:
Component: mc-core Version: 4.8.7
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

Sometimes mc hung when I'm trying to change the directory.
When I run strace I get:

sudo strace -p 38532

strace: Process 38532 attached
select(7, [4 6], NULL, NULL, NULL

Nothing else.

When I run lsof:

sudo lsof -p 38532

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
mc 38532 michaelst cwd DIR 0,41 4096 67176759 /tools/runtime/local (10.37.22.10:/vol/tools)
mc 38532 michaelst rtd DIR 253,0 4096 2 /
mc 38532 michaelst txt REG 253,0 1138768 450604 /usr/bin/mc
mc 38532 michaelst mem REG 253,0 31408 416387 /usr/lib64/libnss_dns-2.17.so
mc 38532 michaelst mem REG 253,0 115848 416381 /usr/lib64/libnsl-2.17.so
mc 38532 michaelst mem REG 253,0 56656 416393 /usr/lib64/libnss_nis-2.17.so
mc 38532 michaelst mem REG 253,0 61624 416389 /usr/lib64/libnss_files-2.17.so
mc 38532 michaelst mem REG 253,0 106075056 552609 /usr/lib/locale/locale-archive
mc 38532 michaelst mem REG 253,0 155784 416844 /usr/lib64/libselinux.so.1
mc 38532 michaelst mem REG 253,0 105824 416399 /usr/lib64/libresolv-2.17.so
mc 38532 michaelst mem REG 253,0 15688 416925 /usr/lib64/libkeyutils.so.1.5
mc 38532 michaelst mem REG 253,0 67104 417265 /usr/lib64/libkrb5support.so.0.1
mc 38532 michaelst mem REG 253,0 210784 417257 /usr/lib64/libk5crypto.so.3.1
mc 38532 michaelst mem REG 253,0 15920 416718 /usr/lib64/libcom_err.so.2.1
mc 38532 michaelst mem REG 253,0 967784 417263 /usr/lib64/libkrb5.so.3.3
mc 38532 michaelst mem REG 253,0 320784 417253 /usr/lib64/libgssapi_krb5.so.2.2
mc 38532 michaelst mem REG 253,0 402384 416835 /usr/lib64/libpcre.so.1.2.0
mc 38532 michaelst mem REG 253,0 90248 416677 /usr/lib64/libz.so.1.2.7
mc 38532 michaelst mem REG 253,0 2521144 417285 /usr/lib64/libcrypto.so.1.0.2k
mc 38532 michaelst mem REG 253,0 470376 417287 /usr/lib64/libssl.so.1.0.2k
mc 38532 michaelst mem REG 253,0 1137024 416379 /usr/lib64/libm-2.17.so
mc 38532 michaelst mem REG 253,0 19288 416377 /usr/lib64/libdl-2.17.so
mc 38532 michaelst mem REG 253,0 2156160 416371 /usr/lib64/libc-2.17.so
mc 38532 michaelst mem REG 253,0 142232 416397 /usr/lib64/libpthread-2.17.so
mc 38532 michaelst mem REG 253,0 1156656 418209 /usr/lib64/libglib-2.0.so.0.5600.1
mc 38532 michaelst mem REG 253,0 15640 418211 /usr/lib64/libgmodule-2.0.so.0.5600.1
mc 38532 michaelst mem REG 253,0 186680 420879 /usr/lib64/libssh2.so.1.0.1
mc 38532 michaelst mem REG 253,0 27752 429188 /usr/lib64/libgpm.so.2.1.0
mc 38532 michaelst mem REG 253,0 1149256 421015 /usr/lib64/libslang.so.2.2.4
mc 38532 michaelst mem REG 253,0 163400 416322 /usr/lib64/ld-2.17.so
mc 38532 michaelst mem REG 253,0 26254 416675 /usr/lib64/gconv/gconv-modules.cache
mc 38532 michaelst 0u CHR 136,0 0t0 3 /dev/pts/0
mc 38532 michaelst 1u CHR 136,0 0t0 3 /dev/pts/0
mc 38532 michaelst 2u CHR 136,0 0t0 3 /dev/pts/0
mc 38532 michaelst 3u CHR 5,0 0t0 1036 /dev/tty
mc 38532 michaelst 4u CHR 5,2 0t0 10261 /dev/ptmx
mc 38532 michaelst 5u CHR 136,2 0t0 5 /dev/pts/2
mc 38532 michaelst 6u FIFO 253,2 0t0 2747138 /tmp/mc-michaelst/mc.pipe.38532 (deleted)
mc 38532 michaelst 7u FIFO 253,2 0t0 2747138 /tmp/mc-michaelst/mc.pipe.38532 (deleted)

It looks like it is waiting for the deleted pipe (I'm not sure why it was deleted).
I think mc should not hang in such cases.

mc -V

GNU Midnight Commander 4.8.7
Built with GLib 2.42.2
Using the S-Lang library with terminfo database
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
With internationalization support
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, sftpfs, fish, smbfs
Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;

Change History

comment:1 in reply to: ↑ description Changed 3 years ago by andrew_b

  • Status changed from new to closed
  • Version changed from master to 4.8.7
  • Resolution set to invalid
  • Milestone Future Releases deleted

Replying to michaelst:

mc -V

GNU Midnight Commander 4.8.7

Your mc-4.8.7 is too old. It was released at 2012-12-28. Recent mc is 4.8.26.

Note: See TracTickets for help on using tickets.