zipinfo crashes without arguments

Bug #1429939 reported by Egmont Koblinger
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
unzip (Ubuntu)
Fix Released
Undecided
Dominik Viererbe

Bug Description

In Trusty, "zipinfo" or "unzip -Z" printed its usage (it looks suspiciously wrong, e.g. with some invalid UTF-8, but anyway it survives) and exits cleanly (with exit code 0).

In Utopic, the same command prints some usage info (probably not everything it wishes to print), and then crashes with the message "error: zipfile probably corrupt (segmentation violation)" and returns with exit code 3.

This causes problems e.g. for midnight commander's configure script (Ubuntu's mc has a workaround for it, but this bug is the root cause, and I'd like to compile mc myself for other reasons).

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: unzip 6.0-12ubuntu1.3
ProcVersionSignature: Ubuntu 3.16.0-31.41-generic 3.16.7-ckt5
Uname: Linux 3.16.0-31-generic x86_64
ApportVersion: 2.14.7-0ubuntu8.2
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Mar 9 18:02:44 2015
Dependencies:
 gcc-4.9-base 4.9.1-16ubuntu6
 libbz2-1.0 1.0.6-5ubuntu5
 libc6 2.19-10ubuntu2.3
 libgcc1 1:4.9.1-16ubuntu6
 multiarch-support 2.19-10ubuntu2.3
InstallationDate: Installed on 2012-05-30 (1012 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
SourcePackage: unzip
UpgradeStatus: Upgraded to utopic on 2014-09-30 (159 days ago)

Related branches

Revision history for this message
Egmont Koblinger (egmont-gmail) wrote :
Revision history for this message
Egmont Koblinger (egmont-gmail) wrote :

Buggy in vivid too (running vivid's binary on utopic).

tags: added: vivid
Revision history for this message
Egmont Koblinger (egmont-gmail) wrote :

Note: unzip (without any arguments, or with --help) says:
-Z => ZipInfo mode ("unzip -Z" for usage)

That is, "unzip -Z" without any arguments _is_ documented to be a valid usage, hence it's expected not to emit error messages and exit with 0.

Revision history for this message
Czikus (czikus-gmail) wrote :

I concur , this is annoying and makes mc quite unusable with zip files.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unzip (Ubuntu):
status: New → Confirmed
Revision history for this message
Dominik Viererbe (dviererbe) wrote :

I observed the same garbled output on bionic, focal, kinetic, lunar and mantic and the error message on bionic, focal, lunar and mantic.

See LP: #2022000

Revision history for this message
Dominik Viererbe (dviererbe) wrote :

The error message (I observed) was just caused by the "--help" flag, which is not a supported unzip/zipinfo flag and was interpreted as a filename.

Changed in unzip (Ubuntu):
assignee: nobody → Dominik Viererbe (dviererbe)
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unzip - 6.0-28ubuntu3

---------------
unzip (6.0-28ubuntu3) noble; urgency=medium

  * d/t/*: Added autopkgtest (LP: #2023994)
  * d/p/29-fix-troff-warning.patch:
    Removes monospace directives to fix troff warnings (LP: #2054670)
  * d/p/20-unzip60-alt-iconv-utf8.patch
    * Refreshed as ab-style patch.
    * Added documentation for `-I` and `-O` options to `unzip -hh`.
    * Added documentation for `-I` and `-O` options to unzip (man/unzip.1) and
      zipinfo (man/zipinfo.1) man pages (LP: #138307).
    * Fixed garbled output when `zipinfo` or `unzip -Z` is called
      without arguments (LP: #1429939).

 -- Dominik Viererbe <email address hidden> Thu, 22 Feb 2024 02:48:49 +0200

Changed in unzip (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.