ubiquity apport hook crashes

Bug #1056895 reported by Mathieu Trudel-Lapierre on 2012-09-26
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Low
Unassigned
Quantal
Low
Unassigned

Bug Description

Ubiquity appears to crash trying to run its own apport hook after a failed install.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: ubiquity 2.12.3
ProcVersionSignature: Ubuntu 3.5.0-15.23-generic 3.5.4
Uname: Linux 3.5.0-15-generic x86_64
ApportVersion: 2.5.2-0ubuntu4
Architecture: amd64
CasperVersion: 1.324
Date: Wed Sep 26 10:15:19 2012
LiveMediaBuild: Ubuntu 12.10 "Quantal Quetzal" - Beta amd64 (20120925)
ProcEnviron:
 LANGUAGE=fr_CA.UTF-8
 TERM=unknown
 PATH=(custom, no user)
 LANG=fr_CA.UTF-8
 SHELL=/bin/bash
SourcePackage: ubiquity
UpgradeStatus: No upgrade log present (probably fresh install)

ep 26 14:16:41 ubuntu ubiquity: ERROR: hook /usr/share/apport/package-hooks/source_ubiquity.py crashed:
Sep 26 14:16:41 ubuntu ubiquity: Traceback (most recent call last):
Sep 26 14:16:41 ubuntu ubiquity: File "/usr/lib/python3/dist-packages/apport/report.py", line 188, in _run_hook
Sep 26 14:16:41 ubuntu ubiquity: symb['add_info'](report, ui)
Sep 26 14:16:41 ubuntu ubiquity: File "/usr/share/apport/package-hooks/source_ubiquity.py", line 55, in add_info
Sep 26 14:16:41 ubuntu ubiquity: add_installation_log(report, 'UbiquitySyslog', 'syslog')
Sep 26 14:16:41 ubuntu ubiquity: File "/usr/share/apport/package-hooks/source_ubiquity.py", line 21, in add_installation_log
Sep 26 14:16:41 ubuntu ubiquity: report[ident] = open(f, 'r').read()
Sep 26 14:16:41 ubuntu ubiquity: File "/usr/lib/python3.2/encodings/ascii.py", line 26, in decode
Sep 26 14:16:41 ubuntu ubiquity: return codecs.ascii_decode(input, self.errors)[0]
Sep 26 14:16:41 ubuntu ubiquity: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 231225: ordinal not in range(128)
Sep 26 14:16:41 ubuntu ubiquity:
Sep 26 14:16:41 ubuntu ubiquity: (firefox:5367): Gtk-WARNING **: Locale not supported by C library.
Sep 26 14:16:41 ubuntu ubiquity: #011Using the fallback 'C' locale.
Sep 26 14:16:41 ubuntu ubiquity: ERROR: hook /usr/share/apport/package-hooks/source_ubiquity.py crashed:
Sep 26 14:16:41 ubuntu ubiquity: Traceback (most recent call last):
Sep 26 14:16:41 ubuntu ubiquity: File "/usr/lib/python3/dist-packages/apport/report.py", line 188, in _run_hook
Sep 26 14:16:41 ubuntu ubiquity: symb['add_info'](report, ui)
Sep 26 14:16:41 ubuntu ubiquity: File "/usr/share/apport/package-hooks/source_ubiquity.py", line 55, in add_info
Sep 26 14:16:41 ubuntu ubiquity: add_installation_log(report, 'UbiquitySyslog', 'syslog')
Sep 26 14:16:41 ubuntu ubiquity: File "/usr/share/apport/package-hooks/source_ubiquity.py", line 21, in add_installation_log
Sep 26 14:16:41 ubuntu ubiquity: report[ident] = open(f, 'r').read()
Sep 26 14:16:41 ubuntu ubiquity: File "/usr/lib/python3.2/encodings/ascii.py", line 26, in decode
Sep 26 14:16:41 ubuntu ubiquity: return codecs.ascii_decode(input, self.errors)[0]
Sep 26 14:16:41 ubuntu ubiquity: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 231225: ordinal not in range(128)

Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1056895

tags: added: iso-testing
Brian Murray (brian-murray) wrote :

The package hook for ubiquity is actually provided by apport not ubiquity - this way people can use 'ubuntu-bug ubiquity' without having the package installed. Anyway, I'll fix this.

affects: ubiquity (Ubuntu) → apport (Ubuntu)
Changed in apport (Ubuntu):
assignee: nobody → Brian Murray (brian-murray)
importance: Undecided → High
status: New → In Progress
summary: - Crashes trying to run the apport hook?
+ ubiquity apport hook crashes
Brian Murray (brian-murray) wrote :

Well, I've tried recreating this by putting unicode in /var/log/installer/syslog on an already installed system and using 'ubuntu-bug ubiquity' - this did not work.

Nor did putting unicode in /var/log/syslog on a running live cd and modifying ubiquity so that it would crash.

So while I'm suspcious of:

report[ident] = open(f, 'r').read()

I've been unable to recreate this at all.

Brian Murray (brian-murray) wrote :

I also choose french in syslinux and still was unable to recreate this.

Brian Murray (brian-murray) wrote :

I haven't found any duplicates of this issue either.

Changed in apport (Ubuntu Quantal):
importance: High → Low
status: In Progress → Triaged
assignee: Brian Murray (brian-murray) → nobody
Rolf Leggewie (r0lf) wrote :

quantal has seen the end of its life and is no longer receiving any updates. Marking the quantal task for this ticket as "Won't Fix".

Changed in apport (Ubuntu Quantal):
status: Triaged → Won't Fix
Brian Murray (brian-murray) wrote :

apport now doesn't crash on errors with package hooks and instead adds an attachment to bug reports with the title "HookError...ubiquity" or something close to that. Either way, I haven't seen any HookError attachments with recent ubiquity bug reports so lets assume this was fixed.

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

Other bug subscribers