Ticket #2340 (closed defect: invalid)

Opened 14 years ago

Last modified 14 years ago

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

comment:1 Changed 14 years ago by livibetter

I found out it's about my bash prompt (in .bashrc). So this has nothing to do with mc. Sorry for this invalid report.

comment:2 Changed 14 years ago by slyfox

  • Status changed from new to closed
  • Resolution set to invalid

Thanks for the update. Closing then (I think you have enough privs to close your bugs too).

Note: See TracTickets for help on using tickets.