Ticket #4480 (new defect)

Opened 10 months ago

Last modified 10 months ago

MC hungs for 1-2 second when open folder plus side-effects

Reported by: Bishop Owned by:
Priority: minor Milestone: Future Releases
Component: mc-core Version: 4.8.29
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description (last modified by zaytsev) (diff)

When i try enter one of folowing folders

  /Home/Incoming/Anime/Wait for Store/[2021Q3] Otome Game no Hametsu Flag shika Nai Akuyaku Reijou ni Tensei shiteshimatta X [++]
  /Home/Incoming/Anime/Wait for Store/[2021Q4] Shin no Nakama ja Nai to Yuusha no Party wo Oidasareta node, Henkyou de Slow Life suru Koto ni Shimashita [++]

MC hungs for 1-2 seconds. After it if i try quit MC via F10 i got "The shell is still active" warning. If i switch to shell (Ctrl+O) i see clean shell. But if i press Enter i see those command

cd "printf '%b' '\0057Home\0057Incoming\0057Anime\0057Wait\0040for\0040Store\0057\01332021Q3\0135\0040Otome\0040Game\0040no\0040Hametsu\0040Flag\0040shika\0040Nai\0040Akuyaku\0040Reijou\0040ni\0040Tensei\0040shiteshimatta\0040X\0040\0133\0053\0053\0135'"

I use Oracle Solaris if this is matter. Bug also exist in 4.8.28.

Attachments

profile (4.4 KB) - added by Bishop 10 months ago.
/etc/profile that lead to bug

Change History

comment:1 Changed 10 months ago by zaytsev

Is this some kind of remote filesystem, or it's just a "normal" folder on your filesystem? What shell are you using? It seems that because of some delays the directories get desynchronised between mc and subshell.

comment:2 Changed 10 months ago by Bishop

Normal folder with 12 files. If i change its name its work fine. So, i think, only reason can be in this full path (because if i move it in another place its again works fine).

I use bash.

comment:3 Changed 10 months ago by zaytsev

  • Description modified (diff)

comment:4 Changed 10 months ago by zaytsev

This is weird. I did (on Ubuntu Linux)

mkdir -p "Home/Incoming/Anime/Wait for Store/[2021Q3] Otome Game no Hametsu Flag shika Nai Akuyaku Reijou ni Tensei shiteshimatta X [++]"

and can walk without any problems. Can you make a reproducer?

Changed 10 months ago by Bishop

/etc/profile that lead to bug

comment:5 Changed 10 months ago by Bishop

1) In your cmd you forgot leading "/" in path.
2) I check problem on Alpine Linux 3.17 and it is not exist.
3) If i change shell type to sh problem is gone.
4) And if i complitly disable my "profile" and "bashrc" config files - problem are gone.

OK. Looks like a problem in profile file (now, for tests, bashrc is justs moved out). So i find point:
if "/etc/profile" is empty - all works;
if "/etc/profile" have minimal text - all works, but...
i can`t undestand bug exist conditions, because file that i attach dont work (and yes, comment strings in it is source of problem too, because if i remove them - all start works).

The only one idea i have - problem connected with time that processing of "/etc/profile" takes. And timeout is realy very very small (some ms, or even us).

comment:6 Changed 10 months ago by Bishop

MC 4.8.29 hungs for more time (~2s) that 4.8.28 (~0.5s).
mc -V provides:

GNU Midnight Commander 4.8.29
Built with GLib 2.66.7
Built with S-Lang 2.3.3 with terminfo database
Built with libssh2 1.9.0
With builtin Editor
With subshell support as default
With mouse support on xterm
With internationalization support
With multiple codepages support
Virtual File Systems:
 cpiofs, tarfs, sfs, extfs, sftpfs
Data types:
 char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;
Note: See TracTickets for help on using tickets.