[
https://issues.apache.org/jira/browse/DISPATCH-1927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17271871#comment-17271871
]
ASF GitHub Bot commented on DISPATCH-1927:
------------------------------------------
ChugR commented on pull request #997:
URL: https://github.com/apache/qpid-dispatch/pull/997#issuecomment-766902938
This patch reveals other problems. Letting the test run longer leads to a
nasty crash:
` Core was generated by qdrouterd -c A.conf`
`Program terminated with signal SIGSEGV, Segmentation fault.`
`warning: Unexpected size of section `.reg-xstate/800006' in core file.`
`#0 0x00007f4ed2f7db8d in qd_alloc_init (desc=0x9999999999999999) at
/home/chug/git/qpid-dispatch/src/alloc_pool.c:269`
`269 sys_mutex_lock(init_lock);`
`[Current thread is 1 (Thread 0x7f4ec4863700 (LWP 800006))]`
`(gdb) bt`
`#0 0x00007f4ed2f7db8d in qd_alloc_init (desc=0x9999999999999999) at
/home/chug/git/qpid-dispatch/src/alloc_pool.c:269`
`#1 0x00007f4ed2fccd67 in deactivate_route_connection
(core=0x9999999999999999, conn=0x9999999999999999, cid=0x7f4ed2fccd67
<deactivate_route_connection+101>) at
/home/chug/git/qpid-dispatch/src/router_core/route_control.c:626`
`#2 0x00007f4ed2fbecaa in _receiver_second_attach_CT
(context=0x7f4ed2fbecaa <_receiver_second_attach_CT+155>,
remote_source=0x7f4ec4862140, remote_target=0x7f4ed2fd2a53
<qdr_global_stats_request_CT+532>)
at /home/chug/git/qpid-dispatch/src/router_core/core_client_api.c:423`
`#3 0x00007f4ed2fbf77d in _receiver_detached_CT
(client_context=0x7f4eb40cb8d0, error=0x7f4eb40cb8d0) at
/home/chug/git/qpid-dispatch/src/router_core/core_client_api.c:620`
`#4 0x00007f4ed2fb6e97 in qdr_link_first_attach (conn=0x136b4a0,
dir=(unknown: 32590), source=0x0, target=0x0, name=0x0, terminus_addr=0x0,
no_route=208, initial_delivery=0x7f00d3048140, link_id=0x7f4eb403a050)
at /home/chug/git/qpid-dispatch/src/router_core/connections.c:589`
`#5 0x00007f4ed2fbaee5 in qdr_link_inbound_first_attach_CT (core=0x1,
action=0x0, discard=78) at
/home/chug/git/qpid-dispatch/src/router_core/connections.c:1696`
`#6 0x00007f4ed2fd2d04 in qdr_protocol_adaptor (core=0x7f4ec0247810,
name=0x0, context=0x2, activate=0x7f4eb403a050, first_attach=0x7f4eb005ca90,
second_attach=0x7f4eb005a910, detach=0x0, flow=0x13d7b50, offer=0x0,
drained=0x0,
drain=0x0, push=0x7f4ed2e754e2 <start_thread+226>, deliver=0x0,
get_credit=0x7f4ec4863700, delivery_update=0x7f4ec4863700,
conn_close=0x650f95d19ef944ca, conn_trace=0x7fff8d30d4de)
at /home/chug/git/qpid-dispatch/src/router_core/router_core.c:1030`
`#7 0x00007f4ed2fa57be in remote_sasl_max_encrypt_size
(transport=0x7f4ed2fa57be <remote_sasl_max_encrypt_size+4>) at
/home/chug/git/qpid-dispatch/src/remote_sasl.c:469`
`#8 0x00000000013d7b50 in ?? ()`
`#9 0x0000000000000000 in ?? ()`
`(gdb) `
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> TCP adaptor Assertion `(link->undelivered).head' failed.
> --------------------------------------------------------
>
> Key: DISPATCH-1927
> URL: https://issues.apache.org/jira/browse/DISPATCH-1927
> Project: Qpid Dispatch
> Issue Type: Bug
> Components: Protocol Adaptors, Router Node
> Environment: Fedora 31
> Reporter: Charles E. Rolke
> Priority: Major
>
> Test setup:
> * Proton git: branch master @ 5e7d7af8f
> * Dispatch git: branch master @ ec39e5e
> * Debug build
> * Running the configuration described in DISPATCH-1777
> Seven clients run TCP_echo_client continuously against the server:
> * Four run --size 0
> * One runs --size 100
> * One runs --size 100000
> * One runs --size 1000000
> Eventually the router running the tcpConnector fails with the assertion.
> Tail of the router log:
> {code:java}
> Two router setup with a TCP listener on one router and a TCP connector on the
> other router.
> This is the log from the second tcpConnector router
> Here comes a message from core to TCP needing a new connection to egress
> server
> 2021-01-22 09:37:57.979054 -0500 TCP_ADAPTOR (debug) [C1] on_activate
> 2021-01-22 09:37:57.979594 -0500 TCP_ADAPTOR (debug) [C1][L1] qdr_tcp_push
> 2021-01-22 09:37:57.979619 -0500 TCP_ADAPTOR (debug) [C1][L1][D46793]
> qdr_tcp_deliver Delivery event
> 2021-01-22 09:37:57.979641 -0500 TCP_ADAPTOR (debug) [C1][L1][D46793]
> tcp_adaptor initiating egress connection
> 2021-01-22 09:37:57.979671 -0500 TCP_ADAPTOR (info) [C11768] Connecting to:
> 127.0.0.1:9090
> 2021-01-22 09:37:57.979789 -0500 TCP_ADAPTOR (debug) [C11767]
> qdr_tcp_activate: waking raw connection
> 2021-01-22 09:37:57.979974 -0500 TCP_ADAPTOR (info) [C11768]
> PN_RAW_CONNECTION_CONNECTED Egress connected to 127.0.0.1:9090
> 2021-01-22 09:37:57.980003 -0500 TCP_ADAPTOR (info) [C11768] Opening
> server-side core connection 127.0.0.1:9090
> 2021-01-22 09:37:57.980057 -0500 ROUTER_CORE (info) [C11768] Connection
> Opened: dir=out host=127.0.0.1:9090 vhost= encrypted=no auth=no user=
> container_id=TcpAdaptor props=
> Delivery is handed off to new connection/link
> 2021-01-22 09:37:57.980153 -0500 TCP_ADAPTOR (debug) [C1][L1][D46793]
> initial_delivery ownership passed to [C11768][L23564][D46793]
> 2021-01-22 09:37:57.980191 -0500 TCP_ADAPTOR (debug) [C11768]
> PN_RAW_CONNECTION_NEED_WRITE_BUFFERS
> 2021-01-22 09:37:57.980215 -0500 TCP_ADAPTOR (debug) [C11768]
> PN_RAW_CONNECTION_NEED_READ_BUFFERS
> 2021-01-22 09:37:57.980243 -0500 TCP_ADAPTOR (debug) [C11768][L23564] Waiting
> for credit to initiate message
> POOF! link_process_delivery has no deliveries yet.
> This is happening too soon. Probably.
> qdrouterd: /home/chug/git/qpid-dispatch/src/router_core/transfer.c:231:
> qdr_link_process_deliveries: Assertion `(link->undelivered).head' failed.
> from gdb: delivery_id = 46793, link_id = 23564, conn_id = 11768 or:
> [C11768][L23564][D46793] for failed process
> Moments later the rest of the connection/link setup happens
> 2021-01-22 09:37:57.980312 -0500 ROUTER_CORE (info) [C11768][L23564] Link
> attached: dir=out source={foo expire:link} target={<none> expire:link}
> 2021-01-22 09:37:57.980332 -0500 TCP_ADAPTOR (debug) [C11768]
> qdr_tcp_activate: waking raw connection
> 2021-01-22 09:37:57.980356 -0500 TCP_ADAPTOR (debug) [C11767]
> qdr_tcp_activate: waking raw connection
> 2021-01-22 09:37:57.980386 -0500 TCP_ADAPTOR (debug) [C11768]
> PN_RAW_CONNECTION_WAKE
> 2021-01-22 09:37:57.980404 -0500 TCP_ADAPTOR (debug) [C11768][L23564]
> qdr_tcp_second_attach
> 2021-01-22 09:37:57.980430 -0500 TCP_ADAPTOR (debug) [C11768][L23564]
> qdr_tcp_get_credit: NOOP
> 2021-01-22 09:37:57.980453 -0500 TCP_ADAPTOR (debug) [C11768][L23564]
> qdr_tcp_push
> 2021-01-22 09:37:57.980471 -0500 TCP_ADAPTOR (debug) [C11768][L23564][D46793]
> qdr_tcp_deliver Delivery event
> 2021-01-22 09:37:57.980563 -0500 TCP_ADAPTOR (debug) [C11768][L23565] Create
> Link to amqp:/_topo/0/router-b/temp.tsMXbvjL9M01_l8
> 2021-01-22 09:37:57.980591 -0500 TCP_ADAPTOR (debug) [C11768][L23564] Waiting
> for credit to initiate message
> 2021-01-22 09:37:57.980621 -0500 TCP_ADAPTOR (debug) [C11768] Writing 2040
> bytes
> 2021-01-22 09:37:57.980640 -0500 TCP_ADAPTOR (debug) [C11768] Writing 2048
> bytes
> 2021-01-22 09:37:57.980657 -0500 TCP_ADAPTOR (debug) [C11768] Writing 2048
> bytes
> 2021-01-22 09:37:57.980674 -0500 TCP_ADAPTOR (debug) [C11768] Writing 1104
> bytes
> 2021-01-22 09:37:57.980691 -0500 TCP_ADAPTOR (debug) [C11768][L23564]
> qdr_tcp_get_credit: NOOP
> Aborted (core dumped){code}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]