Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-26470

Potential memory leak due to cyclic reference between DcpProducer and ActiveStream objects

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.5.0
    • 5.0.0
    • couchbase-bucket
    • None
    • Untriaged
    • Unknown

    Description

      DcpProducer obj holds a reference to an ActiveStream obj and vice versa.
      We will have a memory leak if the reference to the ActiveStream is not released explicitly (by DcpProducer obj) when the higher level DcpConnMap obj decides that it no longer needs DcpProducer obj.

      Currently if DcpConnMap obj gets deleted without calling shutDownAllConnections() we can have memory leaks. This is demonstrated by the address sanitizer failure in http://review.couchbase.org/#/c/84652/1

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              manu Manu Dhundi (Inactive)
              manu Manu Dhundi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty