Bug 84485 - packagekitd 1.0.0 crashes on package removal with ALPM backend
Summary: packagekitd 1.0.0 crashes on package removal with ALPM backend
Status: RESOLVED NOTABUG
Alias: None
Product: PackageKit
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: Other All
: medium critical
Assignee: Richard Hughes
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-29 18:09 UTC by Balló György
Modified: 2018-08-21 15:52 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Console output of '/usr/lib/PackageKit/packagekitd --verbose' (12.27 KB, text/plain)
2014-09-29 18:09 UTC, Balló György
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Balló György 2014-09-29 18:09:59 UTC
Created attachment 107077 [details]
Console output of '/usr/lib/PackageKit/packagekitd --verbose'

When I'm trying to remove a package with gpk-application, packagekitd crashes, and the transaction fails.

Distribution: Arch Linux (ALPM backend used)

Package versions:
- packagekit 1.0.0
- gnome-packagekit 3.14.0

Backtrace:
#0  0x00007ffff667d05f in _int_free () from /usr/lib/libc.so.6
#1  0x00007ffff6c2c749 in g_strfreev () from /usr/lib/libglib-2.0.so.0
#2  0x00007fffef5f5e75 in ?? () from /usr/lib/packagekit-backend/libpk_backend_alpm.so
#3  0x0000555555572b9a in ?? ()
#4  0x00007ffff6c33585 in ?? () from /usr/lib/libglib-2.0.so.0
#5  0x00007ffff69ae314 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007ffff66ec3ed in clone () from /usr/lib/libc.so.6

I attached the console output of the packagekitd command.
Comment 1 Richard Hughes 2014-09-29 18:54:58 UTC
?? isn't super useful. Can you install/compile-with debug symbols please?
Comment 2 Balló György 2014-09-29 19:39:33 UTC
Sorry, here is a more detailed backtrace:
#0  0x00007ffff6637967 in raise () from /usr/lib/libc.so.6
#1  0x00007ffff6638d3a in abort () from /usr/lib/libc.so.6
#2  0x00007ffff6677413 in __libc_message () from /usr/lib/libc.so.6
#3  0x00007ffff667c84e in malloc_printerr () from /usr/lib/libc.so.6
#4  0x00007ffff667d00b in _int_free () from /usr/lib/libc.so.6
#5  0x00007ffff6c2c749 in g_strfreev () from /usr/lib/libglib-2.0.so.0
#6  0x00007fffef5f5e75 in pk_backend_remove_packages_thread ()
   from /usr/lib/packagekit-backend/libpk_backend_alpm.so
#7  0x0000555555572b9a in pk_backend_job_thread_setup ()
#8  0x00007ffff6c33585 in ?? () from /usr/lib/libglib-2.0.so.0
#9  0x00007ffff69ae314 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007ffff66ec3ed in clone () from /usr/lib/libc.so.6
Comment 3 Richard Hughes 2014-09-30 08:19:34 UTC
Thanks for the new backtrace; can you try git master please:

commit 6dab5184b0e2a69d9c621a0e61fb8d0dfe0afdfc
Author: Richard Hughes <richard@hughsie.com>
Date:   Tue Sep 30 09:18:50 2014 +0100

    alpm: Fix a few potential double-frees
    
    Resolves: https://bugs.freedesktop.org/show_bug.cgi?id=84485
Comment 4 Balló György 2014-09-30 12:10:42 UTC
Thank you very much! It fixes the crash, but after the transaction, gpk-application remains in an inconsistent state. I could see that the transaction finished, but the package list is not updated as expected, the removed package left marked for removal, and the checkboxes before packages are invisible. I have to close gpk-application and open it again to become usable again. It doesn't happen after package installation, just after package removal.
Comment 5 Richard Hughes 2018-08-21 15:52:19 UTC
We moved the upstream bugtracker to GitHub a long time ago. If this issue still affects you please re-create the issue here: https://github.com/hughsie/PackageKit/issues
 
Sorry for the impersonal message, and fingers crossed your issue no longer happens. Thanks.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.