[Bug 2086771] Re: pkcon crashes in transaction with user prompt
Timo Aaltonen
2086771 at bugs.launchpad.net
Fri Nov 29 17:12:56 UTC 2024
Hello Alessandro, or anyone else affected,
Accepted packagekit into oracular-proposed. The package will build now
and be available at
https://launchpad.net/ubuntu/+source/packagekit/1.3.0-1ubuntu1 in a few
hours, and then in the -proposed repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
oracular to verification-done-oracular. If it does not fix the bug for
you, please add a comment stating that, and change the tag to
verification-failed-oracular. In either case, without details of your
testing we will not be able to proceed.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance for helping!
N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.
** Changed in: packagekit (Ubuntu Oracular)
Status: New => Fix Committed
** Tags added: verification-needed verification-needed-oracular
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to packagekit in Ubuntu.
https://bugs.launchpad.net/bugs/2086771
Title:
pkcon crashes in transaction with user prompt
Status in packagekit package in Ubuntu:
Fix Released
Status in packagekit source package in Oracular:
Fix Committed
Bug description:
[ Impact ]
`pkcon install <pkg>` crashes after install, and likewise
`pkcon remove <pkg>` crashes after removal.
More in general, all pkcon transactions that prompt the user with a
question like "Proceed with changes? [N/y]" will crash after
completing the transaction.
This is fixed by correcting a reference counting issue which was
causing a double-free.
[ Test Case 1 ]
1. Run `pkcon install 2048`
2. Answer `n` to "Proceed with changes? [N/y]"
3. Verify that pkcon does not print
GLib-GObject-CRITICAL **: 12:02:00.011: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
[ Test Case 2 ]
1. Run `pkcon install 2048`
2. Answer `y` to "Proceed with changes? [N/y]"
3. Complete the install
4. Verify that pkcon did not crash with segmentation fault
[ Where things could go wrong ]
If the fix is too broad, we could be leaking memory, but pkcon is not a daemon anyways.
If the fix is not broad enough, the issue might still be happening in specific cases we haven't tested.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/2086771/+subscriptions
More information about the foundations-bugs
mailing list