Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.2.3
    • Fix Version/s: 3.2.4
    • Component/s: None
    • Labels:
      None
    • Environment:

      Windows xp service pack 3, ActiveMQ broker 5.3.1, apr 1.4.2, apr-util 1.3.9, apr iconv 1.2.1

      Description

      We found a large number of memory leaks in ActiveMQCPP and APR while we ran DevPartner error detection. We are wondering if you can fix them in branch 3.2.4? Thank you very much for your help in advance!

      We saved a copy of the error detection report. Attached please find the file. Also we did restart the message broker during our test.

      1. MemoryLeaks3.JPG
        215 kB
        Helen Huang
      2. MemoryLeaks2.JPG
        264 kB
        Helen Huang
      3. MemoryLeaks1.JPG
        282 kB
        Helen Huang
      4. Memory Leaks.xml
        4.05 MB
        Helen Huang
      5. ActiveMQCPP-Memory-Leaks.zip
        2.16 MB
        Helen Huang

        Activity

        Hide
        Timothy Bish added a comment -

        Working through some of the locations that are shown here I've not been able to find any that actually leak, the memory is released as expected. I think the leak tracker being used is confused by the smart pointers and loses track of the memory allocation / deallocation points. Older versions of valgrind had similar issues.

        Show
        Timothy Bish added a comment - Working through some of the locations that are shown here I've not been able to find any that actually leak, the memory is released as expected. I think the leak tracker being used is confused by the smart pointers and loses track of the memory allocation / deallocation points. Older versions of valgrind had similar issues.
        Hide
        Timothy Bish added a comment -

        It appears that your leak detection software gets confused by smart pointers. Testing with valgrind using the CMSTemplate examples and restarting the broker doesn't show any leaks.

        Show
        Timothy Bish added a comment - It appears that your leak detection software gets confused by smart pointers. Testing with valgrind using the CMSTemplate examples and restarting the broker doesn't show any leaks.
        Hide
        Helen Huang added a comment -

        Attached one more screenshot. Thanks!

        Show
        Helen Huang added a comment - Attached one more screenshot. Thanks!
        Hide
        Helen Huang added a comment -

        Attached the error report in xml, and also the screen shots I have taken

        Show
        Helen Huang added a comment - Attached the error report in xml, and also the screen shots I have taken
        Hide
        Timothy Bish added a comment -

        Would be good if we could get an export of the results as txt or pdf etc.

        Show
        Timothy Bish added a comment - Would be good if we could get an export of the results as txt or pdf etc.
        Hide
        Helen Huang added a comment -

        I will take screen shots of the error report today and add them as attachments. Thanks!

        Show
        Helen Huang added a comment - I will take screen shots of the error report today and add them as attachments. Thanks!
        Hide
        Timothy Bish added a comment -

        I don't have access to this application, so I can't review the provided file.

        APR specific memory leaks should be directed towards the APR bugzilla issue tracker.

        Show
        Timothy Bish added a comment - I don't have access to this application, so I can't review the provided file. APR specific memory leaks should be directed towards the APR bugzilla issue tracker.

          People

          • Assignee:
            Timothy Bish
            Reporter:
            Helen Huang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development