aptd crashed with UnicodeDecodeError in _set_error(): 'ascii' codec can't decode byte 0xc3 in position 9: ordinal not in range(128)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Aptdaemon |
Fix Released
|
Undecided
|
Unassigned | ||
Ubuntu |
Fix Released
|
High
|
Decman | ||
Precise |
Fix Released
|
High
|
Colin Watson |
Bug Description
[Impact] Widespread crashes instead of proper error messages any time something goes wrong with aptdaemon.
[Test Case] Make sure you have the appropriate language pack installed, for some locale that uses a lot of non-ASCII characters (I chose Japanese). To make it easier to see the error in action, kill any currently-running aptd processes, and run 'sudo /usr/sbin/aptd' in one terminal. In another terminal, run 'LC_ALL=ja_JP.UTF-8 LANGUAGE= aptdcon --install germinat' (typo intentional). With a broken aptdaemon version, this will cause aptd to crash. If you're running 12.10, then to provoke this bug you need to run aptd using python rather than the default python3.
[Regression Potential] I think we just need to make sure that translated messages are still displayed correctly.
Original report follows:
i got same bug on ubuntu 12.04
ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: aptdaemon 0.43+bzr769-
ProcVersionSign
Uname: Linux 3.2.0-12-ux31 x86_64
ApportVersion: 1.91-0ubuntu1
Architecture: amd64
Date: Fri Feb 3 22:03:36 2012
DesktopFile: /usr/share/
ExecutablePath: /usr/sbin/aptd
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120125)
InterpreterPath: /usr/bin/python2.7
PackageArchitec
ProcCmdline: /usr/bin/python /usr/sbin/aptd
ProcEnviron:
PythonArgs: ['/usr/sbin/aptd']
SourcePackage: aptdaemon
Title: aptd crashed with UnicodeDecodeError in _set_error(): 'ascii' codec can't decode byte 0xc3 in position 9: ordinal not in range(128)
UpgradeStatus: Upgraded to precise on 2012-02-03 (0 days ago)
UserGroups:
Related branches
- Colin Watson: Approve
-
Diff: 11606 lines (+11326/-22)25 files modified.pc/.quilt_patches (+1/-0)
.pc/.quilt_series (+1/-0)
.pc/.version (+1/-0)
.pc/applied-patches (+5/-0)
.pc/fix-lp-900982.patch/aptdaemon/enums.py (+698/-0)
.pc/fix-lp-932581.patch/aptdaemon/pkcompat.py (+2937/-0)
.pc/fix-lp-971748.patch/aptdaemon/networking.py (+262/-0)
.pc/fix-lp-971748.patch/aptdaemon/pkcompat.py (+2940/-0)
.pc/fix-lp-981124.patch/aptdaemon/client.py (+1697/-0)
.pc/fix_gettext_return_value_type.patch/aptdaemon/core.py (+2201/-0)
.pc/fix_gettext_return_value_type.patch/aptdaemon/utils.py (+88/-0)
aptdaemon/client.py (+8/-6)
aptdaemon/core.py (+20/-8)
aptdaemon/enums.py (+1/-1)
aptdaemon/networking.py (+11/-4)
aptdaemon/pkcompat.py (+10/-2)
aptdaemon/utils.py (+7/-1)
debian/changelog (+29/-0)
debian/patches/fix-lp-900982.patch (+19/-0)
debian/patches/fix-lp-932581.patch (+20/-0)
debian/patches/fix-lp-971748.patch (+87/-0)
debian/patches/fix-lp-981124.patch (+44/-0)
debian/patches/fix_gettext_return_value_type.patch (+171/-0)
debian/patches/series (+5/-0)
tests/regressions/test_lp768691.py (+63/-0)
- Aptdaemon Developers: Pending requested
-
Diff: 158 lines (+92/-9)3 files modifiedaptdaemon/core.py (+20/-8)
aptdaemon/utils.py (+7/-1)
tests/regressions/test_lp768691.py (+65/-0)
tags: | removed: need-duplicate-check |
visibility: | private → public |
Changed in aptdaemon (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in aptdaemon (Ubuntu): | |
assignee: | nobody → Marco Capozzi (marcocapozzi80) |
Changed in aptdaemon (Ubuntu): | |
status: | Fix Released → In Progress |
Changed in aptdaemon (Ubuntu): | |
assignee: | Marco Capozzi (marcocapozzi80) → nobody |
Changed in aptdaemon (Ubuntu Precise): | |
assignee: | Colin Watson (cjwatson) → Marcelo Alves (marcelo-alves-8) |
Changed in aptdaemon (Ubuntu Precise): | |
assignee: | Marcelo Alves (marcelo-alves-8) → Colin Watson (cjwatson) |
description: | updated |
Changed in aptdaemon (Ubuntu Precise): | |
status: | Triaged → In Progress |
Changed in aptdaemon (Ubuntu): | |
assignee: | nobody → luis mendes (lufifeme) |
Changed in aptdaemon (Ubuntu): | |
assignee: | luis mendes (lufifeme) → nobody |
Changed in aptdaemon: | |
status: | New → Fix Released |
Changed in aptdaemon (Ubuntu): | |
assignee: | nobody → Decman (david0leo) |
affects: | aptdaemon (Ubuntu) → ubuntu |
Status changed to 'Confirmed' because the bug affects multiple users.