[Bug 989443] Re: apport-collect crashes when no matching packages found

Marcus Tomlinson marcus.tomlinson at canonical.com
Thu Mar 5 12:41:09 UTC 2020


This release of Ubuntu is no longer receiving maintenance updates. If
this is still an issue on a maintained version of Ubuntu please let us
know.

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

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

Title:
  apport-collect crashes when no matching packages found

Status in apport package in Ubuntu:
  Incomplete

Bug description:
  1) lsb_release -rd
  Description:	Ubuntu 12.04 LTS
  Release:	12.04

  2) apt-cache policy apport
  apport:
    Installed: 2.0.1-0ubuntu6
    Candidate: 2.0.1-0ubuntu6
    Version table:
   *** 2.0.1-0ubuntu6 0
          500 http://archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
          500 http://archive.ubuntu.com/ubuntu/ precise-proposed/main amd64 Packages
          100 /var/lib/dpkg/status
       2.0.1-0ubuntu5 0
          500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

  3) I expect apport to collect information for bug report, or to inform
  that no matching packages found and then closing.

  4) apport-collect crashes with following information (example run):
  ## EXAMPLE RUN STARTED
  apport-collect 989226
  No packages found matching linux.
  ERROR: hook /usr/share/apport/general-hooks/ubuntu.py crashed:
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/apport/report.py", line 718, in add_hooks_info
      symb['add_info'](self, ui)
    File "/usr/share/apport/general-hooks/ubuntu.py", line 45, in add_info
      match_error_messages(report)
    File "/usr/share/apport/general-hooks/ubuntu.py", line 129, in match_error_messages
      if report['ProblemType'] == 'Package':
    File "/usr/lib/python2.7/UserDict.py", line 23, in __getitem__
      raise KeyError(key)
  KeyError: 'ProblemType'
  Traceback (most recent call last):
    File "/usr/share/apport/apport-gtk", line 499, in <lambda>
      GLib.idle_add(lambda: self.collect_info(on_finished=self.ui_update_view))
    File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 861, in collect_info
      icthread.exc_raise()
    File "/usr/lib/python2.7/dist-packages/apport/REThread.py", line 34, in run
      self._retval = self.__target(*self.__args, **self.__kwargs)
    File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 111, in thread_collect_info
      if report['ProblemType'] == 'Crash' and \
    File "/usr/lib/python2.7/UserDict.py", line 23, in __getitem__
      raise KeyError(key)
  KeyError: 'ProblemType'
  ## EXAMPLE RUN STOPPED

  ---
  ApportVersion: 2.0.1-0ubuntu6
  Architecture: amd64
  CrashReports:
   664:1000:1000:0:2012-04-26 22:35:07.560130943 +0300:2012-04-26 22:35:07.560130943 +0300:/var/crash/_usr_bin_compiz.1000.upload
   640:103:107:598138:2012-04-26 22:33:38.552153000 +0300:2012-04-26 22:33:39.552153000 +0300:/var/crash/_usr_lib_x86_64-linux-gnu_colord_colord.103.crash
   640:1000:1000:470313:2012-04-26 22:34:09.264790000 +0300:2012-04-26 22:34:10.264790000 +0300:/var/crash/_usr_bin_compiz.1000.crash
   640:1000:1000:6367607:2012-04-26 19:22:25.169509000 +0300:2012-04-26 19:22:29.897509468 +0300:/var/crash/_usr_lib_docky_Docky.exe.1000.crash
   644:0:0:0:2012-04-26 22:35:01.063380677 +0300:2012-04-26 22:35:01.063380677 +0300:/var/crash/_usr_lib_x86_64-linux-gnu_colord_colord.103.upload
  DistroRelease: Ubuntu 12.04
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120118)
  Package: apport 2.0.1-0ubuntu6
  PackageArchitecture: all
  ProcEnviron:
   LANGUAGE=en_US:en
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
  Tags:  precise
  Uname: Linux 3.2.0-24-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

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



More information about the foundations-bugs mailing list