aptd crashed with UnicodeDecodeError in _emit_acquire_item(): 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)

Bug #1034806 reported by Kirill Kuznecov
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
aptdaemon (Ubuntu)
Fix Released
Critical
Unassigned
Precise
Fix Released
Critical
Steve Langasek

Bug Description

[Impact]
Regression introduced in the previous SRU because a format string is now a unicode while one of the arguments is still a string. This generally causes aptd to crash for all users who are running in a locale where either their language name or the name of the English language contains non-ASCII characters.

[Test case]
1. Using gnome-language-selector, install the Russian langpack and make it the system default.
2. Install aptdaemon from precise-proposed.
3. Run update-manager and choose "Update" (listed as "Проверить")
4. Verify that aptdaemon does not crash, and the package lists are updated successfully from the

[Regression potential]
Minimal. The patch includes a test case, which has been manually run to verify it succeeds and there are no other regressions in the test suite (the test suite is not run at build time in precise). This is a fix for a regression introduced in a previous -proposed upload, and the bug can be considered resolved as soon as the problem is confirmed to be addressed in precise-proposed.

just crashed, don't know why, lol.

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: aptdaemon 0.43+bzr805-0ubuntu3
ProcVersionSignature: Ubuntu 3.2.0-29.46-generic 3.2.24
Uname: Linux 3.2.0-29-generic x86_64
ApportVersion: 2.0.1-0ubuntu12
Architecture: amd64
Date: Thu Aug 9 13:27:54 2012
ExecutablePath: /usr/sbin/aptd
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/sbin/aptd
ProcEnviron:

PythonArgs: ['/usr/sbin/aptd']
SourcePackage: aptdaemon
Title: aptd crashed with UnicodeDecodeError in _emit_acquire_item(): 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

Related branches

Revision history for this message
Kirill Kuznecov (cyberunknown-deactivatedaccount) wrote :
tags: removed: need-duplicate-check
Changed in aptdaemon (Ubuntu):
importance: Undecided → Medium
visibility: private → public
Steve Langasek (vorlon)
Changed in aptdaemon (Ubuntu):
importance: Medium → Critical
status: New → Incomplete
status: Incomplete → Triaged
Changed in aptdaemon (Ubuntu Precise):
status: New → Incomplete
status: Incomplete → Triaged
importance: Undecided → Critical
Changed in aptdaemon (Ubuntu):
status: Triaged → Invalid
tags: added: regression-potential
Steve Langasek (vorlon)
Changed in aptdaemon (Ubuntu Precise):
assignee: nobody → Steve Langasek (vorlon)
Revision history for this message
Colin Watson (cjwatson) wrote : Please test proposed package

Hello Kirill, or anyone else affected,

Accepted aptdaemon into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/aptdaemon/0.43+bzr805-0ubuntu4 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in aptdaemon (Ubuntu Precise):
status: Triaged → Fix Committed
tags: added: verification-needed
Steve Langasek (vorlon)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package aptdaemon - 0.45+bzr852-0ubuntu2

---------------
aptdaemon (0.45+bzr852-0ubuntu2) quantal; urgency=low

  * debian/patches/fix_gettext_return_value_type.patch: also return unicode
    from aptdaemon.utils.IsoCodes.get_localised_name(). (LP: #1034806)
 -- Steve Langasek <email address hidden> Sat, 11 Aug 2012 01:39:05 +0000

Changed in aptdaemon (Ubuntu):
status: Invalid → Fix Released
Revision history for this message
Steve Langasek (vorlon) wrote :

errors.ubuntu.com shows a steady decline in the reports of this issue since the 10th, when the update was published:

https://errors.ubuntu.com/bucket/?id=%2Fusr%2Fsbin%2Faptd%3AUnicodeDecodeError%3Afail%3A_emit_acquire_item

790 crashes on Aug 9, down to 246 crashes on Aug 11 and 195 crashes on Aug 12. The report claims that 191 of these happened with version 0.43+bzr805-0ubuntu4; however we think this is some fuzz in the reporting that needs fixing rather than actual ongoing crashes with this version (https://bugs.launchpad.net/errors/+bug/1035557). So there is moderately strong evidence that this bug is fixed.

It would still be appreciated if the users who saw this bug can confirm that the crash has gone away, and they can now use the "Update" button within update-manager after installing the newer precise-proposed version of aptdaemon.

Revision history for this message
Stéphane Graber (stgraber) wrote :

After discussion and base on the errors.ubuntu.com stats, marking as verification-done.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Adam Conrad (adconrad) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

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

This bug was fixed in the package aptdaemon - 0.43+bzr805-0ubuntu4

---------------
aptdaemon (0.43+bzr805-0ubuntu4) precise-proposed; urgency=low

  * debian/patches/fix_gettext_return_value_type.patch: also return unicode
    from aptdaemon.utils.IsoCodes.get_localised_name(). (LP: #1034806)

aptdaemon (0.43+bzr805-0ubuntu3) precise-proposed; urgency=low

  * debian/patches/fix_gettext_return_value_type.patch:
    - Make sure to always return unicode from core.Transaction.gettext()
      (LP: #926340). Based partially on a patch by Sebastian Heinlein.
 -- Steve Langasek <email address hidden> Fri, 10 Aug 2012 18:22:00 -0700

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

Other bug subscribers

Remote bug watches

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