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

Leak of qdr_delivery_t (and associated message) on shutdown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.10.0, 1.11.0
    • Backlog
    • Router Node
    • None

    Description

      Occasionally the system_tests_console.py test will fail when run with CMAKE_BUILD_TYPE=Debug and -DRUNTIME_CHECK=asan

      The issue is not console related - the unit test's use of test clients flushes out the problem.

      ASAN error:

      55: ==9314==ERROR: LeakSanitizer: detected memory leaks
      55:
      55: Indirect leak of 21888 byte(s) in 114 object(s) allocated from:
      55: #0 0x7f719dd04b35 in __interceptor_posix_memalign (/lib64/libasan.so.5+0x10eb35)
      55: #1 0x7f719d52ad27 in qd_alloc /home/kgiusti/work/dispatch/qpid-dispatch/src/alloc_pool.c:320
      55: #2 0x7f719d5707f8 in new_qd_iterator_t /home/kgiusti/work/dispatch/qpid-dispatch/src/iterator.c:71
      55: #3 0x7f719d57803e in qd_iterator_buffer /home/kgiusti/work/dispatch/qpid-dispatch/src/iterator.c:597
      55: #4 0x7f719d59a73b in qd_message_field_iterator /home/kgiusti/work/dispatch/qpid-dispatch/src/message.c:2021
      55: #5 0x7f719d5908fb in qd_message_message_annotations /home/kgiusti/work/dispatch/qpid-dispatch/src/message.c:1061
      55: #6 0x7f719d6fd50a in AMQP_rx_handler /home/kgiusti/work/dispatch/qpid-dispatch/src/router_node.c:509
      55: #7 0x7f719d555185 in do_receive /home/kgiusti/work/dispatch/qpid-dispatch/src/container.c:185
      55: #8 0x7f719d55ae03 in qd_container_handle_event /home/kgiusti/work/dispatch/qpid-dispatch/src/container.c:647
      55: #9 0x7f719d71b57d in handle /home/kgiusti/work/dispatch/qpid-dispatch/src/server.c:996
      55: #10 0x7f719d71b773 in thread_run /home/kgiusti/work/dispatch/qpid-dispatch/src/server.c:1021
      55: #11 0x7f719d72199a in qd_server_run /home/kgiusti/work/dispatch/qpid-dispatch/src/server.c:1319
      55: #12 0x4026f8 in main_process /home/kgiusti/work/dispatch/qpid-dispatch/router/src/main.c:113
      55: #13 0x404576 in main /home/kgiusti/work/dispatch/qpid-dispatch/router/src/main.c:367
      55: #14 0x7f719c2461a2 in __libc_start_main (/lib64/libc.so.6+0x271a2)

      Debug dump file:

      alloc.c: Items of type 'qd_iterator_t' remain allocated at shutdown: 2500
      alloc.c: Items of type 'qd_timer_t' remain allocated at shutdown: 1
      alloc.c: Items of type 'qdr_action_t' remain allocated at shutdown: 5
      alloc.c: Items of type 'qd_buffer_t' remain allocated at shutdown: 1000
      alloc.c: Items of type 'qd_bitmask_t' remain allocated at shutdown: 250
      alloc.c: Items of type 'qd_listener_t' remain allocated at shutdown: 2
      alloc.c: Items of type 'qd_message_t' remain allocated at shutdown: 250
      alloc.c: Items of type 'qd_message_content_t' remain allocated at shutdown: 250
      alloc.c: Items of type 'qdr_delivery_t' remain allocated at shutdown: 250
      alloc.c: Items of type 'qd_link_ref_t' remain allocated at shutdown: 250
      alloc.c: Items of type 'qd_parsed_field_t' remain allocated at shutdown: 1000
      alloc.c: Items of type 'qdr_delivery_ref_t' remain allocated at shutdown: 250

      Attachments

        Activity

          People

            Unassigned Unassigned
            kgiusti Ken Giusti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: