[ 
https://issues.apache.org/jira/browse/DISPATCH-1876?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17246153#comment-17246153
 ] 

ASF subversion and git services commented on DISPATCH-1876:
-----------------------------------------------------------

Commit 3088407e2c635a71f0cc1564c18dd7239c138ebe in qpid-dispatch's branch 
refs/heads/dev-protocol-adaptors-2 from Charles E. Rolke
[ https://gitbox.apache.org/repos/asf?p=qpid-dispatch.git;h=3088407 ]

DISPATCH-1876: reproducer self test


> TCP adaptor crash handling fast socket open/close
> -------------------------------------------------
>
>                 Key: DISPATCH-1876
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-1876
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Protocol Adaptors
>            Reporter: Charles E. Rolke
>            Priority: Major
>
> Single interior router serving a TCP listener and connector. Client program 
> opens socket to TCP listener and then closes it immediately.
> Router log:
> {code:java}
> 2020-12-08 11:50:43.397341 -0500 ROUTER_CORE (info) [C2] Connection Opened: 
> dir=in host=::ffff:127.0.0.1 vhost= encrypted=no auth=no user=anonymous 
> container_id=3ee9b2f3-e322-4244-a75f-4a80635d86bd 
> props={:"console_identifier"="Dispatch console"} 
> (/home/chug/git/qpid-dispatch/src/router_core/connections.c:136)
> 2020-12-08 11:50:43.399576 -0500 ROUTER_CORE (info) [C2][L2] Link attached: 
> dir=out source={(dyn)<none> expire:sess} target={<none> expire:sess} 
> (/home/chug/git/qpid-dispatch/src/router_core/connections.c:1803)
> 2020-12-08 11:50:43.400824 -0500 ROUTER_CORE (info) [C2][L3] Link attached: 
> dir=in source={<none> expire:sess} target={<none> expire:sess} 
> (/home/chug/git/qpid-dispatch/src/router_core/connections.c:1803)
> 2020-12-08 11:50:44.123816 -0500 ROUTER_CORE (info) [C3] Connection Opened: 
> dir=in host=::ffff:127.0.0.1 vhost= encrypted=no auth=no user=anonymous 
> container_id=8f6f9427-2d89-2441-88ad-ace4dc0924d8 
> props={:"console_identifier"="Dispatch console"} 
> (/home/chug/git/qpid-dispatch/src/router_core/connections.c:136)
> 2020-12-08 11:50:44.127284 -0500 ROUTER_CORE (info) [C3][L4] Link attached: 
> dir=out source={(dyn)<none> expire:sess} target={<none> expire:sess} 
> (/home/chug/git/qpid-dispatch/src/router_core/connections.c:1803)
> 2020-12-08 11:50:44.129013 -0500 ROUTER_CORE (info) [C3][L5] Link attached: 
> dir=in source={<none> expire:sess} target={<none> expire:sess} 
> (/home/chug/git/qpid-dispatch/src/router_core/connections.c:1803)
> 2020-12-08 11:51:28.731328 -0500 TCP_ADAPTOR (info) PN_LISTENER_ACCEPT 
> Accepting TCP connection on 0.0.0.0:29341 
> (/home/chug/git/qpid-dispatch/src/adaptors/tcp_adaptor.c:757)
> 2020-12-08 11:51:28.731531 -0500 ROUTER_CORE (info) [C4] Connection Opened: 
> dir=in host=127.0.0.1:44454 vhost= encrypted=no auth=no user= 
> container_id=TcpAdaptor props= 
> (/home/chug/git/qpid-dispatch/src/router_core/connections.c:136)
> 2020-12-08 11:51:28.731832 -0500 ROUTER_CORE (info) [C4][L6] Link attached: 
> dir=out source={(dyn)<none> expire:link} target={<none> expire:link} 
> (/home/chug/git/qpid-dispatch/src/router_core/connections.c:1803)
> 2020-12-08 11:51:28.731869 -0500 TCP_ADAPTOR (info) [C4] 
> PN_RAW_CONNECTION_CONNECTED Ingress accepted to 0.0.0.0:29341 from 
> 127.0.0.1:44454 (global_id=127.0.0.1:44454@mySite) 
> (/home/chug/git/qpid-dispatch/src/adaptors/tcp_adaptor.c:506)
> 2020-12-08 11:51:28.731898 -0500 ROUTER_CORE (info) [C4][L7] Link attached: 
> dir=in source={<none> expire:link} target={ES_INTA expire:link} 
> (/home/chug/git/qpid-dispatch/src/router_core/connections.c:1803)
> 2020-12-08 11:51:28.732042 -0500 TCP_ADAPTOR (info) [C5] Connecting to: 
> 127.0.0.1:29340 (/home/chug/git/qpid-dispatch/src/adaptors/tcp_adaptor.c:688)
> 2020-12-08 11:51:28.732062 -0500 TCP_ADAPTOR (info) [C4] 
> PN_RAW_CONNECTION_DISCONNECTED 
> (/home/chug/git/qpid-dispatch/src/adaptors/tcp_adaptor.c:532)
> 2020-12-08 11:51:28.732126 -0500 ROUTER_CORE (info) [C4][L7] Link lost: del=1 
> presett=1 psdrop=0 acc=0 rej=0 rel=0 mod=0 delay1=0 delay10=0 blocked=no 
> (/home/chug/git/qpid-dispatch/src/router_core/connections.c:1047)
> 2020-12-08 11:51:28.732150 -0500 ROUTER_CORE (info) [C4][L6] Link lost: del=0 
> presett=0 psdrop=0 acc=0 rej=0 rel=0 mod=0 delay1=0 delay10=0 blocked=no 
> (/home/chug/git/qpid-dispatch/src/router_core/connections.c:1047)
> 2020-12-08 11:51:28.732166 -0500 ROUTER_CORE (info) [C4] Connection Closed 
> (/home/chug/git/qpid-dispatch/src/router_core/connections.c:1528)
> 2020-12-08 11:51:28.732296 -0500 TCP_ADAPTOR (info) [C5] 
> PN_RAW_CONNECTION_CONNECTED Egress connected to 127.0.0.1:29340 
> (/home/chug/git/qpid-dispatch/src/adaptors/tcp_adaptor.c:511)
> 2020-12-08 11:51:28.732321 -0500 TCP_ADAPTOR (info) [C5] Opening server-side 
> core connection 127.0.0.1:29340 
> (/home/chug/git/qpid-dispatch/src/adaptors/tcp_adaptor.c:608)
> 2020-12-08 11:51:28.732451 -0500 ROUTER_CORE (info) [C5] Connection Opened: 
> dir=out host=127.0.0.1:29340 vhost= encrypted=no auth=no user= 
> container_id=TcpAdaptor props= 
> (/home/chug/git/qpid-dispatch/src/router_core/connections.c:136)
> {code}
>  
> GDB backtrace:
> {code:java}
> Program terminated with signal SIGSEGV, Segmentation fault.
> warning: Unexpected size of section `.reg-xstate/1304710' in core file.
> #0  0x00007f6e64f2ea50 in qd_alloc_sequence (p=0x9999999999999999) at 
> /home/chug/git/qpid-dispatch/src/alloc_pool.c:507
> 507       return item->sequence;
> [Current thread is 1 (Thread 0x7f6e5680d700 (LWP 1304710))]
> (gdb) bt
> #0  0x00007f6e64f2ea50 in qd_alloc_sequence (p=0x9999999999999999) at 
> /home/chug/git/qpid-dispatch/src/alloc_pool.c:507
> #1  0x00007f6e64f7ca78 in safe_deref_qdr_link_t (sp=...) at 
> /home/chug/git/qpid-dispatch/src/router_core/router_core.c:32
> #2  0x00007f6e64f69e74 in qdr_link_process_initial_delivery_CT 
> (core=0x1abade0, link=0x7f6e3c096ed0, dlv=0x7f6e4814a350) at 
> /home/chug/git/qpid-dispatch/src/router_core/connections.c:1608
> #3  0x00007f6e64f6a908 in qdr_link_inbound_first_attach_CT (core=0x1abade0, 
> action=0x7f6e48128a50, discard=false) at 
> /home/chug/git/qpid-dispatch/src/router_core/connections.c:1770
> #4  0x00007f6e64f82994 in router_core_thread (arg=0x1abade0) at 
> /home/chug/git/qpid-dispatch/src/router_core/router_core_thread.c:245
> #5  0x00007f6e64f564f7 in _thread_init (arg=0x1a596e0) at 
> /home/chug/git/qpid-dispatch/src/posix/threading.c:172
> #6  0x00007f6e64e1f4e2 in start_thread (arg=<optimized out>) at 
> pthread_create.c:479
> #7  0x00007f6e649526c3 in clone () at 
> ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
> {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]

Reply via email to