[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#460619: 'ark' stalls (or hangs if called externally) opening encrypted '.zip' file.



Package: ark
Version: 4:3.5.8-1
Severity: normal


Related bug:

    #451926 password support
    http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=451926

'ark' stalls attempting to view a file within an encrypted '.zip'.
My mail reader 'sylpheed' uses 'ark' to open archives.  When 'ark'
stalled on an encrypted zip file, both 'ark' and 'sylpheed' hung, and
had to be killed.

Example of stalling:

	# encrypt text file 'foo' in 'bar.zip', pw=melon
	% B=/tmp/bar.zip ; F=/tmp/foo ; echo hello > $F ; zip -P melon $B $F
	  adding: tmp/foo (stored 0%)
	% ark $B

'ark' opens 'bar.zip'; click on 'foo', 'ark' displays "Extracting file
to view" to the left of a progress bar, endlessly. 

'htop' showed 'ark' was waiting for this:

	unzip -n /tmp/bar.zip tmp/foo -d /tmp/kde-yourname/ark2PEYGA/

Test:

        % unzip -n $B tmp/foo -d /tmp/ ; echo $?             
        Archive:  /tmp/bar.zip
        [/tmp/bar.zip] tmp/foo password: 

...so 'unzip' waits for a password, which it never gets, and 'ark'
waits on that.

Short term kludge, add a '-P ""' to the extraction:

        % unzip -P "" -n $B tmp/foo -d /tmp/ ; echo $?
        Archive:  /tmp/bar.zip
           skipping: tmp/foo                 incorrect password
        82

An error, but no stalling.  It works for unencrypted files too:

	% echo hello > $F; zip $B $F
          adding: tmp/foo (stored 0%)
        % unzip -P "" -n $B tmp/foo -d /tmp/ ; echo $?
        Archive:  /tmp/bar.zip
         extracting: /tmp/tmp/foo            
	0

(Perhaps an 'unzip' bug -- it accepted a useless switch without
returning an error.)

Hope this helps...


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-k7 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash

Versions of packages ark depends on:
ii  kdelibs4c2a             4:3.5.8.dfsg.1-4 core libraries and binaries for al
ii  libacl1                 2.2.45-1         Access control list shared library
ii  libart-2.0-2            2.3.19-3         Library of functions for 2D graphi
ii  libattr1                1:2.4.39-1       Extended attribute shared library
ii  libaudio2               1.9.1-1          Network Audio System - shared libr
ii  libc6                   2.7-5            GNU C Library: Shared libraries
ii  libfontconfig1          2.5.0-2          generic font configuration library
ii  libfreetype6            2.3.5-1+b1       FreeType 2 font engine, shared lib
ii  libgamin0 [libfam0]     0.1.9-2          Client library for the gamin file 
ii  libgcc1                 1:4.2.2-4        GCC support library
ii  libice6                 2:1.0.4-1        X11 Inter-Client Exchange library
ii  libidn11                1.1-1            GNU libidn library, implementation
ii  libjpeg62               6b-14            The Independent JPEG Group's JPEG 
ii  libpng12-0              1.2.15~beta5-3   PNG library - runtime
ii  libqt3-mt               3:3.3.7-9        Qt GUI Library (Threaded runtime v
ii  libsm6                  2:1.0.3-1+b1     X11 Session Management library
ii  libstdc++6              4.2.2-4          The GNU Standard C++ Library v3
ii  libx11-6                2:1.0.3-7        X11 client-side library
ii  libxcursor1             1:1.1.9-1        X cursor management library
ii  libxext6                1:1.0.3-2        X11 miscellaneous extension librar
ii  libxft2                 2.1.12-2         FreeType-based font drawing librar
ii  libxi6                  2:1.1.3-1        X11 Input extension library
ii  libxinerama1            1:1.0.2-1        X11 Xinerama extension library
ii  libxrandr2              2:1.2.2-1        X11 RandR extension library
ii  libxrender1             1:0.9.4-1        X Rendering Extension client libra
ii  libxt6                  1:1.0.5-3        X11 toolkit intrinsics library
ii  zlib1g                  1:1.2.3.3.dfsg-8 compression library - runtime

Versions of packages ark recommends:
ii  bzip2                         1.0.4-2    high-quality block-sorting file co
pn  ncompress                     <none>     (no description available)
pn  p7zip-full                    <none>     (no description available)
ii  unzip                         5.52-10    De-archiver for .zip files
ii  zip                           2.32-1     Archiver for .zip files
ii  zoo                           2.10-20    manipulate zoo archives

-- no debconf information



Reply to: