[
https://issues.apache.org/jira/browse/DISPATCH-2188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17388166#comment-17388166
]
Jiri Daněk commented on DISPATCH-2188:
--------------------------------------
Present on 1.17.0-freeze
https://app.travis-ci.com/github/apache/qpid-dispatch/jobs/526958625#L4282
{noformat}
27: ==13516==ERROR: AddressSanitizer: use-after-poison on address
0x6170000d3310 at pc 0x0000005c5a2a bp 0x7fe8ac3ad100 sp 0x7fe8ac3ad0f0
27: WRITE of size 8 at 0x6170000d3310 thread T1
27: #0 0x5c5a29 in qdr_core_unbind_address_link_CT
/home/travis/build/apache/qpid-dispatch/src/router_core/router_core.c:719
27: #1 0x5f6f50 in del_outlink
/home/travis/build/apache/qpid-dispatch/src/router_core/modules/edge_router/addr_proxy.c:216
27: #2 0x5f8672 in on_addr_event
/home/travis/build/apache/qpid-dispatch/src/router_core/modules/edge_router/addr_proxy.c:440
27: #3 0x5719d9 in qdrc_event_addr_raise
/home/travis/build/apache/qpid-dispatch/src/router_core/core_events.c:125
27: #4 0x5c5de8 in qdr_core_unbind_address_link_CT
/home/travis/build/apache/qpid-dispatch/src/router_core/router_core.c:739
27: #5 0x56dac0 in qdr_link_inbound_detach_CT
/home/travis/build/apache/qpid-dispatch/src/router_core/connections.c:2064
27: #6 0x5d1ae3 in router_core_thread
/home/travis/build/apache/qpid-dispatch/src/router_core/router_core_thread.c:239
27: #7 0x526cb1 in _thread_init
/home/travis/build/apache/qpid-dispatch/src/posix/threading.c:172
27: #8 0x7fe8b51576b9 in start_thread
(/lib/x86_64-linux-gnu/libpthread.so.0+0x76b9)
27: #9 0x7fe8b3c5441c in clone (/lib/x86_64-linux-gnu/libc.so.6+0x10741c)
27:
27: 0x6170000d3310 is located 272 bytes inside of 704-byte region
[0x6170000d3200,0x6170000d34c0)
27: allocated by thread T1 here:
27: #0 0x7fe8b586b076 in __interceptor_posix_memalign
(/usr/lib/x86_64-linux-gnu/libasan.so.2+0x99076)
27: #1 0x496c9e in qd_alloc
/home/travis/build/apache/qpid-dispatch/src/alloc_pool.c:396
27: #2 0x5b712c in new_qdr_link_t
/home/travis/build/apache/qpid-dispatch/src/router_core/router_core.c:35
27: #3 0x56095f in qdr_create_link_CT
/home/travis/build/apache/qpid-dispatch/src/router_core/connections.c:1128
27: #4 0x5f7485 in on_conn_event
/home/travis/build/apache/qpid-dispatch/src/router_core/modules/edge_router/addr_proxy.c:281
27: #5 0x5715fb in qdrc_event_conn_raise
/home/travis/build/apache/qpid-dispatch/src/router_core/core_events.c:101
27: #6 0x5f99e3 in on_conn_event
/home/travis/build/apache/qpid-dispatch/src/router_core/modules/edge_router/connection_manager.c:59
27: #7 0x5715fb in qdrc_event_conn_raise
/home/travis/build/apache/qpid-dispatch/src/router_core/core_events.c:101
27: #8 0x564d3e in qdr_connection_opened_CT
/home/travis/build/apache/qpid-dispatch/src/router_core/connections.c:1440
27: #9 0x5d1ae3 in router_core_thread
/home/travis/build/apache/qpid-dispatch/src/router_core/router_core_thread.c:239
27: #10 0x526cb1 in _thread_init
/home/travis/build/apache/qpid-dispatch/src/posix/threading.c:172
27: #11 0x7fe8b51576b9 in start_thread
(/lib/x86_64-linux-gnu/libpthread.so.0+0x76b9)
27:
27: Thread T1 created by T0 here:
27: #0 0x7fe8b5808253 in pthread_create
(/usr/lib/x86_64-linux-gnu/libasan.so.2+0x36253)
27: #1 0x526dad in sys_thread
/home/travis/build/apache/qpid-dispatch/src/posix/threading.c:181
27: #2 0x5b8302 in qdr_core
/home/travis/build/apache/qpid-dispatch/src/router_core/router_core.c:124
27: #3 0x63105a in qd_router_setup_late
/home/travis/build/apache/qpid-dispatch/src/router_node.c:2120
27: #4 0x7fe8ae158e3f in ffi_call_unix64
(/usr/lib/x86_64-linux-gnu/libffi.so.6+0x5e3f)
27: #5 0x7ffe051ba18f (<unknown module>)
27:
27: SUMMARY: AddressSanitizer: use-after-poison
/home/travis/build/apache/qpid-dispatch/src/router_core/router_core.c:719
qdr_core_unbind_address_link_CT
27: Shadow bytes around the buggy address:
27: 0x0c2e80012610: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
27: 0x0c2e80012620: 00 00 00 00 00 00 00 00 fa fa fa fa fa fa fa fa
27: 0x0c2e80012630: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
27: 0x0c2e80012640: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
27: 0x0c2e80012650: 00 00 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
27: =>0x0c2e80012660: f7 f7[f7]f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
27: 0x0c2e80012670: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
27: 0x0c2e80012680: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
27: 0x0c2e80012690: f7 f7 f7 f7 f7 f7 f7 00 fa fa fa fa fa fa fa fa
27: 0x0c2e800126a0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
27: 0x0c2e800126b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
27: Shadow byte legend (one shadow byte represents 8 application bytes):
27: Addressable: 00
27: Partially addressable: 01 02 03 04 05 06 07
27: Heap left redzone: fa
27: Heap right redzone: fb
27: Freed heap region: fd
27: Stack left redzone: f1
27: Stack mid redzone: f2
27: Stack right redzone: f3
27: Stack partial redzone: f4
27: Stack after return: f5
27: Stack use after scope: f8
27: Global redzone: f9
27: Global init order: f6
27: Poisoned by user: f7
27: Container overflow: fc
27: Array cookie: ac
27: Intra object redzone: bb
27: ASan internal: fe
27: ==13516==ABORTING
{noformat}
> ASAN use after free from qdr_core_unbind_address_link_CT in
> system_tests_protocol_settings
> ------------------------------------------------------------------------------------------
>
> Key: DISPATCH-2188
> URL: https://issues.apache.org/jira/browse/DISPATCH-2188
> Project: Qpid Dispatch
> Issue Type: Bug
> Affects Versions: 1.17.0
> Reporter: Jiri Daněk
> Priority: Major
> Labels: asan, memory-bug
>
> https://travis-ci.com/github/apache/qpid-dispatch/jobs/519782806#L4771
> {noformat}
> 27: Router EB1 output file:
> 27: >>>>
> 27: =================================================================
> 27: ==15423==ERROR: AddressSanitizer: use-after-poison on address
> 0x6170000dc290 at pc 0x0000006e842a bp 0x7fbe59ae3070 sp 0x7fbe59ae3068
> 27: WRITE of size 8 at 0x6170000dc290 thread T1
> 27: #0 0x6e8429 in qdr_core_unbind_address_link_CT
> /home/travis/build/apache/qpid-dispatch/src/router_core/router_core.c:715:23
> 27: #1 0x722f7f in del_outlink
> /home/travis/build/apache/qpid-dispatch/src/router_core/modules/edge_router/addr_proxy.c:216:9
> 27: #2 0x67a135 in qdrc_event_addr_raise
> /home/travis/build/apache/qpid-dispatch/src/router_core/core_events.c:125:13
> 27: #3 0x6e7f40 in qdr_core_unbind_address_link_CT
> /home/travis/build/apache/qpid-dispatch/src/router_core/router_core.c
> 27: #4 0x666b5c in qdr_link_inbound_detach_CT
> /home/travis/build/apache/qpid-dispatch/src/router_core/connections.c:2064:17
> 27: #5 0x6f2490 in router_core_thread
> /home/travis/build/apache/qpid-dispatch/src/router_core/router_core_thread.c:239:13
> 27: #6 0x7fbe5fdfe608 in start_thread
> (/lib/x86_64-linux-gnu/libpthread.so.0+0x9608)
> 27: #7 0x7fbe5f629292 in clone (/lib/x86_64-linux-gnu/libc.so.6+0x122292)
> 27:
> 27: 0x6170000dc290 is located 272 bytes inside of 704-byte region
> [0x6170000dc180,0x6170000dc440)
> 27: allocated by thread T1 here:
> 27: #0 0x4bb5c7 in posix_memalign
> (/home/travis/build/apache/qpid-dispatch/build/router/qdrouterd+0x4bb5c7)
> 27: #1 0x57319e in qd_alloc
> /home/travis/build/apache/qpid-dispatch/src/alloc_pool.c:396:13
> 27: #2 0x66cb80 in qdr_create_link_CT
> /home/travis/build/apache/qpid-dispatch/src/router_core/connections.c:1128:24
> 27: #3 0x71fb5d in on_conn_event
> /home/travis/build/apache/qpid-dispatch/src/router_core/modules/edge_router/addr_proxy.c:281:32
> 27: #4 0x679cb5 in qdrc_event_conn_raise
> /home/travis/build/apache/qpid-dispatch/src/router_core/core_events.c:101:13
> 27: #5 0x679cb5 in qdrc_event_conn_raise
> /home/travis/build/apache/qpid-dispatch/src/router_core/core_events.c:101:13
> 27: #6 0x6524d0 in qdr_connection_opened_CT
> /home/travis/build/apache/qpid-dispatch/src/router_core/connections.c:1440:5
> 27: #7 0x6f2490 in router_core_thread
> /home/travis/build/apache/qpid-dispatch/src/router_core/router_core_thread.c:239:13
> 27: #8 0x7fbe5fdfe608 in start_thread
> (/lib/x86_64-linux-gnu/libpthread.so.0+0x9608)
> 27:
> 27: Thread T1 created by T0 here:
> 27: #0 0x4a520c in pthread_create
> (/home/travis/build/apache/qpid-dispatch/build/router/qdrouterd+0x4a520c)
> 27: #1 0x6245c7 in sys_thread
> /home/travis/build/apache/qpid-dispatch/src/posix/threading.c:181:5
> 27: #2 0x6d287a in qdr_core
> /home/travis/build/apache/qpid-dispatch/src/router_core/router_core.c:124:20
> 27: #3 0x75c06f in qd_router_setup_late
> /home/travis/build/apache/qpid-dispatch/src/router_node.c:2124:31
> 27: #4 0x7fbe5b509ff4 (/lib/x86_64-linux-gnu/libffi.so.7+0x6ff4)
> 27: LLVMSymbolizer: error reading file: No such file or directory
> 27: #5 0x7ffc3aaec1cf ([stack]+0x211cf)
> 27:
> 27: SUMMARY: AddressSanitizer: use-after-poison
> /home/travis/build/apache/qpid-dispatch/src/router_core/router_core.c:715:23
> in qdr_core_unbind_address_link_CT
> 27: Shadow bytes around the buggy address:
> 27: 0x0c2e80013800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 27: 0x0c2e80013810: 00 00 00 00 00 00 00 00 fa fa fa fa fa fa fa fa
> 27: 0x0c2e80013820: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
> 27: 0x0c2e80013830: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 27: 0x0c2e80013840: 00 00 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
> 27: =>0x0c2e80013850: f7 f7[f7]f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
> 27: 0x0c2e80013860: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
> 27: 0x0c2e80013870: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
> 27: 0x0c2e80013880: f7 f7 f7 f7 f7 f7 f7 00 fa fa fa fa fa fa fa fa
> 27: 0x0c2e80013890: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
> 27: 0x0c2e800138a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 27: Shadow byte legend (one shadow byte represents 8 application bytes):
> 27: Addressable: 00
> 27: Partially addressable: 01 02 03 04 05 06 07
> 27: Heap left redzone: fa
> 27: Freed heap region: fd
> 27: Stack left redzone: f1
> 27: Stack mid redzone: f2
> 27: Stack right redzone: f3
> 27: Stack after return: f5
> 27: Stack use after scope: f8
> 27: Global redzone: f9
> 27: Global init order: f6
> 27: Poisoned by user: f7
> 27: Container overflow: fc
> 27: Array cookie: ac
> 27: Intra object redzone: bb
> 27: ASan internal: fe
> 27: Left alloca redzone: ca
> 27: Right alloca redzone: cb
> 27: Shadow gap: cc
> 27: ==15423==ABORTING
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]