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

heap-use-after-free in system_tests_policy_oversize_compound

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • 1.17.0
    • None
    • None

    Description

      https://travis-ci.com/github/jiridanek/qpid-dispatch/jobs/502247638#L5594

      This is from the zero-size free_list PR

      https://travis-ci.com/github/jiridanek/qpid-dispatch/jobs/502247638#L5594

      26: WARNING: ThreadSanitizer: heap-use-after-free (pid=15579)
      26:   Read of size 8 at 0x7b4000000330 by thread T2:
      26:     #0 qd_buffer_list_free_buffers /home/travis/build/jiridanek/qpid-dispatch/src/buffer.c:88 (libqpid-dispatch.so+0x6427c)
      26:     #1 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1030 (libqpid-dispatch.so+0x8733f)
      26:     #2 qdr_do_message_to_addr_free /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:102 (libqpid-dispatch.so+0xc97dc)
      26:     #3 qdr_general_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core.c:927 (libqpid-dispatch.so+0xc3ff9)
      26:     #4 qd_timer_visit /home/travis/build/jiridanek/qpid-dispatch/src/timer.c:205 (libqpid-dispatch.so+0xf1f47)
      26:     #5 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1006 (libqpid-dispatch.so+0xec93e)
      26:     #6 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee7d7)
      26:     #7 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #8 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Previous write of size 8 at 0x7b4000000330 by thread T2 (mutexes: write M359):
      26:     #0 free <null> (libtsan.so.0+0x35f45)
      26:     #1 qd_dealloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:504 (libqpid-dispatch.so+0x62338)
      26:     #2 free_qd_message_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:91 (libqpid-dispatch.so+0x8295b)
      26:     #3 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1095 (libqpid-dispatch.so+0x8739e)
      26:     #4 cleanup_link /home/travis/build/jiridanek/qpid-dispatch/src/container.c:360 (libqpid-dispatch.so+0x74ccf)
      26:     #5 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:1000 (libqpid-dispatch.so+0x75146)
      26:     #6 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:989 (libqpid-dispatch.so+0x75146)
      26:     #7 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1140 (libqpid-dispatch.so+0xe6791)
      26:     #8 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1093 (libqpid-dispatch.so+0xe6791)
      26:     #9 close_links /home/travis/build/jiridanek/qpid-dispatch/src/container.c:336 (libqpid-dispatch.so+0x75229)
      26:     #10 qd_container_handle_event /home/travis/build/jiridanek/qpid-dispatch/src/container.c:528 (libqpid-dispatch.so+0x76143)
      26:     #11 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1095 (libqpid-dispatch.so+0xec871)
      26:     #12 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee6d8)
      26:     #13 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #14 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Mutex M359 (0x7b1000009200) created at:
      26:     #0 pthread_mutex_init <null> (libtsan.so.0+0x4a636)
      26:     #1 sys_mutex /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:43 (libqpid-dispatch.so+0x96dbf)
      26:     #2 qd_alloc_init /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:295 (libqpid-dispatch.so+0x61bda)
      26:     #3 qd_alloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:329 (libqpid-dispatch.so+0x61bda)
      26:     #4 new_qd_message_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:91 (libqpid-dispatch.so+0x82905)
      26:     #5 qd_message /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1002 (libqpid-dispatch.so+0x82e1c)
      26:     #6 _create_message_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:682 (libqpid-dispatch.so+0xb17ea)
      26:     #7 _flush_send_queue_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:287 (libqpid-dispatch.so+0xb17ea)
      26:     #8 _send_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:270 (libqpid-dispatch.so+0xb22ca)
      26:     #9 qdrc_client_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:259 (libqpid-dispatch.so+0xb22ca)
      26:     #10 qcm_addr_lookup_process_pending_requests_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:486 (libqpid-dispatch.so+0xde913)
      26:     #11 qcm_addr_lookup_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:563 (libqpid-dispatch.so+0xdedcf)
      26:     #12 qdr_link_inbound_first_attach_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/connections.c:1775 (libqpid-dispatch.so+0xaa64b)
      26:     #13 router_core_thread /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:239 (libqpid-dispatch.so+0xca445)
      26:     #14 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #15 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Thread T2 (tid=15582, running) created by main thread at:
      26:     #0 pthread_create <null> (libtsan.so.0+0x5ea99)
      26:     #1 sys_thread /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:181 (libqpid-dispatch.so+0x97312)
      26:     #2 qd_server_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1485 (libqpid-dispatch.so+0xef24a)
      26:     #3 main_process /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x2c27)
      26:     #4 main /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x2882)
      26: 
      26: SUMMARY: ThreadSanitizer: heap-use-after-free /home/travis/build/jiridanek/qpid-dispatch/src/buffer.c:88 in qd_buffer_list_free_buffers
      26: ==================
      
      26: ==================
      26: WARNING: ThreadSanitizer: heap-use-after-free (pid=15579)
      26:   Read of size 8 at 0x7b4000000350 by thread T2:
      26:     #0 qd_buffer_list_free_buffers /home/travis/build/jiridanek/qpid-dispatch/src/buffer.c:88 (libqpid-dispatch.so+0x6427c)
      26:     #1 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1031 (libqpid-dispatch.so+0x87349)
      26:     #2 qdr_do_message_to_addr_free /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:102 (libqpid-dispatch.so+0xc97dc)
      26:     #3 qdr_general_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core.c:927 (libqpid-dispatch.so+0xc3ff9)
      26:     #4 qd_timer_visit /home/travis/build/jiridanek/qpid-dispatch/src/timer.c:205 (libqpid-dispatch.so+0xf1f47)
      26:     #5 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1006 (libqpid-dispatch.so+0xec93e)
      26:     #6 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee7d7)
      26:     #7 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #8 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Previous write of size 8 at 0x7b4000000350 by thread T2 (mutexes: write M359):
      26:     #0 free <null> (libtsan.so.0+0x35f45)
      26:     #1 qd_dealloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:504 (libqpid-dispatch.so+0x62338)
      26:     #2 free_qd_message_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:91 (libqpid-dispatch.so+0x8295b)
      26:     #3 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1095 (libqpid-dispatch.so+0x8739e)
      26:     #4 cleanup_link /home/travis/build/jiridanek/qpid-dispatch/src/container.c:360 (libqpid-dispatch.so+0x74ccf)
      26:     #5 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:1000 (libqpid-dispatch.so+0x75146)
      26:     #6 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:989 (libqpid-dispatch.so+0x75146)
      26:     #7 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1140 (libqpid-dispatch.so+0xe6791)
      26:     #8 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1093 (libqpid-dispatch.so+0xe6791)
      26:     #9 close_links /home/travis/build/jiridanek/qpid-dispatch/src/container.c:336 (libqpid-dispatch.so+0x75229)
      26:     #10 qd_container_handle_event /home/travis/build/jiridanek/qpid-dispatch/src/container.c:528 (libqpid-dispatch.so+0x76143)
      26:     #11 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1095 (libqpid-dispatch.so+0xec871)
      26:     #12 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee6d8)
      26:     #13 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #14 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Mutex M359 (0x7b1000009200) created at:
      26:     #0 pthread_mutex_init <null> (libtsan.so.0+0x4a636)
      26:     #1 sys_mutex /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:43 (libqpid-dispatch.so+0x96dbf)
      26:     #2 qd_alloc_init /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:295 (libqpid-dispatch.so+0x61bda)
      26:     #3 qd_alloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:329 (libqpid-dispatch.so+0x61bda)
      26:     #4 new_qd_message_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:91 (libqpid-dispatch.so+0x82905)
      26:     #5 qd_message /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1002 (libqpid-dispatch.so+0x82e1c)
      26:     #6 _create_message_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:682 (libqpid-dispatch.so+0xb17ea)
      26:     #7 _flush_send_queue_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:287 (libqpid-dispatch.so+0xb17ea)
      26:     #8 _send_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:270 (libqpid-dispatch.so+0xb22ca)
      26:     #9 qdrc_client_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:259 (libqpid-dispatch.so+0xb22ca)
      26:     #10 qcm_addr_lookup_process_pending_requests_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:486 (libqpid-dispatch.so+0xde913)
      26:     #11 qcm_addr_lookup_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:563 (libqpid-dispatch.so+0xdedcf)
      26:     #12 qdr_link_inbound_first_attach_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/connections.c:1775 (libqpid-dispatch.so+0xaa64b)
      26:     #13 router_core_thread /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:239 (libqpid-dispatch.so+0xca445)
      26:     #14 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #15 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Thread T2 (tid=15582, running) created by main thread at:
      26:     #0 pthread_create <null> (libtsan.so.0+0x5ea99)
      26:     #1 sys_thread /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:181 (libqpid-dispatch.so+0x97312)
      26:     #2 qd_server_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1485 (libqpid-dispatch.so+0xef24a)
      26:     #3 main_process /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x2c27)
      26:     #4 main /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x2882)
      26: 
      26: SUMMARY: ThreadSanitizer: heap-use-after-free /home/travis/build/jiridanek/qpid-dispatch/src/buffer.c:88 in qd_buffer_list_free_buffers
      26: ==================
      
      26: ==================
      26: WARNING: ThreadSanitizer: heap-use-after-free (pid=15579)
      26:   Read of size 8 at 0x7b4000000370 by thread T2:
      26:     #0 qd_buffer_list_free_buffers /home/travis/build/jiridanek/qpid-dispatch/src/buffer.c:88 (libqpid-dispatch.so+0x6427c)
      26:     #1 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1032 (libqpid-dispatch.so+0x87353)
      26:     #2 qdr_do_message_to_addr_free /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:102 (libqpid-dispatch.so+0xc97dc)
      26:     #3 qdr_general_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core.c:927 (libqpid-dispatch.so+0xc3ff9)
      26:     #4 qd_timer_visit /home/travis/build/jiridanek/qpid-dispatch/src/timer.c:205 (libqpid-dispatch.so+0xf1f47)
      26:     #5 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1006 (libqpid-dispatch.so+0xec93e)
      26:     #6 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee7d7)
      26:     #7 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #8 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Previous write of size 8 at 0x7b4000000370 by thread T2 (mutexes: write M359):
      26:     #0 free <null> (libtsan.so.0+0x35f45)
      26:     #1 qd_dealloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:504 (libqpid-dispatch.so+0x62338)
      26:     #2 free_qd_message_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:91 (libqpid-dispatch.so+0x8295b)
      26:     #3 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1095 (libqpid-dispatch.so+0x8739e)
      26:     #4 cleanup_link /home/travis/build/jiridanek/qpid-dispatch/src/container.c:360 (libqpid-dispatch.so+0x74ccf)
      26:     #5 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:1000 (libqpid-dispatch.so+0x75146)
      26:     #6 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:989 (libqpid-dispatch.so+0x75146)
      26:     #7 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1140 (libqpid-dispatch.so+0xe6791)
      26:     #8 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1093 (libqpid-dispatch.so+0xe6791)
      26:     #9 close_links /home/travis/build/jiridanek/qpid-dispatch/src/container.c:336 (libqpid-dispatch.so+0x75229)
      26:     #10 qd_container_handle_event /home/travis/build/jiridanek/qpid-dispatch/src/container.c:528 (libqpid-dispatch.so+0x76143)
      26:     #11 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1095 (libqpid-dispatch.so+0xec871)
      26:     #12 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee6d8)
      26:     #13 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #14 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Mutex M359 (0x7b1000009200) created at:
      26:     #0 pthread_mutex_init <null> (libtsan.so.0+0x4a636)
      26:     #1 sys_mutex /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:43 (libqpid-dispatch.so+0x96dbf)
      26:     #2 qd_alloc_init /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:295 (libqpid-dispatch.so+0x61bda)
      26:     #3 qd_alloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:329 (libqpid-dispatch.so+0x61bda)
      26:     #4 new_qd_message_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:91 (libqpid-dispatch.so+0x82905)
      26:     #5 qd_message /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1002 (libqpid-dispatch.so+0x82e1c)
      26:     #6 _create_message_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:682 (libqpid-dispatch.so+0xb17ea)
      26:     #7 _flush_send_queue_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:287 (libqpid-dispatch.so+0xb17ea)
      26:     #8 _send_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:270 (libqpid-dispatch.so+0xb22ca)
      26:     #9 qdrc_client_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:259 (libqpid-dispatch.so+0xb22ca)
      26:     #10 qcm_addr_lookup_process_pending_requests_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:486 (libqpid-dispatch.so+0xde913)
      26:     #11 qcm_addr_lookup_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:563 (libqpid-dispatch.so+0xdedcf)
      26:     #12 qdr_link_inbound_first_attach_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/connections.c:1775 (libqpid-dispatch.so+0xaa64b)
      26:     #13 router_core_thread /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:239 (libqpid-dispatch.so+0xca445)
      26:     #14 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #15 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Thread T2 (tid=15582, running) created by main thread at:
      26:     #0 pthread_create <null> (libtsan.so.0+0x5ea99)
      26:     #1 sys_thread /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:181 (libqpid-dispatch.so+0x97312)
      26:     #2 qd_server_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1485 (libqpid-dispatch.so+0xef24a)
      26:     #3 main_process /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x2c27)
      26:     #4 main /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x2882)
      26: 
      26: SUMMARY: ThreadSanitizer: heap-use-after-free /home/travis/build/jiridanek/qpid-dispatch/src/buffer.c:88 in qd_buffer_list_free_buffers
      26: ==================
      
      26: ==================
      26: WARNING: ThreadSanitizer: heap-use-after-free (pid=15579)
      26:   Read of size 8 at 0x7b4000000328 by thread T2:
      26:     #0 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1034 (libqpid-dispatch.so+0x8735d)
      26:     #1 qdr_do_message_to_addr_free /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:102 (libqpid-dispatch.so+0xc97dc)
      26:     #2 qdr_general_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core.c:927 (libqpid-dispatch.so+0xc3ff9)
      26:     #3 qd_timer_visit /home/travis/build/jiridanek/qpid-dispatch/src/timer.c:205 (libqpid-dispatch.so+0xf1f47)
      26:     #4 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1006 (libqpid-dispatch.so+0xec93e)
      26:     #5 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee7d7)
      26:     #6 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #7 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Previous write of size 8 at 0x7b4000000328 by thread T2 (mutexes: write M359):
      26:     #0 free <null> (libtsan.so.0+0x35f45)
      26:     #1 qd_dealloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:504 (libqpid-dispatch.so+0x62338)
      26:     #2 free_qd_message_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:91 (libqpid-dispatch.so+0x8295b)
      26:     #3 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1095 (libqpid-dispatch.so+0x8739e)
      26:     #4 cleanup_link /home/travis/build/jiridanek/qpid-dispatch/src/container.c:360 (libqpid-dispatch.so+0x74ccf)
      26:     #5 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:1000 (libqpid-dispatch.so+0x75146)
      26:     #6 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:989 (libqpid-dispatch.so+0x75146)
      26:     #7 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1140 (libqpid-dispatch.so+0xe6791)
      26:     #8 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1093 (libqpid-dispatch.so+0xe6791)
      26:     #9 close_links /home/travis/build/jiridanek/qpid-dispatch/src/container.c:336 (libqpid-dispatch.so+0x75229)
      26:     #10 qd_container_handle_event /home/travis/build/jiridanek/qpid-dispatch/src/container.c:528 (libqpid-dispatch.so+0x76143)
      26:     #11 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1095 (libqpid-dispatch.so+0xec871)
      26:     #12 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee6d8)
      26:     #13 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #14 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Mutex M359 (0x7b1000009200) created at:
      26:     #0 pthread_mutex_init <null> (libtsan.so.0+0x4a636)
      26:     #1 sys_mutex /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:43 (libqpid-dispatch.so+0x96dbf)
      26:     #2 qd_alloc_init /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:295 (libqpid-dispatch.so+0x61bda)
      26:     #3 qd_alloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:329 (libqpid-dispatch.so+0x61bda)
      26:     #4 new_qd_message_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:91 (libqpid-dispatch.so+0x82905)
      26:     #5 qd_message /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1002 (libqpid-dispatch.so+0x82e1c)
      26:     #6 _create_message_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:682 (libqpid-dispatch.so+0xb17ea)
      26:     #7 _flush_send_queue_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:287 (libqpid-dispatch.so+0xb17ea)
      26:     #8 _send_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:270 (libqpid-dispatch.so+0xb22ca)
      26:     #9 qdrc_client_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:259 (libqpid-dispatch.so+0xb22ca)
      26:     #10 qcm_addr_lookup_process_pending_requests_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:486 (libqpid-dispatch.so+0xde913)
      26:     #11 qcm_addr_lookup_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:563 (libqpid-dispatch.so+0xdedcf)
      26:     #12 qdr_link_inbound_first_attach_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/connections.c:1775 (libqpid-dispatch.so+0xaa64b)
      26:     #13 router_core_thread /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:239 (libqpid-dispatch.so+0xca445)
      26:     #14 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #15 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Thread T2 (tid=15582, running) created by main thread at:
      26:     #0 pthread_create <null> (libtsan.so.0+0x5ea99)
      26:     #1 sys_thread /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:181 (libqpid-dispatch.so+0x97312)
      26:     #2 qd_server_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1485 (libqpid-dispatch.so+0xef24a)
      26:     #3 main_process /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x2c27)
      26:     #4 main /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x2882)
      26: 
      26: SUMMARY: ThreadSanitizer: heap-use-after-free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1034 in qd_message_free
      26: ==================
      
      26: ==================
      26: WARNING: ThreadSanitizer: heap-use-after-free (pid=15579)
      26:   Read of size 1 at 0x7b40000003cb by thread T2:
      26:     #0 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1036 (libqpid-dispatch.so+0x8736f)
      26:     #1 qdr_do_message_to_addr_free /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:102 (libqpid-dispatch.so+0xc97dc)
      26:     #2 qdr_general_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core.c:927 (libqpid-dispatch.so+0xc3ff9)
      26:     #3 qd_timer_visit /home/travis/build/jiridanek/qpid-dispatch/src/timer.c:205 (libqpid-dispatch.so+0xf1f47)
      26:     #4 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1006 (libqpid-dispatch.so+0xec93e)
      26:     #5 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee7d7)
      26:     #6 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #7 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Previous write of size 8 at 0x7b40000003c8 by thread T2 (mutexes: write M359):
      26:     #0 free <null> (libtsan.so.0+0x35f45)
      26:     #1 qd_dealloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:504 (libqpid-dispatch.so+0x62338)
      26:     #2 free_qd_message_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:91 (libqpid-dispatch.so+0x8295b)
      26:     #3 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1095 (libqpid-dispatch.so+0x8739e)
      26:     #4 cleanup_link /home/travis/build/jiridanek/qpid-dispatch/src/container.c:360 (libqpid-dispatch.so+0x74ccf)
      26:     #5 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:1000 (libqpid-dispatch.so+0x75146)
      26:     #6 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:989 (libqpid-dispatch.so+0x75146)
      26:     #7 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1140 (libqpid-dispatch.so+0xe6791)
      26:     #8 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1093 (libqpid-dispatch.so+0xe6791)
      26:     #9 close_links /home/travis/build/jiridanek/qpid-dispatch/src/container.c:336 (libqpid-dispatch.so+0x75229)
      26:     #10 qd_container_handle_event /home/travis/build/jiridanek/qpid-dispatch/src/container.c:528 (libqpid-dispatch.so+0x76143)
      26:     #11 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1095 (libqpid-dispatch.so+0xec871)
      26:     #12 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee6d8)
      26:     #13 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #14 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Mutex M359 (0x7b1000009200) created at:
      26:     #0 pthread_mutex_init <null> (libtsan.so.0+0x4a636)
      26:     #1 sys_mutex /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:43 (libqpid-dispatch.so+0x96dbf)
      26:     #2 qd_alloc_init /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:295 (libqpid-dispatch.so+0x61bda)
      26:     #3 qd_alloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:329 (libqpid-dispatch.so+0x61bda)
      26:     #4 new_qd_message_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:91 (libqpid-dispatch.so+0x82905)
      26:     #5 qd_message /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1002 (libqpid-dispatch.so+0x82e1c)
      26:     #6 _create_message_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:682 (libqpid-dispatch.so+0xb17ea)
      26:     #7 _flush_send_queue_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:287 (libqpid-dispatch.so+0xb17ea)
      26:     #8 _send_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:270 (libqpid-dispatch.so+0xb22ca)
      26:     #9 qdrc_client_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:259 (libqpid-dispatch.so+0xb22ca)
      26:     #10 qcm_addr_lookup_process_pending_requests_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:486 (libqpid-dispatch.so+0xde913)
      26:     #11 qcm_addr_lookup_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:563 (libqpid-dispatch.so+0xdedcf)
      26:     #12 qdr_link_inbound_first_attach_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/connections.c:1775 (libqpid-dispatch.so+0xaa64b)
      26:     #13 router_core_thread /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:239 (libqpid-dispatch.so+0xca445)
      26:     #14 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #15 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Thread T2 (tid=15582, running) created by main thread at:
      26:     #0 pthread_create <null> (libtsan.so.0+0x5ea99)
      26:     #1 sys_thread /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:181 (libqpid-dispatch.so+0x97312)
      26:     #2 qd_server_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1485 (libqpid-dispatch.so+0xef24a)
      26:     #3 main_process /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x2c27)
      26:     #4 main /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x2882)
      26: 
      26: SUMMARY: ThreadSanitizer: heap-use-after-free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1036 in qd_message_free
      26: ==================
      
      26: ==================
      26: WARNING: ThreadSanitizer: heap-use-after-free (pid=15579)
      26:   Atomic write of size 4 at 0x7b6400050a10 by thread T2:
      26:     #0 __tsan_atomic32_fetch_sub <null> (libtsan.so.0+0x7fc98)
      26:     #1 sys_atomic_sub /home/travis/build/jiridanek/qpid-dispatch/include/qpid/dispatch/atomic.h:48 (libqpid-dispatch.so+0x87391)
      26:     #2 sys_atomic_dec /home/travis/build/jiridanek/qpid-dispatch/include/qpid/dispatch/atomic.h:212 (libqpid-dispatch.so+0x87391)
      26:     #3 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1073 (libqpid-dispatch.so+0x87391)
      26:     #4 qdr_do_message_to_addr_free /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:102 (libqpid-dispatch.so+0xc97dc)
      26:     #5 qdr_general_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core.c:927 (libqpid-dispatch.so+0xc3ff9)
      26:     #6 qd_timer_visit /home/travis/build/jiridanek/qpid-dispatch/src/timer.c:205 (libqpid-dispatch.so+0xf1f47)
      26:     #7 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1006 (libqpid-dispatch.so+0xec93e)
      26:     #8 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee7d7)
      26:     #9 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #10 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Previous write of size 8 at 0x7b6400050a10 by thread T2 (mutexes: write M360):
      26:     #0 free <null> (libtsan.so.0+0x35f45)
      26:     #1 qd_dealloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:504 (libqpid-dispatch.so+0x62338)
      26:     #2 free_qd_message_content_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:92 (libqpid-dispatch.so+0x82acb)
      26:     #3 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1092 (libqpid-dispatch.so+0x87481)
      26:     #4 cleanup_link /home/travis/build/jiridanek/qpid-dispatch/src/container.c:360 (libqpid-dispatch.so+0x74ccf)
      26:     #5 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:1000 (libqpid-dispatch.so+0x75146)
      26:     #6 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:989 (libqpid-dispatch.so+0x75146)
      26:     #7 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1140 (libqpid-dispatch.so+0xe6791)
      26:     #8 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1093 (libqpid-dispatch.so+0xe6791)
      26:     #9 close_links /home/travis/build/jiridanek/qpid-dispatch/src/container.c:336 (libqpid-dispatch.so+0x75229)
      26:     #10 qd_container_handle_event /home/travis/build/jiridanek/qpid-dispatch/src/container.c:528 (libqpid-dispatch.so+0x76143)
      26:     #11 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1095 (libqpid-dispatch.so+0xec871)
      26:     #12 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee6d8)
      26:     #13 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #14 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Mutex M360 (0x7b1000009300) created at:
      26:     #0 pthread_mutex_init <null> (libtsan.so.0+0x4a636)
      26:     #1 sys_mutex /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:43 (libqpid-dispatch.so+0x96dbf)
      26:     #2 qd_alloc_init /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:295 (libqpid-dispatch.so+0x61bda)
      26:     #3 qd_alloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:329 (libqpid-dispatch.so+0x61bda)
      26:     #4 new_qd_message_content_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:92 (libqpid-dispatch.so+0x82a75)
      26:     #5 qd_message /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1008 (libqpid-dispatch.so+0x82e64)
      26:     #6 _create_message_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:682 (libqpid-dispatch.so+0xb17ea)
      26:     #7 _flush_send_queue_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:287 (libqpid-dispatch.so+0xb17ea)
      26:     #8 _send_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:270 (libqpid-dispatch.so+0xb22ca)
      26:     #9 qdrc_client_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:259 (libqpid-dispatch.so+0xb22ca)
      26:     #10 qcm_addr_lookup_process_pending_requests_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:486 (libqpid-dispatch.so+0xde913)
      26:     #11 qcm_addr_lookup_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:563 (libqpid-dispatch.so+0xdedcf)
      26:     #12 qdr_link_inbound_first_attach_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/connections.c:1775 (libqpid-dispatch.so+0xaa64b)
      26:     #13 router_core_thread /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:239 (libqpid-dispatch.so+0xca445)
      26:     #14 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #15 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Thread T2 (tid=15582, running) created by main thread at:
      26:     #0 pthread_create <null> (libtsan.so.0+0x5ea99)
      26:     #1 sys_thread /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:181 (libqpid-dispatch.so+0x97312)
      26:     #2 qd_server_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1485 (libqpid-dispatch.so+0xef24a)
      26:     #3 main_process /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x2c27)
      26:     #4 main /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x2882)
      26: 
      26: SUMMARY: ThreadSanitizer: heap-use-after-free (/lib/x86_64-linux-gnu/libtsan.so.0+0x7fc98) in __tsan_atomic32_fetch_sub
      26: ==================
      
      26: ==================
      26: WARNING: ThreadSanitizer: heap-use-after-free (pid=15579)
      26:   Read of size 8 at 0x7b4000000300 by thread T2:
      26:     #0 qd_dealloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:477 (libqpid-dispatch.so+0x61f25)
      26:     #1 free_qd_message_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:91 (libqpid-dispatch.so+0x8295b)
      26:     #2 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1095 (libqpid-dispatch.so+0x8739e)
      26:     #3 qdr_do_message_to_addr_free /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:102 (libqpid-dispatch.so+0xc97dc)
      26:     #4 qdr_general_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core.c:927 (libqpid-dispatch.so+0xc3ff9)
      26:     #5 qd_timer_visit /home/travis/build/jiridanek/qpid-dispatch/src/timer.c:205 (libqpid-dispatch.so+0xf1f47)
      26:     #6 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1006 (libqpid-dispatch.so+0xec93e)
      26:     #7 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee7d7)
      26:     #8 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #9 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Previous write of size 8 at 0x7b4000000300 by thread T2 (mutexes: write M359):
      26:     #0 free <null> (libtsan.so.0+0x35f45)
      26:     #1 qd_dealloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:504 (libqpid-dispatch.so+0x62338)
      26:     #2 free_qd_message_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:91 (libqpid-dispatch.so+0x8295b)
      26:     #3 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1095 (libqpid-dispatch.so+0x8739e)
      26:     #4 cleanup_link /home/travis/build/jiridanek/qpid-dispatch/src/container.c:360 (libqpid-dispatch.so+0x74ccf)
      26:     #5 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:1000 (libqpid-dispatch.so+0x75146)
      26:     #6 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:989 (libqpid-dispatch.so+0x75146)
      26:     #7 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1140 (libqpid-dispatch.so+0xe6791)
      26:     #8 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1093 (libqpid-dispatch.so+0xe6791)
      26:     #9 close_links /home/travis/build/jiridanek/qpid-dispatch/src/container.c:336 (libqpid-dispatch.so+0x75229)
      26:     #10 qd_container_handle_event /home/travis/build/jiridanek/qpid-dispatch/src/container.c:528 (libqpid-dispatch.so+0x76143)
      26:     #11 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1095 (libqpid-dispatch.so+0xec871)
      26:     #12 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee6d8)
      26:     #13 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #14 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Mutex M359 (0x7b1000009200) created at:
      26:     #0 pthread_mutex_init <null> (libtsan.so.0+0x4a636)
      26:     #1 sys_mutex /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:43 (libqpid-dispatch.so+0x96dbf)
      26:     #2 qd_alloc_init /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:295 (libqpid-dispatch.so+0x61bda)
      26:     #3 qd_alloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:329 (libqpid-dispatch.so+0x61bda)
      26:     #4 new_qd_message_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:91 (libqpid-dispatch.so+0x82905)
      26:     #5 qd_message /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1002 (libqpid-dispatch.so+0x82e1c)
      26:     #6 _create_message_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:682 (libqpid-dispatch.so+0xb17ea)
      26:     #7 _flush_send_queue_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:287 (libqpid-dispatch.so+0xb17ea)
      26:     #8 _send_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:270 (libqpid-dispatch.so+0xb22ca)
      26:     #9 qdrc_client_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:259 (libqpid-dispatch.so+0xb22ca)
      26:     #10 qcm_addr_lookup_process_pending_requests_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:486 (libqpid-dispatch.so+0xde913)
      26:     #11 qcm_addr_lookup_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:563 (libqpid-dispatch.so+0xdedcf)
      26:     #12 qdr_link_inbound_first_attach_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/connections.c:1775 (libqpid-dispatch.so+0xaa64b)
      26:     #13 router_core_thread /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:239 (libqpid-dispatch.so+0xca445)
      26:     #14 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #15 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Thread T2 (tid=15582, running) created by main thread at:
      26:     #0 pthread_create <null> (libtsan.so.0+0x5ea99)
      26:     #1 sys_thread /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:181 (libqpid-dispatch.so+0x97312)
      26:     #2 qd_server_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1485 (libqpid-dispatch.so+0xef24a)
      26:     #3 main_process /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x2c27)
      26:     #4 main /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x2882)
      26: 
      26: SUMMARY: ThreadSanitizer: heap-use-after-free /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:477 in qd_dealloc
      26: ==================
      26: ThreadSanitizer: reported 7 warnings
      
      26: WARNING: ThreadSanitizer: heap-use-after-free (pid=15579)
      26:   Read of size 8 at 0x7b4000000330 by thread T2:
      26:     #0 qd_buffer_list_free_buffers /home/travis/build/jiridanek/qpid-dispatch/src/buffer.c:88 (libqpid-dispatch.so+0x6427c)
      26:     #1 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1030 (libqpid-dispatch.so+0x8733f)
      26:     #2 qdr_do_message_to_addr_free /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:102 (libqpid-dispatch.so+0xc97dc)
      26:     #3 qdr_general_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core.c:927 (libqpid-dispatch.so+0xc3ff9)
      26:     #4 qd_timer_visit /home/travis/build/jiridanek/qpid-dispatch/src/timer.c:205 (libqpid-dispatch.so+0xf1f47)
      26:     #5 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1006 (libqpid-dispatch.so+0xec93e)
      26:     #6 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee7d7)
      26:     #7 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #8 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Previous write of size 8 at 0x7b4000000330 by thread T2 (mutexes: write M359):
      26:     #0 free <null> (libtsan.so.0+0x35f45)
      26:     #1 qd_dealloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:504 (libqpid-dispatch.so+0x62338)
      26:     #2 free_qd_message_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:91 (libqpid-dispatch.so+0x8295b)
      26:     #3 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1095 (libqpid-dispatch.so+0x8739e)
      26:     #4 cleanup_link /home/travis/build/jiridanek/qpid-dispatch/src/container.c:360 (libqpid-dispatch.so+0x74ccf)
      26:     #5 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:1000 (libqpid-dispatch.so+0x75146)
      26:     #6 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:989 (libqpid-dispatch.so+0x75146)
      26:     #7 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1140 (libqpid-dispatch.so+0xe6791)
      26:     #8 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1093 (libqpid-dispatch.so+0xe6791)
      26:     #9 close_links /home/travis/build/jiridanek/qpid-dispatch/src/container.c:336 (libqpid-dispatch.so+0x75229)
      26:     #10 qd_container_handle_event /home/travis/build/jiridanek/qpid-dispatch/src/container.c:528 (libqpid-dispatch.so+0x76143)
      26:     #11 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1095 (libqpid-dispatch.so+0xec871)
      26:     #12 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee6d8)
      26:     #13 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #14 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Mutex M359 (0x7b1000009200) created at:
      26:     #0 pthread_mutex_init <null> (libtsan.so.0+0x4a636)
      26:     #1 sys_mutex /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:43 (libqpid-dispatch.so+0x96dbf)
      26:     #2 qd_alloc_init /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:295 (libqpid-dispatch.so+0x61bda)
      26:     #3 qd_alloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:329 (libqpid-dispatch.so+0x61bda)
      26:     #4 new_qd_message_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:91 (libqpid-dispatch.so+0x82905)
      26:     #5 qd_message /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1002 (libqpid-dispatch.so+0x82e1c)
      26:     #6 _create_message_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:682 (libqpid-dispatch.so+0xb17ea)
      26:     #7 _flush_send_queue_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:287 (libqpid-dispatch.so+0xb17ea)
      26:     #8 _send_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:270 (libqpid-dispatch.so+0xb22ca)
      26:     #9 qdrc_client_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:259 (libqpid-dispatch.so+0xb22ca)
      26:     #10 qcm_addr_lookup_process_pending_requests_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:486 (libqpid-dispatch.so+0xde913)
      26:     #11 qcm_addr_lookup_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:563 (libqpid-dispatch.so+0xdedcf)
      26:     #12 qdr_link_inbound_first_attach_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/connections.c:1775 (libqpid-dispatch.so+0xaa64b)
      26:     #13 router_core_thread /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:239 (libqpid-dispatch.so+0xca445)
      26:     #14 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #15 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Thread T2 (tid=15582, running) created by main thread at:
      26:     #0 pthread_create <null> (libtsan.so.0+0x5ea99)
      26:     #1 sys_thread /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:181 (libqpid-dispatch.so+0x97312)
      26:     #2 qd_server_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1485 (libqpid-dispatch.so+0xef24a)
      26:     #3 main_process /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x2c27)
      26:     #4 main /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x2882)
      26: 
      26: SUMMARY: ThreadSanitizer: heap-use-after-free /home/travis/build/jiridanek/qpid-dispatch/src/buffer.c:88 in qd_buffer_list_free_buffers
      26: ==================
      
      26: ==================
      26: WARNING: ThreadSanitizer: heap-use-after-free (pid=15579)
      26:   Read of size 8 at 0x7b4000000350 by thread T2:
      26:     #0 qd_buffer_list_free_buffers /home/travis/build/jiridanek/qpid-dispatch/src/buffer.c:88 (libqpid-dispatch.so+0x6427c)
      26:     #1 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1031 (libqpid-dispatch.so+0x87349)
      26:     #2 qdr_do_message_to_addr_free /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:102 (libqpid-dispatch.so+0xc97dc)
      26:     #3 qdr_general_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core.c:927 (libqpid-dispatch.so+0xc3ff9)
      26:     #4 qd_timer_visit /home/travis/build/jiridanek/qpid-dispatch/src/timer.c:205 (libqpid-dispatch.so+0xf1f47)
      26:     #5 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1006 (libqpid-dispatch.so+0xec93e)
      26:     #6 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee7d7)
      26:     #7 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #8 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Previous write of size 8 at 0x7b4000000350 by thread T2 (mutexes: write M359):
      26:     #0 free <null> (libtsan.so.0+0x35f45)
      26:     #1 qd_dealloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:504 (libqpid-dispatch.so+0x62338)
      26:     #2 free_qd_message_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:91 (libqpid-dispatch.so+0x8295b)
      26:     #3 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1095 (libqpid-dispatch.so+0x8739e)
      26:     #4 cleanup_link /home/travis/build/jiridanek/qpid-dispatch/src/container.c:360 (libqpid-dispatch.so+0x74ccf)
      26:     #5 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:1000 (libqpid-dispatch.so+0x75146)
      26:     #6 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:989 (libqpid-dispatch.so+0x75146)
      26:     #7 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1140 (libqpid-dispatch.so+0xe6791)
      26:     #8 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1093 (libqpid-dispatch.so+0xe6791)
      26:     #9 close_links /home/travis/build/jiridanek/qpid-dispatch/src/container.c:336 (libqpid-dispatch.so+0x75229)
      26:     #10 qd_container_handle_event /home/travis/build/jiridanek/qpid-dispatch/src/container.c:528 (libqpid-dispatch.so+0x76143)
      26:     #11 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1095 (libqpid-dispatch.so+0xec871)
      26:     #12 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee6d8)
      26:     #13 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #14 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Mutex M359 (0x7b1000009200) created at:
      26:     #0 pthread_mutex_init <null> (libtsan.so.0+0x4a636)
      26:     #1 sys_mutex /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:43 (libqpid-dispatch.so+0x96dbf)
      26:     #2 qd_alloc_init /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:295 (libqpid-dispatch.so+0x61bda)
      26:     #3 qd_alloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:329 (libqpid-dispatch.so+0x61bda)
      26:     #4 new_qd_message_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:91 (libqpid-dispatch.so+0x82905)
      26:     #5 qd_message /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1002 (libqpid-dispatch.so+0x82e1c)
      26:     #6 _create_message_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:682 (libqpid-dispatch.so+0xb17ea)
      26:     #7 _flush_send_queue_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:287 (libqpid-dispatch.so+0xb17ea)
      26:     #8 _send_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:270 (libqpid-dispatch.so+0xb22ca)
      26:     #9 qdrc_client_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:259 (libqpid-dispatch.so+0xb22ca)
      26:     #10 qcm_addr_lookup_process_pending_requests_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:486 (libqpid-dispatch.so+0xde913)
      26:     #11 qcm_addr_lookup_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:563 (libqpid-dispatch.so+0xdedcf)
      26:     #12 qdr_link_inbound_first_attach_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/connections.c:1775 (libqpid-dispatch.so+0xaa64b)
      26:     #13 router_core_thread /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:239 (libqpid-dispatch.so+0xca445)
      26:     #14 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #15 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Thread T2 (tid=15582, running) created by main thread at:
      26:     #0 pthread_create <null> (libtsan.so.0+0x5ea99)
      26:     #1 sys_thread /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:181 (libqpid-dispatch.so+0x97312)
      26:     #2 qd_server_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1485 (libqpid-dispatch.so+0xef24a)
      26:     #3 main_process /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x2c27)
      26:     #4 main /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x2882)
      26: 
      26: SUMMARY: ThreadSanitizer: heap-use-after-free /home/travis/build/jiridanek/qpid-dispatch/src/buffer.c:88 in qd_buffer_list_free_buffers
      26: ==================
      
      26: ==================
      26: WARNING: ThreadSanitizer: heap-use-after-free (pid=15579)
      26:   Read of size 8 at 0x7b4000000370 by thread T2:
      26:     #0 qd_buffer_list_free_buffers /home/travis/build/jiridanek/qpid-dispatch/src/buffer.c:88 (libqpid-dispatch.so+0x6427c)
      26:     #1 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1032 (libqpid-dispatch.so+0x87353)
      26:     #2 qdr_do_message_to_addr_free /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:102 (libqpid-dispatch.so+0xc97dc)
      26:     #3 qdr_general_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core.c:927 (libqpid-dispatch.so+0xc3ff9)
      26:     #4 qd_timer_visit /home/travis/build/jiridanek/qpid-dispatch/src/timer.c:205 (libqpid-dispatch.so+0xf1f47)
      26:     #5 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1006 (libqpid-dispatch.so+0xec93e)
      26:     #6 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee7d7)
      26:     #7 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #8 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Previous write of size 8 at 0x7b4000000370 by thread T2 (mutexes: write M359):
      26:     #0 free <null> (libtsan.so.0+0x35f45)
      26:     #1 qd_dealloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:504 (libqpid-dispatch.so+0x62338)
      26:     #2 free_qd_message_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:91 (libqpid-dispatch.so+0x8295b)
      26:     #3 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1095 (libqpid-dispatch.so+0x8739e)
      26:     #4 cleanup_link /home/travis/build/jiridanek/qpid-dispatch/src/container.c:360 (libqpid-dispatch.so+0x74ccf)
      26:     #5 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:1000 (libqpid-dispatch.so+0x75146)
      26:     #6 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:989 (libqpid-dispatch.so+0x75146)
      26:     #7 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1140 (libqpid-dispatch.so+0xe6791)
      26:     #8 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1093 (libqpid-dispatch.so+0xe6791)
      26:     #9 close_links /home/travis/build/jiridanek/qpid-dispatch/src/container.c:336 (libqpid-dispatch.so+0x75229)
      26:     #10 qd_container_handle_event /home/travis/build/jiridanek/qpid-dispatch/src/container.c:528 (libqpid-dispatch.so+0x76143)
      26:     #11 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1095 (libqpid-dispatch.so+0xec871)
      26:     #12 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee6d8)
      26:     #13 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #14 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Mutex M359 (0x7b1000009200) created at:
      26:     #0 pthread_mutex_init <null> (libtsan.so.0+0x4a636)
      26:     #1 sys_mutex /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:43 (libqpid-dispatch.so+0x96dbf)
      26:     #2 qd_alloc_init /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:295 (libqpid-dispatch.so+0x61bda)
      26:     #3 qd_alloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:329 (libqpid-dispatch.so+0x61bda)
      26:     #4 new_qd_message_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:91 (libqpid-dispatch.so+0x82905)
      26:     #5 qd_message /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1002 (libqpid-dispatch.so+0x82e1c)
      26:     #6 _create_message_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:682 (libqpid-dispatch.so+0xb17ea)
      26:     #7 _flush_send_queue_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:287 (libqpid-dispatch.so+0xb17ea)
      26:     #8 _send_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:270 (libqpid-dispatch.so+0xb22ca)
      26:     #9 qdrc_client_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:259 (libqpid-dispatch.so+0xb22ca)
      26:     #10 qcm_addr_lookup_process_pending_requests_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:486 (libqpid-dispatch.so+0xde913)
      26:     #11 qcm_addr_lookup_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:563 (libqpid-dispatch.so+0xdedcf)
      26:     #12 qdr_link_inbound_first_attach_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/connections.c:1775 (libqpid-dispatch.so+0xaa64b)
      26:     #13 router_core_thread /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:239 (libqpid-dispatch.so+0xca445)
      26:     #14 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #15 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Thread T2 (tid=15582, running) created by main thread at:
      26:     #0 pthread_create <null> (libtsan.so.0+0x5ea99)
      26:     #1 sys_thread /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:181 (libqpid-dispatch.so+0x97312)
      26:     #2 qd_server_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1485 (libqpid-dispatch.so+0xef24a)
      26:     #3 main_process /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x2c27)
      26:     #4 main /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x2882)
      26: 
      26: SUMMARY: ThreadSanitizer: heap-use-after-free /home/travis/build/jiridanek/qpid-dispatch/src/buffer.c:88 in qd_buffer_list_free_buffers
      26: ==================
      
      26: ==================
      26: WARNING: ThreadSanitizer: heap-use-after-free (pid=15579)
      26:   Read of size 8 at 0x7b4000000328 by thread T2:
      26:     #0 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1034 (libqpid-dispatch.so+0x8735d)
      26:     #1 qdr_do_message_to_addr_free /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:102 (libqpid-dispatch.so+0xc97dc)
      26:     #2 qdr_general_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core.c:927 (libqpid-dispatch.so+0xc3ff9)
      26:     #3 qd_timer_visit /home/travis/build/jiridanek/qpid-dispatch/src/timer.c:205 (libqpid-dispatch.so+0xf1f47)
      26:     #4 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1006 (libqpid-dispatch.so+0xec93e)
      26:     #5 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee7d7)
      26:     #6 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #7 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Previous write of size 8 at 0x7b4000000328 by thread T2 (mutexes: write M359):
      26:     #0 free <null> (libtsan.so.0+0x35f45)
      26:     #1 qd_dealloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:504 (libqpid-dispatch.so+0x62338)
      26:     #2 free_qd_message_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:91 (libqpid-dispatch.so+0x8295b)
      26:     #3 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1095 (libqpid-dispatch.so+0x8739e)
      26:     #4 cleanup_link /home/travis/build/jiridanek/qpid-dispatch/src/container.c:360 (libqpid-dispatch.so+0x74ccf)
      26:     #5 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:1000 (libqpid-dispatch.so+0x75146)
      26:     #6 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:989 (libqpid-dispatch.so+0x75146)
      26:     #7 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1140 (libqpid-dispatch.so+0xe6791)
      26:     #8 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1093 (libqpid-dispatch.so+0xe6791)
      26:     #9 close_links /home/travis/build/jiridanek/qpid-dispatch/src/container.c:336 (libqpid-dispatch.so+0x75229)
      26:     #10 qd_container_handle_event /home/travis/build/jiridanek/qpid-dispatch/src/container.c:528 (libqpid-dispatch.so+0x76143)
      26:     #11 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1095 (libqpid-dispatch.so+0xec871)
      26:     #12 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee6d8)
      26:     #13 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #14 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Mutex M359 (0x7b1000009200) created at:
      26:     #0 pthread_mutex_init <null> (libtsan.so.0+0x4a636)
      26:     #1 sys_mutex /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:43 (libqpid-dispatch.so+0x96dbf)
      26:     #2 qd_alloc_init /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:295 (libqpid-dispatch.so+0x61bda)
      26:     #3 qd_alloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:329 (libqpid-dispatch.so+0x61bda)
      26:     #4 new_qd_message_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:91 (libqpid-dispatch.so+0x82905)
      26:     #5 qd_message /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1002 (libqpid-dispatch.so+0x82e1c)
      26:     #6 _create_message_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:682 (libqpid-dispatch.so+0xb17ea)
      26:     #7 _flush_send_queue_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:287 (libqpid-dispatch.so+0xb17ea)
      26:     #8 _send_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:270 (libqpid-dispatch.so+0xb22ca)
      26:     #9 qdrc_client_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:259 (libqpid-dispatch.so+0xb22ca)
      26:     #10 qcm_addr_lookup_process_pending_requests_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:486 (libqpid-dispatch.so+0xde913)
      26:     #11 qcm_addr_lookup_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:563 (libqpid-dispatch.so+0xdedcf)
      26:     #12 qdr_link_inbound_first_attach_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/connections.c:1775 (libqpid-dispatch.so+0xaa64b)
      26:     #13 router_core_thread /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:239 (libqpid-dispatch.so+0xca445)
      26:     #14 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #15 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Thread T2 (tid=15582, running) created by main thread at:
      26:     #0 pthread_create <null> (libtsan.so.0+0x5ea99)
      26:     #1 sys_thread /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:181 (libqpid-dispatch.so+0x97312)
      26:     #2 qd_server_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1485 (libqpid-dispatch.so+0xef24a)
      26:     #3 main_process /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x2c27)
      26:     #4 main /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x2882)
      26: 
      26: SUMMARY: ThreadSanitizer: heap-use-after-free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1034 in qd_message_free
      26: ==================
      
      26: ==================
      26: WARNING: ThreadSanitizer: heap-use-after-free (pid=15579)
      26:   Read of size 1 at 0x7b40000003cb by thread T2:
      26:     #0 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1036 (libqpid-dispatch.so+0x8736f)
      26:     #1 qdr_do_message_to_addr_free /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:102 (libqpid-dispatch.so+0xc97dc)
      26:     #2 qdr_general_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core.c:927 (libqpid-dispatch.so+0xc3ff9)
      26:     #3 qd_timer_visit /home/travis/build/jiridanek/qpid-dispatch/src/timer.c:205 (libqpid-dispatch.so+0xf1f47)
      26:     #4 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1006 (libqpid-dispatch.so+0xec93e)
      26:     #5 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee7d7)
      26:     #6 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #7 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Previous write of size 8 at 0x7b40000003c8 by thread T2 (mutexes: write M359):
      26:     #0 free <null> (libtsan.so.0+0x35f45)
      26:     #1 qd_dealloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:504 (libqpid-dispatch.so+0x62338)
      26:     #2 free_qd_message_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:91 (libqpid-dispatch.so+0x8295b)
      26:     #3 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1095 (libqpid-dispatch.so+0x8739e)
      26:     #4 cleanup_link /home/travis/build/jiridanek/qpid-dispatch/src/container.c:360 (libqpid-dispatch.so+0x74ccf)
      26:     #5 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:1000 (libqpid-dispatch.so+0x75146)
      26:     #6 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:989 (libqpid-dispatch.so+0x75146)
      26:     #7 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1140 (libqpid-dispatch.so+0xe6791)
      26:     #8 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1093 (libqpid-dispatch.so+0xe6791)
      26:     #9 close_links /home/travis/build/jiridanek/qpid-dispatch/src/container.c:336 (libqpid-dispatch.so+0x75229)
      26:     #10 qd_container_handle_event /home/travis/build/jiridanek/qpid-dispatch/src/container.c:528 (libqpid-dispatch.so+0x76143)
      26:     #11 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1095 (libqpid-dispatch.so+0xec871)
      26:     #12 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee6d8)
      26:     #13 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #14 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Mutex M359 (0x7b1000009200) created at:
      26:     #0 pthread_mutex_init <null> (libtsan.so.0+0x4a636)
      26:     #1 sys_mutex /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:43 (libqpid-dispatch.so+0x96dbf)
      26:     #2 qd_alloc_init /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:295 (libqpid-dispatch.so+0x61bda)
      26:     #3 qd_alloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:329 (libqpid-dispatch.so+0x61bda)
      26:     #4 new_qd_message_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:91 (libqpid-dispatch.so+0x82905)
      26:     #5 qd_message /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1002 (libqpid-dispatch.so+0x82e1c)
      26:     #6 _create_message_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:682 (libqpid-dispatch.so+0xb17ea)
      26:     #7 _flush_send_queue_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:287 (libqpid-dispatch.so+0xb17ea)
      26:     #8 _send_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:270 (libqpid-dispatch.so+0xb22ca)
      26:     #9 qdrc_client_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:259 (libqpid-dispatch.so+0xb22ca)
      26:     #10 qcm_addr_lookup_process_pending_requests_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:486 (libqpid-dispatch.so+0xde913)
      26:     #11 qcm_addr_lookup_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:563 (libqpid-dispatch.so+0xdedcf)
      26:     #12 qdr_link_inbound_first_attach_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/connections.c:1775 (libqpid-dispatch.so+0xaa64b)
      26:     #13 router_core_thread /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:239 (libqpid-dispatch.so+0xca445)
      26:     #14 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #15 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Thread T2 (tid=15582, running) created by main thread at:
      26:     #0 pthread_create <null> (libtsan.so.0+0x5ea99)
      26:     #1 sys_thread /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:181 (libqpid-dispatch.so+0x97312)
      26:     #2 qd_server_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1485 (libqpid-dispatch.so+0xef24a)
      26:     #3 main_process /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x2c27)
      26:     #4 main /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x2882)
      26: 
      26: SUMMARY: ThreadSanitizer: heap-use-after-free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1036 in qd_message_free
      26: ==================
      
      26: ==================
      26: WARNING: ThreadSanitizer: heap-use-after-free (pid=15579)
      26:   Atomic write of size 4 at 0x7b6400050a10 by thread T2:
      26:     #0 __tsan_atomic32_fetch_sub <null> (libtsan.so.0+0x7fc98)
      26:     #1 sys_atomic_sub /home/travis/build/jiridanek/qpid-dispatch/include/qpid/dispatch/atomic.h:48 (libqpid-dispatch.so+0x87391)
      26:     #2 sys_atomic_dec /home/travis/build/jiridanek/qpid-dispatch/include/qpid/dispatch/atomic.h:212 (libqpid-dispatch.so+0x87391)
      26:     #3 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1073 (libqpid-dispatch.so+0x87391)
      26:     #4 qdr_do_message_to_addr_free /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:102 (libqpid-dispatch.so+0xc97dc)
      26:     #5 qdr_general_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core.c:927 (libqpid-dispatch.so+0xc3ff9)
      26:     #6 qd_timer_visit /home/travis/build/jiridanek/qpid-dispatch/src/timer.c:205 (libqpid-dispatch.so+0xf1f47)
      26:     #7 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1006 (libqpid-dispatch.so+0xec93e)
      26:     #8 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee7d7)
      26:     #9 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #10 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Previous write of size 8 at 0x7b6400050a10 by thread T2 (mutexes: write M360):
      26:     #0 free <null> (libtsan.so.0+0x35f45)
      26:     #1 qd_dealloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:504 (libqpid-dispatch.so+0x62338)
      26:     #2 free_qd_message_content_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:92 (libqpid-dispatch.so+0x82acb)
      26:     #3 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1092 (libqpid-dispatch.so+0x87481)
      26:     #4 cleanup_link /home/travis/build/jiridanek/qpid-dispatch/src/container.c:360 (libqpid-dispatch.so+0x74ccf)
      26:     #5 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:1000 (libqpid-dispatch.so+0x75146)
      26:     #6 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:989 (libqpid-dispatch.so+0x75146)
      26:     #7 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1140 (libqpid-dispatch.so+0xe6791)
      26:     #8 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1093 (libqpid-dispatch.so+0xe6791)
      26:     #9 close_links /home/travis/build/jiridanek/qpid-dispatch/src/container.c:336 (libqpid-dispatch.so+0x75229)
      26:     #10 qd_container_handle_event /home/travis/build/jiridanek/qpid-dispatch/src/container.c:528 (libqpid-dispatch.so+0x76143)
      26:     #11 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1095 (libqpid-dispatch.so+0xec871)
      26:     #12 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee6d8)
      26:     #13 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #14 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Mutex M360 (0x7b1000009300) created at:
      26:     #0 pthread_mutex_init <null> (libtsan.so.0+0x4a636)
      26:     #1 sys_mutex /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:43 (libqpid-dispatch.so+0x96dbf)
      26:     #2 qd_alloc_init /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:295 (libqpid-dispatch.so+0x61bda)
      26:     #3 qd_alloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:329 (libqpid-dispatch.so+0x61bda)
      26:     #4 new_qd_message_content_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:92 (libqpid-dispatch.so+0x82a75)
      26:     #5 qd_message /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1008 (libqpid-dispatch.so+0x82e64)
      26:     #6 _create_message_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:682 (libqpid-dispatch.so+0xb17ea)
      26:     #7 _flush_send_queue_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:287 (libqpid-dispatch.so+0xb17ea)
      26:     #8 _send_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:270 (libqpid-dispatch.so+0xb22ca)
      26:     #9 qdrc_client_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:259 (libqpid-dispatch.so+0xb22ca)
      26:     #10 qcm_addr_lookup_process_pending_requests_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:486 (libqpid-dispatch.so+0xde913)
      26:     #11 qcm_addr_lookup_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:563 (libqpid-dispatch.so+0xdedcf)
      26:     #12 qdr_link_inbound_first_attach_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/connections.c:1775 (libqpid-dispatch.so+0xaa64b)
      26:     #13 router_core_thread /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:239 (libqpid-dispatch.so+0xca445)
      26:     #14 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #15 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Thread T2 (tid=15582, running) created by main thread at:
      26:     #0 pthread_create <null> (libtsan.so.0+0x5ea99)
      26:     #1 sys_thread /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:181 (libqpid-dispatch.so+0x97312)
      26:     #2 qd_server_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1485 (libqpid-dispatch.so+0xef24a)
      26:     #3 main_process /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x2c27)
      26:     #4 main /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x2882)
      26: 
      26: SUMMARY: ThreadSanitizer: heap-use-after-free (/lib/x86_64-linux-gnu/libtsan.so.0+0x7fc98) in __tsan_atomic32_fetch_sub
      26: ==================
      
      26: ==================
      26: WARNING: ThreadSanitizer: heap-use-after-free (pid=15579)
      26:   Read of size 8 at 0x7b4000000300 by thread T2:
      26:     #0 qd_dealloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:477 (libqpid-dispatch.so+0x61f25)
      26:     #1 free_qd_message_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:91 (libqpid-dispatch.so+0x8295b)
      26:     #2 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1095 (libqpid-dispatch.so+0x8739e)
      26:     #3 qdr_do_message_to_addr_free /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:102 (libqpid-dispatch.so+0xc97dc)
      26:     #4 qdr_general_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core.c:927 (libqpid-dispatch.so+0xc3ff9)
      26:     #5 qd_timer_visit /home/travis/build/jiridanek/qpid-dispatch/src/timer.c:205 (libqpid-dispatch.so+0xf1f47)
      26:     #6 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1006 (libqpid-dispatch.so+0xec93e)
      26:     #7 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee7d7)
      26:     #8 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #9 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Previous write of size 8 at 0x7b4000000300 by thread T2 (mutexes: write M359):
      26:     #0 free <null> (libtsan.so.0+0x35f45)
      26:     #1 qd_dealloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:504 (libqpid-dispatch.so+0x62338)
      26:     #2 free_qd_message_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:91 (libqpid-dispatch.so+0x8295b)
      26:     #3 qd_message_free /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1095 (libqpid-dispatch.so+0x8739e)
      26:     #4 cleanup_link /home/travis/build/jiridanek/qpid-dispatch/src/container.c:360 (libqpid-dispatch.so+0x74ccf)
      26:     #5 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:1000 (libqpid-dispatch.so+0x75146)
      26:     #6 qd_link_free /home/travis/build/jiridanek/qpid-dispatch/src/container.c:989 (libqpid-dispatch.so+0x75146)
      26:     #7 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1140 (libqpid-dispatch.so+0xe6791)
      26:     #8 AMQP_link_detach_handler /home/travis/build/jiridanek/qpid-dispatch/src/router_node.c:1093 (libqpid-dispatch.so+0xe6791)
      26:     #9 close_links /home/travis/build/jiridanek/qpid-dispatch/src/container.c:336 (libqpid-dispatch.so+0x75229)
      26:     #10 qd_container_handle_event /home/travis/build/jiridanek/qpid-dispatch/src/container.c:528 (libqpid-dispatch.so+0x76143)
      26:     #11 handle /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1095 (libqpid-dispatch.so+0xec871)
      26:     #12 thread_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1120 (libqpid-dispatch.so+0xee6d8)
      26:     #13 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #14 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Mutex M359 (0x7b1000009200) created at:
      26:     #0 pthread_mutex_init <null> (libtsan.so.0+0x4a636)
      26:     #1 sys_mutex /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:43 (libqpid-dispatch.so+0x96dbf)
      26:     #2 qd_alloc_init /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:295 (libqpid-dispatch.so+0x61bda)
      26:     #3 qd_alloc /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:329 (libqpid-dispatch.so+0x61bda)
      26:     #4 new_qd_message_t /home/travis/build/jiridanek/qpid-dispatch/src/message.c:91 (libqpid-dispatch.so+0x82905)
      26:     #5 qd_message /home/travis/build/jiridanek/qpid-dispatch/src/message.c:1002 (libqpid-dispatch.so+0x82e1c)
      26:     #6 _create_message_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:682 (libqpid-dispatch.so+0xb17ea)
      26:     #7 _flush_send_queue_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:287 (libqpid-dispatch.so+0xb17ea)
      26:     #8 _send_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:270 (libqpid-dispatch.so+0xb22ca)
      26:     #9 qdrc_client_request_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/core_client_api.c:259 (libqpid-dispatch.so+0xb22ca)
      26:     #10 qcm_addr_lookup_process_pending_requests_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:486 (libqpid-dispatch.so+0xde913)
      26:     #11 qcm_addr_lookup_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/modules/address_lookup_client/lookup_client.c:563 (libqpid-dispatch.so+0xdedcf)
      26:     #12 qdr_link_inbound_first_attach_CT /home/travis/build/jiridanek/qpid-dispatch/src/router_core/connections.c:1775 (libqpid-dispatch.so+0xaa64b)
      26:     #13 router_core_thread /home/travis/build/jiridanek/qpid-dispatch/src/router_core/router_core_thread.c:239 (libqpid-dispatch.so+0xca445)
      26:     #14 _thread_init /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:172 (libqpid-dispatch.so+0x96d56)
      26:     #15 <null> <null> (libtsan.so.0+0x2d1af)
      26: 
      26:   Thread T2 (tid=15582, running) created by main thread at:
      26:     #0 pthread_create <null> (libtsan.so.0+0x5ea99)
      26:     #1 sys_thread /home/travis/build/jiridanek/qpid-dispatch/src/posix/threading.c:181 (libqpid-dispatch.so+0x97312)
      26:     #2 qd_server_run /home/travis/build/jiridanek/qpid-dispatch/src/server.c:1485 (libqpid-dispatch.so+0xef24a)
      26:     #3 main_process /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:115 (qdrouterd+0x2c27)
      26:     #4 main /home/travis/build/jiridanek/qpid-dispatch/router/src/main.c:369 (qdrouterd+0x2882)
      26: 
      26: SUMMARY: ThreadSanitizer: heap-use-after-free /home/travis/build/jiridanek/qpid-dispatch/src/alloc_pool.c:477 in qd_dealloc
      26: ==================
      26: ThreadSanitizer: reported 7 warnings
      

      Attachments

        Issue Links

          Activity

            People

              chug Charles E. Rolke
              jdanek Jiri Daněk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: