[Bug 1506971] Re: ubuntu-release-upgrader bugs regarding dpkg crashes lack useful information

Brian Murray brian at ubuntu.com
Fri Oct 16 18:41:59 UTC 2015


Digging into this a bit more the release upgrader has its own crash
handler in DistUpgradeApport.py and apport_crash is called from the
distribution upgrade frontends. The traceback is passed to apport_crash
and logged to VarLogDistupgradeMain.log.  As an example if we look at
bug 1497581 we can see the following in Main.log.

2015-09-19 14:33:09,165 ERROR got an error from dpkg for pkg: 'urfkill': 'subprocess installed post-installation script returned error exit status 100'
2015-09-19 14:33:09,165 DEBUG running apport_pkgfailure() urfkill: subprocess installed post-installation script returned error exit status 100
2015-09-19 14:33:09,175 ERROR got an error from dpkg for pkg: 'urfkill': 'subprocess installed post-installation script returned error exit status 100'
2015-09-19 14:33:10,386 ERROR not handled expection:
SystemError: E:Sub-process /usr/bin/dpkg returned an error code (1), E:Sub-process /usr/bin/dpkg returned an error code (1)

2015-09-19 14:33:10,386 DEBUG running apport_crash()

Calling apport_crash in this case seems unnecessary as the apport-
package report about urfkill is what we really want. There is a later
crash for which we would want a report.

2015-09-19 14:33:33,468 ERROR not handled expection:
Traceback (most recent call last):

  File "/tmp/ubuntu-release-upgrader-e1xtx4y9/DistUpgrade/DistUpgradeController.py", line 1137, in doDistUpgrade
    res = self.cache.commit(fprogress,iprogress)

  File "/tmp/ubuntu-release-upgrader-e1xtx4y9/DistUpgrade/DistUpgradeCache.py", line 267, in commit
    apt.Cache.commit(self, fprogress, iprogress)

  File "/usr/lib/python3/dist-packages/apt/cache.py", line 505, in commit
    if fetch_progress is None:

SystemError: installArchives() failed


During handling of the above exception, another exception occurred:


TypeError: wait_for_child() takes 1 positional argument but 2 were given

2015-09-19 14:33:33,468 DEBUG running apport_crash()

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

Title:
  ubuntu-release-upgrader bugs regarding dpkg crashes lack useful
  information

Status in ubuntu-release-upgrader package in Ubuntu:
  New

Bug description:
  If we look at the following problem in the Ubuntu Error Tracker we can
  see hundreds of issues with the following duplicate signature -
  "SystemError ( E) Sub-process /usr/bin/dpkg returned an error code
  (1)".

  https://errors.ubuntu.com/problem/d2dd8ddd68b15cbf2c7a6e1dea241adf4a051ac0

  If we look at any specific instance of that problem
  (https://errors.ubuntu.com/oops/887de81c-7421-11e5-a1b7-fa163e4ccdf2)
  we see nothing more informative. This needs to be sorted out so that
  we don't keep binning crashes in that bucket and can create some
  actionable problems.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1506971/+subscriptions



More information about the foundations-bugs mailing list