Bug 1857819 - PackageKit leaks large amounts of memory
Summary: PackageKit leaks large amounts of memory
Keywords:
Status: CLOSED DUPLICATE of bug 1896964
Alias: None
Product: Fedora
Classification: Fedora
Component: PackageKit
Version: 32
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-16 15:48 UTC by Joe Thompson
Modified: 2020-11-25 20:46 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-11-25 20:46:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Joe Thompson 2020-07-16 15:48:24 UTC
Description of problem: PackageKit leaks ~1 GB of RAM on my system in a week.


Version-Release number of selected component (if applicable): 1.1.13-3


How reproducible: Always


Steps to Reproduce:
1. Boot a Fedora 32 system with packagekitd enabled.
2. Wait a week

Actual results: packagekitd consumes over 1 GB of RAM.


Expected results: packagekitd consumes a very small amount of memory.


Additional info: Restarting the packagekit service frees up the leaked memory.  valgrind suggests the issue is largely with either liblua, or how PK uses it -- I see a lot of this block in valgrind memory test output:


==2827513==    by 0x160EE656: ??? (in /usr/lib64/liblua-5.3.so)
==2827513==    by 0x160F9530: ??? (in /usr/lib64/liblua-5.3.so)
==2827513==    by 0x160E6936: ??? (in /usr/lib64/liblua-5.3.so)
==2827513==    by 0x160F9F93: ??? (in /usr/lib64/liblua-5.3.so)

The malloc and realloc lines that precede these blocks vary somewhat but are mostly this:

==2827513==    at 0x483A747: malloc (vg_replace_malloc.c:306)
==2827513==    by 0x483CD32: realloc (vg_replace_malloc.c:834)

Comment 1 Chris Murphy 2020-11-25 20:46:08 UTC

*** This bug has been marked as a duplicate of bug 1896964 ***


Note You need to log in before you can comment on or make changes to this bug.