[Bug 725186] Re: Software-Center crash at launch if apt-history gzip archives are corrupted

Launchpad Bug Tracker 725186 at bugs.launchpad.net
Mon Jun 27 10:32:40 UTC 2011


This bug was fixed in the package software-center - 3.0.9

---------------
software-center (3.0.9) maverick-proposed; urgency=low

  [ Gary Lasker ]
  * softwarecenter/db/update.py,
    test/test_appview.py,
    test/test_database.py:
    - track cataloged_time for items not in axi (e.g. for-purchase apps)
      so that they will show up in What's New, add/modify unit tests
      per the changes (LP: #684077)
    - fix icon display that have a "." in it (LP: #745942)
  * softwarecenter/db/update.py,
    softwarecenter/view/appdetailsview_gtk.py,
    test/test_downloader.py:
    - fix screenshot issues for apps for purchase and update unit
      test (LP: #791932)

  [ Olivier Tilloy ]
  * softwarecenter/apt/apthistory.py:
    - fix startup crash if the history file is corrupted (LP: #725186)
 -- Gary Lasker <gary.lasker at canonical.com>   Wed, 15 Jun 2011 22:35:43 -0400

** Changed in: software-center (Ubuntu Maverick)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to software-center in Ubuntu.
https://bugs.launchpad.net/bugs/725186

Title:
  Software-Center crash at launch if apt-history gzip archives are
  corrupted

Status in “software-center” package in Ubuntu:
  Fix Released
Status in “software-center” source package in Maverick:
  Fix Released

Bug description:
  Binary package hint: software-center

  If the apt history gzip archives contained in /var/log/apt/ are corrupted, then Software-Center crash at launch.
  I attached the corrupted archive that triggered the bug on my laptop.

  ---
  TEST CASE (for Maverick SRU):

  1. Run Maverick.
  2. In a terminal, type the following commands to temporarily swap in a corrupted apt history file (the original will be restored after):

    wget https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/725186/+attachment/1871475/+files/history.log.5.gz
    sudo mv /var/log/apt/history.log.1.gz /var/log/apt/history.log.1.gz.SAVE
    sudo cp history.log.5.gz /var/log/apt/history.log.1.gz

  3. Launch Software Center by typing the following into a terminal
  (this will allow you to verify the error output):

    software-center

  4. Verify that software-center crashes (does not start) and the error
  output in the terminal ends with:

    "zlib.error: Error -3 while decompressing: invalid distance too far
  back"

  5. Install the updated version of Software Center (3.0.9) from maverick-proposed.
  6. Launch Software Center again from the terminal (or directly) and verify that Software Center now launches correctly (the main window is displayed, etc.).
  7. Type the following in a terminal to restore your previous apt history log:

    sudo mv /var/log/apt/history.log.1.gz.SAVE
  /var/log/apt/history.log.1.gz

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/725186/+subscriptions




More information about the foundations-bugs mailing list