[Bug 1675928] [NEW] apport crashes if you can't read .xession-errors

Brian Murray brian at ubuntu.com
Fri Mar 24 20:46:40 UTC 2017


Public bug reported:

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'

** Affects: apport
     Importance: Undecided
         Status: New

** Affects: apport (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: apport
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1675928

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

Status in Apport:
  New
Status in apport package in Ubuntu:
  New

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'

To manage notifications about this bug go to:
https://bugs.launchpad.net/apport/+bug/1675928/+subscriptions



More information about the foundations-bugs mailing list