Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-1246

Address Proxy module leaks qdrc_endpoint_t on shutdown

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.5.0
    • Fix Version/s: None
    • Component/s: Routing Engine
    • Labels:
      None

      Description

      Running the system_tests_edge_router under valgrind:

      ==21590== 657 (256 direct, 401 indirect) bytes in 4 blocks are definitely lost in loss record 2,886 of 3,532
      ==21590== at 0x4C3147C: memalign (vg_replace_malloc.c:908)
      ==21590== by 0x4C31589: posix_memalign (vg_replace_malloc.c:1072)
      ==21590== by 0x4EA12FF: qd_alloc (alloc_pool.c:181)
      ==21590== by 0x4E83086: qdrc_endpoint_create_link_CT (core_link_endpoint.c:70)
      ==21590== by 0x4E92C2C: on_conn_event (addr_proxy.c:237)
      ==21590== by 0x4E92C2C: on_conn_event (addr_proxy.c:199)
      ==21590== by 0x4E82E28: qdrc_event_conn_raise (core_events.c:90)
      ==21590== by 0x4E82E28: qdrc_event_conn_raise (core_events.c:90)
      ==21590== by 0x4E8123F: qdr_connection_opened_CT (connections.c:1147)
      ==21590== by 0x4E8C916: router_core_thread (router_core_thread.c:124)
      ==21590== by 0x5511593: start_thread (in /usr/lib64/libpthread-2.27.so)
      ==21590== by 0x62A6F4E: clone (in /usr/lib64/libc-2.27.so)
      ==21590==

      Appears that the endpoint allocated here in addr_proxy.c:

      //
      // Attach a receiving link for edge address tracking updates.
      //
      ap->tracking_endpoint =
      qdrc_endpoint_create_link_CT(ap->core, conn, QD_INCOMING,
      qdr_terminus_normal(QD_TERMINUS_EDGE_ADDRESS_TRACKING),
      qdr_terminus(0), &ap->endpoint_descriptor, ap);

      is not released when the router is shutdown

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chug Chuck Rolke
                Reporter:
                kgiusti Ken Giusti
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: