Ticket #2340 (closed defect: invalid)
100% CPU and growing memory usage when enters directory "foo [bar]", hangs when exits
Reported by: | livibetter | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 4.7 |
Component: | mc-core | Version: | 4.7.0.3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | Votes for changeset: |
Description
If there is a directory name with square brackets, e.g. foo [bar]
mc will consume entire CPU and continuously use more and more memory if enter such directory. In htop, it looks like
/usr/bin/mc -X `- bash -rcfile .bashrc `- bash -rcfile .bashrc
The last one process is the one consumes CPU and memory. Normally, it should have one bash. Somehow, it is spawned when enter that directory.
If exits the directory to upper directory, mc will hang.
Killing that bash can resolve the hangup.
If run mc --nosubshell, the problem won't show.
$ mc --version GNU Midnight Commander 4.7.0.3 Virtual File System: tarfs, extfs, cpiofs, ftpfs, fish, undelfs With builtin Editor Using system-installed S-Lang library with terminfo database With subshell support as default With support for background operations With mouse support on xterm and Linux console With support for X11 events With internationalization support With multiple codepages support Data types: char 8 int 32 long 64 void * 64 off_t 64 ecs_char 8 $ bash --version GNU bash, version 4.0.37(2)-release (x86_64-pc-linux-gnu)
Change History
Note: See
TracTickets for help on using
tickets.
I found out it's about my bash prompt (in .bashrc). So this has nothing to do with mc. Sorry for this invalid report.