apport crashes if you can't read .xession-errors

Bug #1675928 reported by Brian Murray
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Apport
Fix Released
Undecided
Unassigned
apport (Ubuntu)
Fix Released
Medium
Brian Murray

Bug Description

Change the owner of .xsessions-errors

sudo chown root ~/.xsession-errors

Run this code

 $ python3
Python 3.5.2+ (default, Sep 22 2016, 12:18:14)
[GCC 6.2.0 20160927] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from apport import hookutils
>>> hookutils.xsession_errors()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/bdmurray/source-trees/apport/trunk/apport/hookutils.py", line 521, in xsession_errors
    with open(path, 'rb') as f:
PermissionError: [Errno 13] Permission denied: '/home/bdmurray/.xsession-errors'

Changed in apport:
status: New → Fix Released
Changed in apport (Ubuntu):
milestone: none → ubuntu-17.04
status: New → Confirmed
status: Confirmed → Triaged
importance: Undecided → Medium
assignee: nobody → Brian Murray (brian-murray)
Changed in apport (Ubuntu):
milestone: ubuntu-17.04 → ubuntu-17.05
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 2.20.5-0ubuntu3

---------------
apport (2.20.5-0ubuntu3) artful; urgency=medium

  * Revert change to test/test_crash_digger.py to use the source's
    crash-digger.

 -- Brian Murray <email address hidden> Mon, 15 May 2017 16:00:06 -0700

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