[ 
https://issues.apache.org/jira/browse/DISPATCH-2062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ganesh Murthy resolved DISPATCH-2062.
-------------------------------------
    Resolution: Duplicate

> ASAN heap-use-after-free error on system_tests_qdmanage
> -------------------------------------------------------
>
>                 Key: DISPATCH-2062
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-2062
>             Project: Qpid Dispatch
>          Issue Type: Test
>          Components: Container, Tests
>            Reporter: Ganesh Murthy
>            Assignee: Ganesh Murthy
>            Priority: Major
>             Fix For: 1.16.0
>
>
> {noformat}
> 29: Test command: /usr/bin/python 
> "/home/travis/build/apache/qpid-dispatch/build/tests/run.py" "-m" "unittest" 
> "-v" "system_tests_qdmanage"
> 29: Test timeout computed to be: 600
> 29: test_check_address_name (system_tests_qdmanage.QdmanageTest) ... ok
> 29: test_check_auto_link_name (system_tests_qdmanage.QdmanageTest) ... ok
> 29: test_check_link_route_name (system_tests_qdmanage.QdmanageTest) ... ok
> 29: test_check_memory_usage (system_tests_qdmanage.QdmanageTest) ... ok
> 29: test_create_address (system_tests_qdmanage.QdmanageTest) ... ok
> 29: test_create_auto_link_with_dir (system_tests_qdmanage.QdmanageTest) ... ok
> 29: test_create_auto_link_with_phase (system_tests_qdmanage.QdmanageTest) ... 
> ok
> 29: test_create_delete_address_pattern (system_tests_qdmanage.QdmanageTest) 
> ... ok
> 29: test_create_delete_connector (system_tests_qdmanage.QdmanageTest) ... ok
> 29: test_create_delete_ssl_profile (system_tests_qdmanage.QdmanageTest) ... ok
> 29: test_create_link_route_with_dir (system_tests_qdmanage.QdmanageTest) ... 
> ok
> 29: test_crud (system_tests_qdmanage.QdmanageTest) ... ok
> 29: test_delete_connection (system_tests_qdmanage.QdmanageTest) ... ok
> 29: test_get_annotations (system_tests_qdmanage.QdmanageTest) ... ok
> 29: test_get_attributes (system_tests_qdmanage.QdmanageTest) ... ok
> 29: test_get_log (system_tests_qdmanage.QdmanageTest) ... ok
> 29: test_get_logstats (system_tests_qdmanage.QdmanageTest) ... ok
> 29: test_get_operations (system_tests_qdmanage.QdmanageTest) ... ok
> 29: test_get_schema (system_tests_qdmanage.QdmanageTest) ... ok
> 29: test_get_ssl_profile_attributes (system_tests_qdmanage.QdmanageTest) ... 
> ok
> 29: test_get_ssl_profile_operations (system_tests_qdmanage.QdmanageTest) ... 
> ok
> 29: test_get_ssl_profile_type_attributes (system_tests_qdmanage.QdmanageTest) 
> ... ok
> 29: test_get_ssl_profile_type_operations (system_tests_qdmanage.QdmanageTest) 
> ... ok
> 29: test_get_types (system_tests_qdmanage.QdmanageTest) ... ok
> 29: test_get_types_with_ssl_profile_type (system_tests_qdmanage.QdmanageTest) 
> ... ok
> 29: test_query (system_tests_qdmanage.QdmanageTest) ... ok
> 29: test_specify_container_id_connection_auto_link 
> (system_tests_qdmanage.QdmanageTest) ... ok
> 29: test_specify_container_id_connection_link_route 
> (system_tests_qdmanage.QdmanageTest) ... ok
> 29: test_stdin (system_tests_qdmanage.QdmanageTest)
> 29: Test piping from stdin ... ok
> 29: test_update (system_tests_qdmanage.QdmanageTest) ... ERROR
> 29: test_worker_threads (system_tests_qdmanage.QdmanageTest) ... ERROR
> 29: test_yy_query_many_links (system_tests_qdmanage.QdmanageTest) ... ERROR
> 29: test_zzz_add_connector (system_tests_qdmanage.QdmanageTest) ... ERROR
> 29: test_zzz_create_delete_listener (system_tests_qdmanage.QdmanageTest) ... 
> ERROR
> 29: 
> 29: Router R1 output file:
> 29: >>>>
> 29: =================================================================
> 29: ==13000==ERROR: AddressSanitizer: heap-use-after-free on address 
> 0x604000024328 at pc 0x7f82ec6cf89e bp 0x7f82e3a06dc0 sp 0x7f82e3a06db0
> 29: READ of size 8 at 0x604000024328 thread T1
> 29:     #0 0x7f82ec6cf89d in write_log 
> /home/travis/build/apache/qpid-dispatch/src/log.c:336
> 29:     #1 0x7f82ec6d0c9c in qd_vlog_impl 
> /home/travis/build/apache/qpid-dispatch/src/log.c:437
> 29:     #2 0x7f82ec6d1271 in qd_log_impl 
> /home/travis/build/apache/qpid-dispatch/src/log.c:456
> 29:     #3 0x7f82ec7755f4 in qdr_delivery_increment_counters_CT 
> /home/travis/build/apache/qpid-dispatch/src/router_core/delivery.c:394
> 29:     #4 0x7f82ec776d8e in qdr_delete_delivery_internal_CT 
> /home/travis/build/apache/qpid-dispatch/src/router_core/delivery.c:464
> 29:     #5 0x7f82ec77b520 in qdr_delete_delivery_CT 
> /home/travis/build/apache/qpid-dispatch/src/router_core/delivery.c:1048
> 29:     #6 0x7f82ec7c6d12 in router_core_thread 
> /home/travis/build/apache/qpid-dispatch/src/router_core/router_core_thread.c:239
> 29:     #7 0x7f82ec717c11 in _thread_init 
> /home/travis/build/apache/qpid-dispatch/src/posix/threading.c:172
> 29:     #8 0x7f82ec0dc6b9 in start_thread 
> (/lib/x86_64-linux-gnu/libpthread.so.0+0x76b9)
> 29:     #9 0x7f82eb10541c in clone (/lib/x86_64-linux-gnu/libc.so.6+0x10741c)
> 29: 
> 29: 0x604000024328 is located 24 bytes inside of 48-byte region 
> [0x604000024310,0x604000024340)
> 29: freed by thread T2 here:
> 29:     #0 0x7f82ecf512ca in __interceptor_free 
> (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x982ca)
> 29:     #1 0x7f82ec6cdd63 in log_sink_free_lh 
> /home/travis/build/apache/qpid-dispatch/src/log.c:130
> 29:     #2 0x7f82ec6d23f3 in qd_log_entity 
> /home/travis/build/apache/qpid-dispatch/src/log.c:555
> 29:     #3 0x7f82e4a55e3f in ffi_call_unix64 
> (/usr/lib/x86_64-linux-gnu/libffi.so.6+0x5e3f)
> 29:     #4 0x7f82e26e00ef  (<unknown module>)
> 29: 
> 29: previously allocated by thread T0 here:
> 29:     #0 0x7f82ecf51602 in malloc 
> (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
> 29:     #1 0x7f82ec6cc3b5 in qd_malloc 
> /home/travis/build/apache/qpid-dispatch/include/qpid/dispatch/ctools.h:229
> 29:     #2 0x7f82ec6ce05d in log_sink_lh 
> /home/travis/build/apache/qpid-dispatch/src/log.c:165
> 29:     #3 0x7f82ec6d2351 in qd_log_entity 
> /home/travis/build/apache/qpid-dispatch/src/log.c:550
> 29:     #4 0x7f82e4a55e3f in ffi_call_unix64 
> (/usr/lib/x86_64-linux-gnu/libffi.so.6+0x5e3f)
> 29:     #5 0x7ffeea92537f  (<unknown module>)
> 29: 
> 29: Thread T1 created by T0 here:
> 29:     #0 0x7f82eceef253 in pthread_create 
> (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x36253)
> 29:     #1 0x7f82ec717d15 in sys_thread 
> /home/travis/build/apache/qpid-dispatch/src/posix/threading.c:181
> 29:     #2 0x7f82ec7ad36b in qdr_core 
> /home/travis/build/apache/qpid-dispatch/src/router_core/router_core.c:122
> 29:     #3 0x7f82ec828882 in qd_router_setup_late 
> /home/travis/build/apache/qpid-dispatch/src/router_node.c:2119
> 29:     #4 0x7f82e4a55e3f in ffi_call_unix64 
> (/usr/lib/x86_64-linux-gnu/libffi.so.6+0x5e3f)
> 29:     #5 0x7ffeea925b7f  (<unknown module>)
> 29: 
> 29: Thread T2 created by T0 here:
> 29:     #0 0x7f82eceef253 in pthread_create 
> (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x36253)
> 29:     #1 0x7f82ec717d15 in sys_thread 
> /home/travis/build/apache/qpid-dispatch/src/posix/threading.c:181
> 29:     #2 0x7f82ec83fde7 in qd_server_run 
> /home/travis/build/apache/qpid-dispatch/src/server.c:1485
> 29:     #3 0x401db0 in main_process 
> /home/travis/build/apache/qpid-dispatch/router/src/main.c:115
> 29:     #4 0x403917 in main 
> /home/travis/build/apache/qpid-dispatch/router/src/main.c:369
> 29:     #5 0x7f82eb01e82f in __libc_start_main 
> (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
> 29: 
> 29: SUMMARY: AddressSanitizer: heap-use-after-free 
> /home/travis/build/apache/qpid-dispatch/src/log.c:336 write_log
> 29: Shadow bytes around the buggy address:
> 29:   0x0c087fffc810: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fa
> 29:   0x0c087fffc820: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fa
> 29:   0x0c087fffc830: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fa
> 29:   0x0c087fffc840: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fa
> 29:   0x0c087fffc850: fa fa fd fd fd fd fd fa fa fa 00 00 00 00 00 fa
> 29: =>0x0c087fffc860: fa fa fd fd fd[fd]fd fd fa fa fd fd fd fd fd fd
> 29:   0x0c087fffc870: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fa
> 29:   0x0c087fffc880: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd
> 29:   0x0c087fffc890: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd
> 29:   0x0c087fffc8a0: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd
> 29:   0x0c087fffc8b0: fa fa 00 00 00 00 00 00 fa fa 00 00 00 00 00 00
> 29: Shadow byte legend (one shadow byte represents 8 application bytes):
> 29:   Addressable:           00
> 29:   Partially addressable: 01 02 03 04 05 06 07 
> 29:   Heap left redzone:       fa
> 29:   Heap right redzone:      fb
> 29:   Freed heap region:       fd
> 29:   Stack left redzone:      f1
> 29:   Stack mid redzone:       f2
> 29:   Stack right redzone:     f3
> 29:   Stack partial redzone:   f4
> 29:   Stack after return:      f5
> 29:   Stack use after scope:   f8
> 29:   Global redzone:          f9
> 29:   Global init order:       f6
> 29:   Poisoned by user:        f7
> 29:   Container overflow:      fc
> 29:   Array cookie:            ac
> 29:   Intra object redzone:    bb
> 29:   ASan internal:           fe
> 29: ==13000==ABORTING {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to