Summary: | crash when cache update brings in completely new package that must be installed for update | ||
---|---|---|---|
Product: | [Applications] Discover | Reporter: | Alexander <BudnikAV86> |
Component: | Updates (interactive) | Assignee: | Aleix Pol <aleixpol> |
Status: | RESOLVED WORKSFORME | ||
Severity: | crash | CC: | aleixpol, rohan, sitter |
Priority: | NOR | Keywords: | drkonqi, triaged |
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | test archive to trigger the bug |
Description
Alexander
2014-02-11 00:30:31 UTC
*** This bug has been marked as a duplicate of bug 325109 *** Actually not a duplicate as such (the reason I know that is because I just hit that crash mysefl :P)
While not obvious from the backtrace this crash is caused by
> void ApplicationUpdates::calculateUpdates()
not being able to resolve the package. The reason it cannot resolve it apparenlty is because ApplicationBackend doesn't refresh m_appList on reload.
How to reproduce:
- install a package foo
- m_appList now contains foo, but not bar
- package gets update that introduces dependency on completely new package bar
- a manual check for new updates is run via muon-updater
- the package cache for the updater now contains both the new foo and the completly new bar, m_appList still only contains foo
- resolution fails and assert fails
Created attachment 85093 [details] test archive to trigger the bug I am attaching a tarball with a simple test archive with two debs and a Packages list that allows the bug to be easily reproduced: - install kubuntu-docs - completely update system - extract tarball somewhere - edit sources.list and add the following with adjusted path as needed (mind the triple forward slash after file) > deb file:///home/me/bug330999 ./ - open muon-updater and use ctrl-r to refresh the crash - observe crash the tarball contains a fake kubuntu-docs package that depends on the other package (which is not present elsewhere thus not in the cache at startup), the cache refresh will pick up the new fake kubuntu-docs and try to resolve it's depdencies and fail the assert. (please note that for re-testing you need to delete the extracted directory, apt-get update, and extract it again to make sure the fake packages are gone from the cache) *** This bug has been marked as a duplicate of bug 325109 *** I can't reproduce the crash with muon-updater 2.2.0 Harald, can you check if it's fixed as Rohan suggested? Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone! |