[Bug 1785093] Re: RecursionError error in call_adjusted()
Brian Murray
brian at ubuntu.com
Mon Dec 3 17:28:50 UTC 2018
** Also affects: unattended-upgrades (Ubuntu Xenial)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to unattended-upgrades in Ubuntu.
https://bugs.launchpad.net/bugs/1785093
Title:
RecursionError error in call_adjusted()
Status in unattended-upgrades package in Ubuntu:
Fix Released
Status in unattended-upgrades source package in Xenial:
New
Status in unattended-upgrades source package in Bionic:
Fix Released
Bug description:
[Impact]
* Unattended-upgrades may crash and stop installing security updates on users' system due to entering infinite loop.
* The fix ensures terminating the recursive calls.
[Test Case]
* TODO / observe the crash not being reported for fixed releases on
errors.ubuntu.com.
[Regression Potential]
* Unattended-upgrades now adjusts package candidates only to lower versions than the one originally offered by apt's resolver. This is a change in behavior which aligns well with the default configuration, i.e. installing packages from -security but not from -updates, since -updates almost always have higher version numbers. This change may cause using different upgrade paths when PPAs are involved and all packages can't be upgraded to the highest versions found in allowed origins, because of Conflicts: for example.
* Unexpected regressions can cause candidate adjustments not taking place, but please note that autopkgtest now includes applying all outstanding security updates for the release thus the new code is covered, too.
[Original Bug report]
The Ubuntu Error Tracker has been receiving reports about a problem regarding unattended-upgrades. This problem was most recently seen with package version 1.1ubuntu1.18.04.5, the problem page at https://errors.ubuntu.com/problem/fa706afe2f0e04b661fe54da0a59b9fc3da50734 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/.
Traceback (most recent call last):
File "/usr/bin/unattended-upgrade", line 1991, in <module>
sys.exit(main(options))
File "/usr/bin/unattended-upgrade", line 1647, in main
cache, options, allowed_origins, blacklisted_pkgs, whitelisted_pkgs)
File "/usr/bin/unattended-upgrade", line 1349, in calculate_upgradable_pkgs
whitelisted_pkgs)
File "/usr/bin/unattended-upgrade", line 1288, in try_to_upgrade
cache.mark_upgrade_adjusted(pkg, from_user=not pkg.is_auto_installed)
File "/usr/bin/unattended-upgrade", line 212, in mark_upgrade_adjusted
self.call_adjusted(apt.package.Package.mark_upgrade, pkg, **kwargs)
File "/usr/bin/unattended-upgrade", line 206, in call_adjusted
self.call_adjusted(function, pkg, **kwargs)
File "/usr/bin/unattended-upgrade", line 206, in call_adjusted
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1785093/+subscriptions
More information about the foundations-bugs
mailing list