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 1324387 - libtevent leaks memory during signal handling
Summary: libtevent leaks memory during signal handling
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libtevent
Version: 7.3
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: Jakub Hrozek
QA Contact: Steeve Goveas
URL:
Whiteboard:
Depends On: 1309439
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-06 08:50 UTC by Marcel Kolaja
Modified: 2019-10-10 11:47 UTC (History)
11 users (show)

Fixed In Version: libtevent-0.9.26-1.el7_2.1
Doc Type: Bug Fix
Doc Text:
Previously, the libtevent package suffered from a memory leak in signal handling. This bug has been fixed and memory leaks no longer occur in libtevent.
Clone Of: 1309439
Environment:
Last Closed: 2016-05-12 10:06:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1037 0 normal SHIPPED_LIVE libtevent bug fix update 2016-05-12 13:55:56 UTC

Description Marcel Kolaja 2016-04-06 08:50:06 UTC
This bug has been copied from bug #1309439 and has been proposed
to be backported to 7.2 z-stream (EUS).

Comment 4 Amith 2016-04-27 12:50:29 UTC
Verified the bug on libtevent Version: libtevent-0.9.26-1.el7_2.1.x86_64

Steps followed during verification:
1. Reproduced the bug with the older build: libtevent-0.9.25-1.el7.x86_64
2. Upon executing the reproducer program with unpatched package, following leaks were reported: 

# ./a.out 
full talloc report on 'null_context' (total  18128 bytes in 107 blocks)
    struct tevent_sig_state        contains  17968 bytes in 101 blocks (ref 0) 0x1590680
        struct sigaction               contains    152 bytes in   1 blocks (ref 0) 0x159f7b0
        struct sigaction               contains    152 bytes in   1 blocks (ref 0) 0x159f6b0
        struct sigaction               contains    152 bytes in   1 blocks (ref 0) 0x159f5b0
        .
        .
        .
        struct sigaction               contains    152 bytes in   1 blocks (ref 0) 0x15996b0
    struct tevent_ops_list         contains     32 bytes in   1 blocks (ref 0) 0x1590320
    struct tevent_ops_list         contains     32 bytes in   1 blocks (ref 0) 0x1590290
    struct tevent_ops_list         contains     32 bytes in   1 blocks (ref 0) 0x1590200
    
3. With the patched build, the "struct sigaction" shouldn't be reported, see the output:

# ./a.out 
full talloc report on 'null_context' (total   2928 bytes in   7 blocks)
    struct tevent_sig_state        contains   2768 bytes in   1 blocks (ref 0) 0x97e680
    struct tevent_ops_list         contains     32 bytes in   1 blocks (ref 0) 0x97e320
    struct tevent_ops_list         contains     32 bytes in   1 blocks (ref 0) 0x97e290
    struct tevent_ops_list         contains     32 bytes in   1 blocks (ref 0) 0x97e200
    struct tevent_ops_list         contains     32 bytes in   1 blocks (ref 0) 0x97e170
    struct tevent_ops_list         contains     32 bytes in   1 blocks (ref 0) 0x97e0e0

Comment 6 errata-xmlrpc 2016-05-12 10:06:52 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, 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://rhn.redhat.com/errata/RHBA-2016-1037.html


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