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

system_tests_http2 failing with ASAN use after free error and memory leak

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.15.0
    • Protocol Adaptors
    • None

    Description

      system_tests_http2 is failing on Travis with the following 2 issues, one is a use after free and the other is a memory leak

       

      68: ==18297==ERROR: AddressSanitizer: heap-use-after-free on address 0x602000005250 at pc 0x00000043ad2b bp 0x7f9041cc7930 sp 0x7f9041cc70b8
      68: READ of size 2 at 0x602000005250 thread T4
      68:     #0 0x43ad2a in printf_common(void*, char const*, __va_list_tag*) (/home/travis/build/apache/qpid-dispatch/build/router/qdrouterd+0x43ad2a)
      68:     #1 0x7f90491bee53 in qd_vlog_impl /home/travis/build/apache/qpid-dispatch/src/log.c:433:5
      68:     #2 0x7f90491c0c60 in qd_log_impl /home/travis/build/apache/qpid-dispatch/src/log.c:453:3
      68:     #3 0x7f90490d89a1 in handle_outgoing_http /home/travis/build/apache/qpid-dispatch/src/adaptors/http2/http2_adaptor.c:1645:17
      68:     #4 0x7f90490eb623 in qdr_http_deliver /home/travis/build/apache/qpid-dispatch/src/adaptors/http2/http2_adaptor.c:1860:25
      68:     #5 0x7f90492fb213 in qdr_link_process_deliveries /home/travis/build/apache/qpid-dispatch/src/router_core/transfer.c:167:32
      68:     #6 0x7f90492491a7 in qdr_connection_process /home/travis/build/apache/qpid-dispatch/src/router_core/connections.c:414:37
      68:     #7 0x7f90490d186c in handle_connection_event /home/travis/build/apache/qpid-dispatch/src/adaptors/http2/http2_adaptor.c:2293:16
      68:     #8 0x7f9049367afd in handle /home/travis/build/apache/qpid-dispatch/src/server.c
      68:     #9 0x7f904936159f in thread_run /home/travis/build/apache/qpid-dispatch/src/server.c:1122:23
      68:     #10 0x7f9048dc1608 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x9608)
      68:     #11 0x7f90485ec292 in clone (/lib/x86_64-linux-gnu/libc.so.6+0x122292)69: Indirect leak of 1024 byte(s) in 1 object(s) allocated from:
      69:     #0 0x7f01300b0667 in __interceptor_malloc (/lib64/libasan.so.6+0xb0667)
      69:     #1 0x7f012edf2525 in default_malloc /home/gmurthy/opensource/nghttp2-1.41.0/lib/nghttp2_mem.c:30
      69:     #2 0x7f012edf25d0 in nghttp2_mem_malloc /home/gmurthy/opensource/nghttp2-1.41.0/lib/nghttp2_mem.c:57
      69:     #3 0x7f012edeea59 in hd_ringbuf_init /home/gmurthy/opensource/nghttp2-1.41.0/lib/nghttp2_hd.c:593
      69:     #4 0x7f012edeedd3 in hd_context_init /home/gmurthy/opensource/nghttp2-1.41.0/lib/nghttp2_hd.c:674
      69:     #5 0x7f012edeee73 in nghttp2_hd_deflate_init2 /home/gmurthy/opensource/nghttp2-1.41.0/lib/nghttp2_hd.c:700
      69:     #6 0x7f012eddf3b3 in session_new /home/gmurthy/opensource/nghttp2-1.41.0/lib/nghttp2_session.c:532
      69:     #7 0x7f012eddf79a in nghttp2_session_client_new3 /home/gmurthy/opensource/nghttp2-1.41.0/lib/nghttp2_session.c:622
      69:     #8 0x7f012eddf71d in nghttp2_session_client_new /home/gmurthy/opensource/nghttp2-1.41.0/lib/nghttp2_session.c:604
      69:     #9 0x7f012f64f199 in handle_connection_event /home/gmurthy/opensource/qpid-dispatch/src/adaptors/http2/http2_adaptor.c:2245
      69:     #10 0x7f012f8ef34c in handle_event_with_context /home/gmurthy/opensource/qpid-dispatch/src/server.c:804
      69:     #11 0x7f012f8ef38d in do_handle_raw_connection_event /home/gmurthy/opensource/qpid-dispatch/src/server.c:810
      69:     #12 0x7f012f8f3bdc in handle /home/gmurthy/opensource/qpid-dispatch/src/server.c:1090
      69:     #13 0x7f012f8f3e9d in thread_run /home/gmurthy/opensource/qpid-dispatch/src/server.c:1122
      69:     #14 0x7f012f7810a0 in _thread_init /home/gmurthy/opensource/qpid-dispatch/src/posix/threading.c:172
      69:     #15 0x7f012f07f431 in start_thread (/lib64/libpthread.so.0+0x9431) 

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: