Bug 1798401

Summary: Valgrind reports errors and lost memory when running rpm -Uvh with rpm-plugin-systemd-inhibit
Product: Red Hat Enterprise Linux 8 Reporter: Eva Mrakova <emrakova>
Component: rpmAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED NOTABUG QA Contact: swm-qe
Severity: medium Docs Contact:
Priority: medium    
Version: 8.2CC: awilliam, emrakova, ffesti, jpazdziora, pmatilai
Target Milestone: rcKeywords: Regression
Target Release: 8.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1714657 Environment:
Last Closed: 2020-02-11 08:49:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 12 Panu Matilainen 2020-02-11 08:49:45 UTC
The DBUS maintainers kindly pointed out in bug 1798899 that this case is covered in the DBUS API documentation https://dbus.freedesktop.org/doc/api/html/group__DBusMemory.html#ga01912903e39428872920d861ef565bac:

> There is absolutely no requirement to call dbus_shutdown() - in fact, most applications won't bother and should not feel 
> guilty.
>
> You have to know that nobody is using libdbus in your application's process before you can call dbus_shutdown(). One 
> implication of this is that calling dbus_shutdown() from a library is almost certainly wrong, since you don't know what
> the rest of the app is up to. 

Calling from a library is exactly what is going on here, so we will not be able to fix this.