Summary: | Apper segfaults on repeated update check | ||
---|---|---|---|
Product: | [Applications] apper | Reporter: | Arcadiy Ivanov <arcadiy> |
Component: | general | Assignee: | Daniel Nicoletti <dantti12> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | shawn.starr |
Priority: | NOR | Keywords: | drkonqi |
Version: | 1.0.0 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/apper/d486706f3e9f7eefa4d44cd5ace34eeaf7ba2ceb | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | New crash information added by DrKonqi |
Description
Arcadiy Ivanov
2018-12-15 21:10:20 UTC
Git commit d486706f3e9f7eefa4d44cd5ace34eeaf7ba2ceb by Albert Astals Cid, on behalf of Alexander Kernozhitsky. Committed on 21/03/2019 at 22:11. Pushed by aacid into branch 'master'. Prevent crashing Apper on PackageModel::clearSelectedNotPresent() Summary: m_checkedPackages.erase() is called, but the iterator is not increased, therefore on the next iteration we use an invalid iterator Related: bug 405433, bug 401461 Test Plan: I just rebuilt Apper, ran it and installed the updates with it. The bug does not appear. Reviewers: dantti, apol Reviewed By: dantti Differential Revision: https://phabricator.kde.org/D19951 M +1 -1 libapper/PackageModel.cpp https://commits.kde.org/apper/d486706f3e9f7eefa4d44cd5ace34eeaf7ba2ceb Created attachment 128486 [details]
New crash information added by DrKonqi
apper (1.0.0) using Qt 5.13.2
- What I was doing when the application crashed:
Did an update, then refreshed for another update, then it crashed since I haven't updated in awhile...
-- Backtrace (Reduced):
#6 0x00007f12d6b668a3 in QHash<QString, PackageModel::InternalPackage>::erase(QHash<QString, PackageModel::InternalPackage>::const_iterator) () from /usr/lib64/apper/libapper_private.so
#7 0x00007f12d6b62e4b in PackageModel::clearSelectedNotPresent() () from /usr/lib64/apper/libapper_private.so
#8 0x00005625fcf01ace in Updater::getUpdatesFinished() ()
[...]
#10 0x00007f12d6ac5513 in PackageKit::Transaction::finished(PackageKit::Transaction::Exit, unsigned int) () from /lib64/libpackagekitqt5.so.1
#11 0x00007f12d6ac9169 in PackageKit::TransactionPrivate::finished(unsigned int, unsigned int) () from /lib64/libpackagekitqt5.so.1
|