[Bug 1762159] Re: apport-gtk crashes on reports without timestamp

Launchpad Bug Tracker 1762159 at bugs.launchpad.net
Mon Apr 9 17:23:54 UTC 2018


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

** Changed in: apport (Ubuntu)
       Status: New => Confirmed

-- 
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/1762159

Title:
  apport-gtk crashes on reports without timestamp

Status in apport package in Ubuntu:
  Confirmed

Bug description:
  $ /usr/share/apport/apport-gtk
  Traceback (most recent call last):
    File "/usr/share/apport/apport-gtk", line 598, in <module>
      app.run_argv()
    File "/usr/lib/python3/dist-packages/apport/ui.py", line 694, in run_argv
      return self.run_crashes()
    File "/usr/lib/python3/dist-packages/apport/ui.py", line 245, in run_crashes
      logind_session[1] > self.report.get_timestamp():
  TypeError: '>' not supported between instances of 'float' and 'NoneType'

  /usr/lib/python3/dist-packages/apport/report.py:

      def get_timestamp(self):
          '''Get timestamp (seconds since epoch) from Date field

          Return None if it is not present.
          '''

  so get_timestamp can return None, but run_crashes does not cover this

  $ dpkg -s python3-apport
  Package: python3-apport
  Status: install ok installed
  Priority: optional
  Section: python
  Installed-Size: 551
  Maintainer: Martin Pitt <martin.pitt at ubuntu.com>
  Architecture: all
  Source: apport
  Version: 2.20.7-0ubuntu3.7

  $ lsb_release -rd
  Description:	Ubuntu 17.10
  Release:	17.10

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



More information about the foundations-bugs mailing list