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

system_tests_tcp_adaptor fails with ASAN leak of pn_data_t object

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.17.0, 1.16.1
    • Protocol Adaptors
    • None

    Description

      https://travis-ci.com/github/apache/qpid-dispatch/jobs/512858013#L12911

       

      71: >>>>
      71: 
      71: =================================================================
      71: ==16660==ERROR: LeakSanitizer: detected memory leaks
      71: 
      71: Indirect leak of 288 byte(s) in 1 object(s) allocated from:
      71:     #0 0x7f28fa9c3961 in realloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98961)
      71:     #1 0x7f28f7f1108a in pni_mem_subreallocate /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/core/memory.c:275
      71:     #2 0x7f28f7f0cdf2 in pni_data_grow.lto_priv.446 /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/core/codec.c:428
      71:     #3 0x7f28f7f09674 in pni_data_new /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/core/codec.c:1228
      71:     #4 0x7f28f7f0a11d in pni_data_add /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/core/codec.c:1518
      71:     #5 0x7f28f7f0a2d6 in pn_data_put_map /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/core/codec.c:1572
      71:     #6 0x7f28fa0dab52 in qdr_tcp_conn_properties /home/travis/build/apache/qpid-dispatch/src/adaptors/tcp_adaptor.c:679
      71:     #7 0x7f28fa0dae38 in qdr_tcp_connection_ingress_accept /home/travis/build/apache/qpid-dispatch/src/adaptors/tcp_adaptor.c:697
      71:     #8 0x7f28fa0db71d in handle_connection_event /home/travis/build/apache/qpid-dispatch/src/adaptors/tcp_adaptor.c:773
      71:     #9 0x7f28fa2a3026 in handle_event_with_context /home/travis/build/apache/qpid-dispatch/src/server.c:802
      71:     #10 0x7f28fa2a3068 in do_handle_raw_connection_event /home/travis/build/apache/qpid-dispatch/src/server.c:808
      71:     #11 0x7f28fa2a64fd in handle /home/travis/build/apache/qpid-dispatch/src/server.c:1089
      71:     #12 0x7f28fa2a675e in thread_run /home/travis/build/apache/qpid-dispatch/src/server.c:1121
      71:     #13 0x7f28fa182e4b in _thread_init /home/travis/build/apache/qpid-dispatch/src/posix/threading.c:172
      71:     #14 0x7f28f9b406b9 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76b9)
      71: 
      71: Indirect leak of 288 byte(s) in 1 object(s) allocated from:
      71:     #0 0x7f28fa9c3961 in realloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98961)
      71:     #1 0x7f28f7f1108a in pni_mem_subreallocate /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/core/memory.c:275
      71:     #2 0x7f28f7f0cdf2 in pni_data_grow.lto_priv.446 /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/core/codec.c:428
      71:     #3 0x7f28f7f09674 in pni_data_new /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/core/codec.c:1228
      71:     #4 0x7f28f7f0a11d in pni_data_add /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/core/codec.c:1518
      71:     #5 0x7f28f7f0a2d6 in pn_data_put_map /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/core/codec.c:1572
      71:     #6 0x7f28fa0dab52 in qdr_tcp_conn_properties /home/travis/build/apache/qpid-dispatch/src/adaptors/tcp_adaptor.c:679
      71:     #7 0x7f28fa0dae38 in qdr_tcp_connection_ingress_accept /home/travis/build/apache/qpid-dispatch/src/adaptors/tcp_adaptor.c:697
      71:     #8 0x7f28fa0db71d in handle_connection_event /home/travis/build/apache/qpid-dispatch/src/adaptors/tcp_adaptor.c:773
      71:     #9 0x7f28fa2a3026 in handle_event_with_context /home/travis/build/apache/qpid-dispatch/src/server.c:802
      71:     #10 0x7f28fa2a3068 in do_handle_raw_connection_event /home/travis/build/apache/qpid-dispatch/src/server.c:808
      71:     #11 0x7f28fa2a64fd in handle /home/travis/build/apache/qpid-dispatch/src/server.c:1089
      71:     #12 0x7f28fa2a675e in thread_run /home/travis/build/apache/qpid-dispatch/src/server.c:1121
      71:     #13 0x7f28fa2ac01a in qd_server_run /home/travis/build/apache/qpid-dispatch/src/server.c:1501
      71:     #14 0x401dc0 in main_process /home/travis/build/apache/qpid-dispatch/router/src/main.c:115
      71:     #15 0x403927 in main /home/travis/build/apache/qpid-dispatch/router/src/main.c:369
      71:     #16 0x7f28f8a8282f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
      71: 
      71: Indirect leak of 288 byte(s) in 1 object(s) allocated from:
      71:     #0 0x7f28fa9c3961 in realloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98961)
      71:     #1 0x7f28f7f1108a in pni_mem_subreallocate /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/core/memory.c:275
      71:     #2 0x7f28f7f0cdf2 in pni_data_grow.lto_priv.446 /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/core/codec.c:428
      71:     #3 0x7f28f7f09674 in pni_data_new /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/core/codec.c:1228
      71:     #4 0x7f28f7f0a11d in pni_data_add /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/core/codec.c:1518
      71:     #5 0x7f28f7f0a2d6 in pn_data_put_map /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/core/codec.c:1572
      71:     #6 0x7f28fa0dab52 in qdr_tcp_conn_properties /home/travis/build/apache/qpid-dispatch/src/adaptors/tcp_adaptor.c:679
      71:     #7 0x7f28fa0ddf35 in qdr_tcp_open_server_side_connection /home/travis/build/apache/qpid-dispatch/src/adaptors/tcp_adaptor.c:945
      71:     #8 0x7f28fa0dbc64 in handle_connection_event /home/travis/build/apache/qpid-dispatch/src/adaptors/tcp_adaptor.c:785
      71:     #9 0x7f28fa2a3026 in handle_event_with_context /home/travis/build/apache/qpid-dispatch/src/server.c:802
      71:     #10 0x7f28fa2a3068 in do_handle_raw_connection_event /home/travis/build/apache/qpid-dispatch/src/server.c:808
      71:     #11 0x7f28fa2a64fd in handle /home/travis/build/apache/qpid-dispatch/src/server.c:1089
      71:     #12 0x7f28fa2a675e in thread_run /home/travis/build/apache/qpid-dispatch/src/server.c:1121
      71:     #13 0x7f28fa2ac01a in qd_server_run /home/travis/build/apache/qpid-dispatch/src/server.c:1501
      71:     #14 0x401dc0 in main_process /home/travis/build/apache/qpid-dispatch/router/src/main.c:115
      71:     #15 0x403927 in main /home/travis/build/apache/qpid-dispatch/router/src/main.c:369
      71:     #16 0x7f28f8a8282f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
      71: 
      71: Indirect leak of 288 byte(s) in 1 object(s) allocated from:
      71:     #0 0x7f28fa9c3961 in realloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98961)
      71:     #1 0x7f28f7f1108a in pni_mem_subreallocate /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/core/memory.c:275
      71:     #2 0x7f28f7f0cdf2 in pni_data_grow.lto_priv.446 /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/core/codec.c:428
      71:     #3 0x7f28f7f09674 in pni_data_new /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/core/codec.c:1228
      71:     #4 0x7f28f7f0a11d in pni_data_add /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/core/codec.c:1518
      71:     #5 0x7f28f7f0a2d6 in pn_data_put_map /home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/core/codec.c:1572
      71:     #6 0x7f28fa0dab52 in qdr_tcp_conn_properties /home/travis/build/apache/qpid-dispatch/src/adaptors/tcp_adaptor.c:679
      71:     #7 0x7f28fa0ddf35 in qdr_tcp_open_server_side_connection /home/travis/build/apache/qpid-dispatch/src/adaptors/tcp_adaptor.c:945
      71:     #8 0x7f28fa0df089 in qdr_tcp_connection_egress /home/travis/build/apache/qpid-dispatch/src/adaptors/tcp_adaptor.c:1040
      71:     #9 0x7f28fa0e1ecf in qd_dispatch_configure_tcp_connector /home/travis/build/apache/qpid-dispatch/src/adaptors/tcp_adaptor.c:1234
      71:     #10 0x7f28f2758e3f in ffi_call_unix64 (/usr/lib/x86_64-linux-gnu/libffi.so.6+0x5e3f)
      71:     #11 0x7ffd1b1814cf  (<unknown module>)
      71: 
      71: -----------------------------------------------------
      71: Suppressions used:71:   count      bytes template
      71:       1         56 ^IoAdapter_init$
      71:       1         24 ^pn_condition$
      71:       1       1536 ^pn_raw_connection$
      71:       8        384 ^pn_buffer$
      71:       9        472 ^pn_object_new$
      71:       1        128 ^pn_list$
      71:       2         48 ^pni_record_create$
      71:     601     896692 /libpython3.*.so
      71: -----------------------------------------------------
      71: 
      71: SUMMARY: AddressSanitizer: 1152 byte(s) leaked in 4 allocation(s).
      71: <<<<
      71: 
      71: ----------------------------------------------------------------------
      71: Ran 10 tests in 31.952s
      71: 
      71: FAILED (errors=2, skipped=2)
      71/73 Test #71: system_tests_tcp_adaptor ..........................***Failed   32.10 sec 

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            gmurthy Ganesh Murthy
            gmurthy Ganesh Murthy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment