Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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 1328299 - Memory leak and occasional segfault in qdrouterd when (un)installing a package from Satellite6
Summary: Memory leak and occasional segfault in qdrouterd when (un)installing a packag...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: katello-agent
Version: 6.1.6
Hardware: x86_64
OS: Linux
high
high
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On: 1312419
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-19 01:11 UTC by Brad Buckingham
Modified: 2020-01-17 15:43 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1312419
Environment:
Last Closed: 2016-09-26 16:01:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1358948 0 unspecified CLOSED Small memory leak when (un)installing a package from Satellite6 2021-02-22 00:41:40 UTC

Internal Links: 1358948

Comment 2 Pavel Moravec 2016-08-10 12:57:31 UTC
Some valgrind tests showed that:

- valgrind itself didnt identify a direct leak, rather memory was accumulated as "still reachable"

- running a short test and a longer one, attached valgrind reports are as https://bugzilla.redhat.com/show_bug.cgi?id=1312419#c61 / https://bugzilla.redhat.com/show_bug.cgi?id=1312419#c62

- comparing the outputs, there are few "still reachable" areas where longer test has bigger figures, i.e.:

==14354== 272,640 bytes in 355 blocks are still reachable in loss record 6,134 of 6,135
==14354==    at 0x4C29BFD: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==14354==    by 0x5967FD8: dictresize (dictobject.c:652)
==14354==    by 0x59C5DE3: PyEval_EvalFrameEx (ceval.c:1780)
==14354==    by 0x59CA1EC: PyEval_EvalCodeEx (ceval.c:3330)
==14354==    by 0x59571BC: function_call (funcobject.c:526)
==14354==    by 0x59320C2: PyObject_Call (abstract.c:2529)
==14354==    by 0x59410B4: instancemethod_call (classobject.c:2602)
==14354==    by 0x59320C2: PyObject_Call (abstract.c:2529)
==14354==    by 0x5989186: slot_tp_init (typeobject.c:5692)
==14354==    by 0x5987E9E: type_call (typeobject.c:745)
==14354==    by 0x59320C2: PyObject_Call (abstract.c:2529)
==14354==    by 0x59C638B: do_call (ceval.c:4316)
==14354==    by 0x59C638B: call_function (ceval.c:4121)
==14354==    by 0x59C638B: PyEval_EvalFrameEx (ceval.c:2740)

in longer test, vs.:

==20371== 83,712 bytes in 109 blocks are still reachable in loss record 6,012 of 6,019
==20371==    at 0x4C29BFD: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==20371==    by 0x5967FD8: dictresize (dictobject.c:652)
==20371==    by 0x59C5DE3: PyEval_EvalFrameEx (ceval.c:1780)
==20371==    by 0x59CA1EC: PyEval_EvalCodeEx (ceval.c:3330)
==20371==    by 0x59571BC: function_call (funcobject.c:526)
==20371==    by 0x59320C2: PyObject_Call (abstract.c:2529)
==20371==    by 0x59410B4: instancemethod_call (classobject.c:2602)
==20371==    by 0x59320C2: PyObject_Call (abstract.c:2529)
==20371==    by 0x5989186: slot_tp_init (typeobject.c:5692)
==20371==    by 0x5987E9E: type_call (typeobject.c:745)
==20371==    by 0x59320C2: PyObject_Call (abstract.c:2529)
==20371==    by 0x59C638B: do_call (ceval.c:4316)
==20371==    by 0x59C638B: call_function (ceval.c:4121)
==20371==    by 0x59C638B: PyEval_EvalFrameEx (ceval.c:2740)

in shorter test.

Comment 3 Pavel Moravec 2016-08-10 13:04:24 UTC
Also, some memory leak is seen when following this scenario:

python client (just sending a messages via qdrouterd to some qpidd exchange via link routing):

#!/usr/bin/python

from time import sleep
from uuid import uuid4

from proton import ConnectionException
from proton import Message

from proton.utils import BlockingConnection

import traceback
import random

conn = BlockingConnection("proton+amqp://0.0.0.0:5648", ssl_domain=None, heartbeat=2)

while True:
  try:
    snd = conn.create_sender("pulp.ex", name=str(uuid4()))
    while True:
      snd.send(Message(body="test", durable=True))
      print "msg sent"
      sleep(random.uniform(0.01,0.1))
  except ConnectionException:
    try:
      if conn:
        conn.close()
        conn = BlockingConnection("proton+amqp://0.0.0.0:5648", ssl_domain=None, heartbeat=2)
    except Exception, e:
      print e
      print(traceback.format_exc())


Run it in one terminal, and in another one time to time restart qpidd service (that will drop links and break the script, so run the script in a loop).

Not sure if the leak is the same or not, feel free to create new BZ if it is a different leak.


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