[
https://issues.apache.org/jira/browse/DISPATCH-1661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17118901#comment-17118901
]
Ken Giusti commented on DISPATCH-1661:
--------------------------------------
If you look at the travis run against the Debug release there's a more accurate
traceback:
53: Router EA1 debug dump file:
53: alloc.c: Items of type 'qd_buffer_t' remain allocated at shutdown: 1
53:
Leak,/home/travis/build/kgiusti/dispatch/build/tests/system_test.dir/system_tests_edge_router/StreamingMessageTest/setUpClass/EA1-qddebug.txt,2020-05-28
15:36:52.979613 +0000,qd_buffer_t,0x12e1450
53:
/home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(qd_alloc+0x21b)
[0x7fe9f0b9e77c]
53:
/home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(new_qd_buffer_t+0x26)
[0x7fe9f0ba0324]
53:
/home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(qd_buffer+0x17)
[0x7fe9f0ba0444]
53:
/home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(qd_message_receive+0x3f9)
[0x7fe9f0bb69ca]
53: /home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(+0x94477)
[0x7fe9f0c06477]
53: /home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(+0x35bde)
[0x7fe9f0ba7bde]
53:
/home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(qd_container_handle_event+0xd0a)
[0x7fe9f0ba9382]
53: /home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(+0x9d8c7)
[0x7fe9f0c0f8c7]
53: /home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(+0x9d9b1)
[0x7fe9f0c0f9b1]
53:
/home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(qd_server_run+0x26f)
[0x7fe9f0c10d1f]
53:
53: alloc.c: Items of type 'qd_message_t' remain allocated at shutdown: 1
53:
Leak,/home/travis/build/kgiusti/dispatch/build/tests/system_test.dir/system_tests_edge_router/StreamingMessageTest/setUpClass/EA1-qddebug.txt,2020-05-28
15:36:52.979599 +0000,qd_message_t,0x15a1950
53:
/home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(qd_alloc+0x21b)
[0x7fe9f0b9e77c]
53:
/home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(new_qd_message_t+0x26)
[0x7fe9f0bb35bd]
53:
/home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(qd_message+0xe)
[0x7fe9f0bb5887]
53:
/home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(qd_message_receive+0x67)
[0x7fe9f0bb6638]
53: /home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(+0x94477)
[0x7fe9f0c06477]
53: /home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(+0x35bde)
[0x7fe9f0ba7bde]
53:
/home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(qd_container_handle_event+0xd0a)
[0x7fe9f0ba9382]
53: /home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(+0x9d8c7)
[0x7fe9f0c0f8c7]
53: /home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(+0x9d9b1)
[0x7fe9f0c0f9b1]
53:
/home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(qd_server_run+0x26f)
[0x7fe9f0c10d1f]
53:
53: alloc.c: Items of type 'qd_message_content_t' remain allocated at shutdown:
1
53:
Leak,/home/travis/build/kgiusti/dispatch/build/tests/system_test.dir/system_tests_edge_router/StreamingMessageTest/setUpClass/EA1-qddebug.txt,2020-05-28
15:36:52.979604 +0000,qd_message_content_t,0x11c36d0
53:
/home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(qd_alloc+0x21b)
[0x7fe9f0b9e77c]
53:
/home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(new_qd_message_content_t+0x26)
[0x7fe9f0bb36a6]
53:
/home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(qd_message+0x3e)
[0x7fe9f0bb58b7]
53:
/home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(qd_message_receive+0x67)
[0x7fe9f0bb6638]
53: /home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(+0x94477)
[0x7fe9f0c06477]
53: /home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(+0x35bde)
[0x7fe9f0ba7bde]
53:
/home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(qd_container_handle_event+0xd0a)
[0x7fe9f0ba9382]
53: /home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(+0x9d8c7)
[0x7fe9f0c0f8c7]
53: /home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(+0x9d9b1)
[0x7fe9f0c0f9b1]
53:
/home/travis/build/kgiusti/dispatch/build/src/libqpid-dispatch.so(qd_server_run+0x26f)
[0x7fe9f0c10d1f]
This is more accurate since the leaked objects are maintained on a free pool.
The debug build tracks these free pools and records the last point of
allocation from the pool. ASAN only tracks where the object was first
allocated from the heap - not the last time it was allocated from the pool.
I'm afraid that this particular traceback doesn't give us any more info other
than "a received message was leaked" :(
> system_tests_edge_router fails with ASAN leak
> ---------------------------------------------
>
> Key: DISPATCH-1661
> URL: https://issues.apache.org/jira/browse/DISPATCH-1661
> Project: Qpid Dispatch
> Issue Type: Bug
> Components: Tests
> Affects Versions: 1.12.0
> Reporter: Ganesh Murthy
> Priority: Major
>
> {noformat}
> 53: Router EB1 debug dump file:
> 53: alloc.c: Items of type 'qd_timer_t' remain allocated at shutdown: 2
> 53: alloc.c: Items of type 'qd_connector_t' remain allocated at shutdown: 2
> 53: ERROR
> 53:
> 53: ======================================================================
> 53: ERROR: tearDownClass (system_tests_edge_router.StreamingMessageTest)
> 53: ----------------------------------------------------------------------
> 53: Traceback (most recent call last):
> 53: File "/home/travis/build/apache/qpid-dispatch/tests/system_test.py",
> line 691, in tearDownClass
> 53: cls.tester.teardown()
> 53: File "/home/travis/build/apache/qpid-dispatch/tests/system_test.py",
> line 637, in teardown
> 53: raise RuntimeError("Errors during teardown: \n\n%s" %
> "\n\n".join([str(e) for e in errors]))
> 53: RuntimeError: Errors during teardown:
> 53:
> 53: Process 14572 error: exit code 23, expected 0
> 53: qdrouterd -c EA1.conf -I /home/travis/build/apache/qpid-dispatch/python
> 53:
> /home/travis/build/apache/qpid-dispatch/build/tests/system_test.dir/system_tests_edge_router/StreamingMessageTest/setUpClass/EA1-18.cmd
> 53: >>>>
> 53:
> 53: =================================================================
> 53: ==14572==ERROR: LeakSanitizer: detected memory leaks
> 53:
> 53: Indirect leak of 7488 byte(s) in 13 object(s) allocated from:
> 53: #0 0x7fdea74bb076 in __interceptor_posix_memalign
> (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x99076)
> 53: #1 0x7fdea6d95d28 in qd_alloc
> /home/travis/build/apache/qpid-dispatch/src/alloc_pool.c:347
> 53: #2 0x7fdea6d9fddd in qd_buffer
> /home/travis/build/apache/qpid-dispatch/src/buffer.c:44
> 53: #3 0x7fdea6ea7b8a in qdr_field
> /home/travis/build/apache/qpid-dispatch/src/router_core/router_core.c:255
> 53: #4 0x7fdea6ec331f in qdr_terminus
> /home/travis/build/apache/qpid-dispatch/src/router_core/terminus.c:47
> 53: #5 0x7fdea6efd6dd in AMQP_link_attach_handler
> /home/travis/build/apache/qpid-dispatch/src/router_node.c:866
> 53: #6 0x7fdea6f13674 in handle
> /home/travis/build/apache/qpid-dispatch/src/server.c:1015
> 53: #7 0x7fdea6f1919f in thread_run
> /home/travis/build/apache/qpid-dispatch/src/server.c:1040
> 53: #8 0x7fdea69236b9 in start_thread
> (/lib/x86_64-linux-gnu/libpthread.so.0+0x76b9)
> 53:
> 53: -----------------------------------------------------
> 53: Suppressions used:
> 53: count bytes template
> 53: 18 10944 qd_core_agent_query_handler
> 53: 73 41536 qd_message_receive
> 53: 13 7488 qdr_connection_opened
> 53: 15 8120 qdr_core_subscribe
> 53: 1 192 qdr_link_deliver
> 53: 4444 3311244 *libpython*
> 53: 37 120 *python2*
> 53: -----------------------------------------------------
> 53:
> 53: SUMMARY: AddressSanitizer: 7488 byte(s) leaked in 13 allocation(s).
> 53: <<<<
> 53:
> 53: ----------------------------------------------------------------------
> 53: Ran 90 tests in 241.217s
> 53:
> 53: FAILED (errors=1)53/66 Test #53: system_tests_edge_router
> ..........................***Failed 241.32 sec {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]