RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2020111 - Bucardo out of memory due to perl-DBD-Pg-2.19.3-4.el7
Summary: Bucardo out of memory due to perl-DBD-Pg-2.19.3-4.el7
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: perl-DBD-Pg
Version: 7.6
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: perl-maint-list
QA Contact: RHEL CS Apps Subsystem QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-04 03:27 UTC by amit yadav
Modified: 2022-01-11 17:35 UTC (History)
4 users (show)

Fixed In Version: perl-DBD-Pg-2.19.3-5.el7_9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2020571 2020572 (view as bug list)
Environment:
Last Closed: 2022-01-11 17:35:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-101701 0 None None None 2021-11-04 03:28:41 UTC
Red Hat Product Errata RHBA-2022:0060 0 None None None 2022-01-11 17:35:03 UTC

Comment 3 Piyush Bhoot 2021-11-04 07:23:45 UTC
In latest release PQclear is done for every non NULL return value of PQgetResult

As per PQgetResult description in https://www.postgresql.org/docs/8.1/libpq-async.html

Customer has tried correcting following in RHEL code and it has reduced leaks for short runs, observations.

pg_db_getcopydata
pg_db_putcopyend

Need rest of corrections as perl doc notes "Don't forget to free each result object with PQclear" above."

Comment 4 Jitka Plesnikova 2021-11-04 09:02:48 UTC
Thank you for the report.

The functions were fixed by upstream by commit 

commit 8ca0f67807848143470178fb535ea53cdcd8aad2
Author: Mike Magin <mmagin>
Date:   Tue Apr 4 11:16:10 2017 -0400

    Always clear out libpq results before reassigning: fixes leak in putcopyend

Comment 23 errata-xmlrpc 2022-01-11 17:35:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (perl-DBD-Pg bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:0060


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