The trivial fix is to fail gracefully if the user cannot read this log
file.  It should hardly prevent you from reporting bugs!

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to evince in Ubuntu.
https://bugs.launchpad.net/bugs/799240

Title:
  apport script crashes - IOError: [Errno 13] Permission denied:
  '/var/log/kern.log'

Status in “evince” package in Ubuntu:
  Triaged

Bug description:
  TEST CASE:
  1. Create a user who is not part of the group 'adm' 
  2. Login as this user
  3. In a terminal run the following command:
    $ ubuntu-bug evince

  Result:
  The following error is displayed:

  """
  ERROR: hook /usr/share/apport/package-hooks//source_evince.py crashed:
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/apport/report.py", line 661, in 
add_hooks_info
      symb['add_info'](self)
    File "/usr/share/apport/package-hooks//source_evince.py", line 54, in 
add_info
      report['KernLog'] = recent_kernlog(sec_re)
    File "/usr/share/apport/package-hooks//source_evince.py", line 24, in 
recent_kernlog
      for line in open(file):
  IOError: [Errno 13] Permission denied: '/var/log/kern.log'
  """

  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: evince 3.0.2-0ubuntu2 [modified: 
usr/share/doc/evince/changelog.Debian.gz]
  ProcVersionSignature: Ubuntu 3.0-1.2-generic 3.0.0-rc3
  Uname: Linux 3.0-1-generic x86_64
  Architecture: amd64
  Date: Sat Jun 18 22:34:05 2011
  ProcEnviron:
   PATH=(custom, user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature_: Ubuntu 3.0-1.2-generic 3.0.0-rc3
  SourcePackage: evince
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/evince/+bug/799240/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to