apport-cli crashed with UnicodeEncodeError in show(): 'ascii' codec can't encode characters in position 5-10: ordinal not in range(128)

Bug #1083555 reported by Karma Dorje
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

$ lsb_release -rd
Description: Ubuntu Raring Ringtail (development branch)
Release: 13.04

$ apt-cache policy apport
apport:
  Installed: 2.6.2-0ubuntu5
  Candidate: 2.6.2-0ubuntu5
  Version table:
 *** 2.6.2-0ubuntu5 0
        500 http://archive.ubuntu.com/ubuntu/ raring/main amd64 Packages
        100 /var/lib/dpkg/status

steps to reproduce:
1. LANG=en apport-cli /var/crash/xserver-xorg-video-intel.2012-11-25_19\:27\:51.141955.crash

actual results:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport/ui.py", line 1180, in load_report
    with open(path, 'rb') as f:
PermissionError: [Errno 13] Permission denied: '/var/crash/xserver-xorg-video-intel.2012-11-25_19:27:51.141955.crash'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/apport-cli", line 366, in <module>
    if not app.run_argv():
  File "/usr/lib/python3/dist-packages/apport/ui.py", line 645, in run_argv
    self.run_crash(self.options.crash_file, False)
  File "/usr/lib/python3/dist-packages/apport/ui.py", line 224, in run_crash
    if not self.report and not self.load_report(report_file):
  File "/usr/lib/python3/dist-packages/apport/ui.py", line 1191, in load_report
    self.ui_error_message(_('Invalid problem report'), e.strerror)
  File "/usr/bin/apport-cli", line 230, in ui_error_message
    dialog.run()
  File "/usr/bin/apport-cli", line 67, in run
    self.show()
  File "/usr/bin/apport-cli", line 61, in show
    print(self.heading)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 5-10: ordinal not in range(128)

ProblemType: Crash
DistroRelease: Ubuntu 13.04
Package: apport 2.6.2-0ubuntu5
ProcVersionSignature: Ubuntu 3.7.0-3.9-generic 3.7.0-rc6
Uname: Linux 3.7.0-3-generic x86_64
ApportLog:

ApportVersion: 2.6.2-0ubuntu5
Architecture: amd64
CrashCounter: 1
Date: Tue Nov 27 20:17:35 2012
ExecutablePath: /usr/bin/apport-cli
InstallationDate: Installed on 2012-09-30 (58 days ago)
InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120817.1)
InterpreterPath: /usr/bin/python3.3
MarkForUpload: True
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/bin/apport-cli -c /var/crash/xserver-xorg-video-intel.2012-11-25_19:27:51.141955.crash
PythonArgs: ['/usr/bin/apport-cli', '-c', '/var/crash/xserver-xorg-video-intel.2012-11-25_19:27:51.141955.crash']
SourcePackage: apport
Title: apport-cli crashed with UnicodeEncodeError in show(): 'ascii' codec can't encode characters in position 5-10: ordinal not in range(128)
UpgradeStatus: Upgraded to raring on 2012-10-05 (52 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
mtime.conffile..etc.apport.crashdb.conf: 2012-10-11T20:42:32.316881

Revision history for this message
Karma Dorje (taaroa) wrote :
tags: removed: need-duplicate-check
Changed in apport (Ubuntu):
importance: Undecided → Medium
Karma Dorje (taaroa)
information type: Private → Public
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in apport (Ubuntu):
status: New → Confirmed
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.