[Bug 896500] New: Midnight Commander hangs in console command when opening .zip with password
https://bugzilla.novell.com/show_bug.cgi?id=896500 https://bugzilla.novell.com/show_bug.cgi?id=896500#c0 Summary: Midnight Commander hangs in console command when opening .zip with password Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Major Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mstehno@suse.com QAContact: qa-bugs@suse.de Found By: L3 Blocker: --- Created an attachment (id=606190) --> (http://bugzilla.novell.com/attachment.cgi?id=606190) example .zip file with tar inside secured by password: emc Hello, during testing tar I got file (attached here) to test some functionality on. That file is packed by zip and secured by password. When you open this .zip in mc (like normal directory) you see the tar inside, but when trying to open the .tar mc stop responding. It's because unzip waits for password (as I gues) thus no timeout and mc not responding. It's possible only to kill it and even after mc shows error message from not able to open .zip file, mc kind of hangs and need to be killed too as the sh command he originally triggered. See logs: mstehno@test:~/qa/test-tmp> ll total 388 -rw-r--r-- 1 mstehno users 386157 Aug 25 17:55 bug-881863_password.zip -rw-r--r-- 1 mstehno users 3166 Aug 31 2012 ini.opensuse.user -rw-r--r-- 1 mstehno users 2799 Sep 12 14:10 ini.sles-11-sp3-x86_64.root mstehno@test:~/qa/test-tmp> mstehno@test:~/qa/test-tmp> unzip -l bug-881863_password.zip Archive: bug-881863_password.zip Length Date Time Name --------- ---------- ----- ---- 542720 2014-05-08 14:45 batchFile2444939471242625271.tar --------- ------- 542720 1 file mstehno@test:~/qa/test-tmp> mstehno@test:~/qa/test-tmp> ps aux | grep mc mstehno 15249 0.0 0.0 45192 5156 pts/3 S+ 17:14 0:00 /usr/bin/mc -P /tmp/mc-mstehno/mc.pwd.5462 mstehno 15277 0.1 0.0 31820 6920 pts/3 S+ 17:14 0:00 /usr/bin/perl -w /usr/lib/mc/extfs.d/uzip copyout /home/mstehno/qa/test-tmp/bug-881863_password.zip batchFile2444939471242625271.tar /tmp/mc-mstehno/extfs7KRJMXbatchFile2444939471242625271.tar mstehno 15279 0.0 0.0 13084 1468 pts/3 S+ 17:14 0:00 sh -c /usr/bin/unzip -p \/home\/mstehno\/qa\/test\-tmp\/bug\-881863_password\.zip batchFile2444939471242625271\.tar > \/tmp\/mc\-mstehno\/extfs7KRJMXbatchFile2444939471242625271\.tar mstehno 15282 0.0 0.0 10516 928 pts/2 S+ 17:14 0:00 grep --color=auto mc mstehno@test:~/qa/test-tmp> mstehno@test:~/qa/test-tmp> mstehno@test:~/qa/test-tmp> rpm -q mc mc-4.8.10-2.5.1.x86_64 mstehno@test:~/qa/test-tmp> zypper info mc Loading repository data... Reading installed packages... Information for package mc: --------------------------- Repository: openSUSE-13.1-Update Name: mc Version: 4.8.10-2.5.1 Arch: x86_64 Vendor: openSUSE Installed: Yes Status: up-to-date Installed Size: 2.4 MiB Summary: Midnight Commander Description: GNU Midnight Commander (also referred to as MC) is a user shell much like the (in)famous Norton Commander with text-mode full-screen interface. It can be run on the OS console, in xterm and other terminal emulators. GNU Midnight Commander allows you to manage files while making most of your screen and giving you a clear representation of the filesystem, yet it's simple enough to be run over a telnet or ssh session. mstehno@test:~/qa/test-tmp> uname -a ; cat /etc/*release Linux test 3.11.10-21-desktop #1 SMP PREEMPT Mon Jul 21 15:28:46 UTC 2014 (9a9565d) x86_64 x86_64 x86_64 GNU/Linux LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64" NAME=openSUSE VERSION="13.1 (Bottle)" VERSION_ID="13.1" PRETTY_NAME="openSUSE 13.1 (Bottle) (x86_64)" ID=opensuse ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:opensuse:13.1" BUG_REPORT_URL="https://bugs.opensuse.org" HOME_URL="https://opensuse.org/" ID_LIKE="suse" openSUSE 13.1 (x86_64) VERSION = 13.1 CODENAME = Bottle # /etc/SuSE-release is deprecated and will be removed in the future, use /etc/os-release instead mstehno@test:~/qa/test-tmp> -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=896500 https://bugzilla.novell.com/show_bug.cgi?id=896500#c1 --- Comment #1 from Martin Stehno <mstehno@suse.com> 2014-09-12 15:28:14 UTC --- Created an attachment (id=606191) --> (http://bugzilla.novell.com/attachment.cgi?id=606191) picture of hanged mc -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=896500 https://bugzilla.novell.com/show_bug.cgi?id=896500#c2 --- Comment #2 from Martin Stehno <mstehno@suse.com> 2014-09-12 15:29:57 UTC --- Created an attachment (id=606192) --> (http://bugzilla.novell.com/attachment.cgi?id=606192) picture of mc error after killing his sh command of unzip -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=896500 https://bugzilla.novell.com/show_bug.cgi?id=896500#c3 --- Comment #3 from Martin Stehno <mstehno@suse.com> 2014-09-12 15:31:18 UTC --- Created an attachment (id=606193) --> (http://bugzilla.novell.com/attachment.cgi?id=606193) picture with 'cannot open tar archive' with still hanged mc -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=896500 https://bugzilla.novell.com/show_bug.cgi?id=896500#c4 --- Comment #4 from Martin Stehno <mstehno@suse.com> 2014-09-12 15:34:29 UTC --- Midnight Commander doesn't react on Ctrl + c and after killing his process of 'sh with unzip' he shows errors as visible from pictures, but is still hanged and not working anymore, thus his process need to be killed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=896500 https://bugzilla.novell.com/show_bug.cgi?id=896500#c5 --- Comment #5 from Martin Stehno <mstehno@suse.com> 2014-09-12 15:35:46 UTC --- reproducer always with attached bug-881863_password.zip password for .zip is: emc -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=896500 https://bugzilla.novell.com/show_bug.cgi?id=896500#c6 --- Comment #6 from Martin Stehno <mstehno@suse.com> 2014-09-12 15:40:59 UTC --- Under SLES-11-SP3 the reproducer is not working as the mc-4.6.2.pre1-121.33.1 there doesn't see .tar file in the .zip, showing just empty archive. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=896500 https://bugzilla.novell.com/show_bug.cgi?id=896500#c7 Martin Pluskal <mpluskal@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpluskal@suse.com --- Comment #7 from Martin Pluskal <mpluskal@suse.com> 2014-09-12 16:12:09 UTC --- Might be related to https://www.midnight-commander.org/ticket/1685 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=896500 https://bugzilla.novell.com/show_bug.cgi?id=896500#c Christian Boltz <suse-beta@cboltz.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |suse-beta@cboltz.de AssignedTo|bnc-team-screening@forge.pr |dnh@opensuse.org |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=896500 https://bugzilla.novell.com/show_bug.cgi?id=896500#c8 --- Comment #8 from David Haller <dnh@opensuse.org> 2014-09-13 09:53:51 CEST --- Please test an experimental patch built here: http://download.opensuse.org/repositories/home:/dnh:/branches:/Base:/System/ The password-entering is very clumsy, but I have an easy "just give an error" commented out which would be a "clean" solution, i.e. mc won't hang but not extract anything. Password stuff is probably upstream stuff, but I'd just wanted to try it ;) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=896500 https://bugzilla.novell.com/show_bug.cgi?id=896500#c9 --- Comment #9 from Martin Stehno <mstehno@suse.com> 2014-09-15 09:20:51 UTC --- (In reply to comment #8)
Please test an experimental patch built here: http://download.opensuse.org/repositories/home:/dnh:/branches:/Base:/System/
The password-entering is very clumsy, but I have an easy "just give an error" commented out which would be a "clean" solution, i.e. mc won't hang but not extract anything. Password stuff is probably upstream stuff, but I'd just wanted to try it ;)
Hello David, thank you for quick reply. I'm confirming the package mc-4.8.13-120.2.x86_64 from your link on my openSUSE 13.1 is working fine, so the bug is fixed! I have just tested it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com