Ganesh Murthy created DISPATCH-2264:
---------------------------------------
Summary: [http2] Router crash on delete of httpListener
Key: DISPATCH-2264
URL: https://issues.apache.org/jira/browse/DISPATCH-2264
Project: Qpid Dispatch
Issue Type: Bug
Components: Protocol Adaptors
Affects Versions: 1.17.0
Reporter: Ganesh Murthy
Assignee: Ganesh Murthy
Fix For: 1.18.0
Add a httpListener to the router config listener like this
{noformat}
httpListener {
port: 21483
address: examples
host: 127.0.0.1
protocolVersion: HTTP2
name: http-listener
} {noformat}
Try deleting the httpListener using qdmanage and the router will crash with the
following backtrace
{noformat}
qdmanage -b 0.0.0.0:21482 DELETE --type=httpListener --name=http-listener
{noformat}
{noformat}
==2430968==ERROR: AddressSanitizer: heap-use-after-free on address
0x6020000036f0 at pc 0x7f05f98ec55d bp 0x7f05e60d3410 sp 0x7f05e60d2bc0
READ of size 2 at 0x6020000036f0 thread T2
#0 0x7f05f98ec55c (/lib64/libasan.so.6+0x5a55c)
#1 0x7f05f98edeb5 in __interceptor_vsnprintf (/lib64/libasan.so.6+0x5beb5)
#2 0x51d2e3 in qd_vlog_impl
/home/gmurthy/opensource/qpid-dispatch/src/log.c:443
#3 0x51d8c5 in qd_log_impl
/home/gmurthy/opensource/qpid-dispatch/src/log.c:463
#4 0x73bdae in handle_listener_event
/home/gmurthy/opensource/qpid-dispatch/src/adaptors/http2/http2_adaptor.c:2607
#5 0x6de966 in handle_event_with_context
/home/gmurthy/opensource/qpid-dispatch/src/server.c:814
#6 0x6de9e4 in do_handle_listener
/home/gmurthy/opensource/qpid-dispatch/src/server.c:825
#7 0x6e1443 in handle
/home/gmurthy/opensource/qpid-dispatch/src/server.c:1024
#8 0x6e2fde in thread_run
/home/gmurthy/opensource/qpid-dispatch/src/server.c:1133
#9 0x575775 in _thread_init
/home/gmurthy/opensource/qpid-dispatch/src/posix/threading.c:172
#10 0x7f05f98283f8 in start_thread (/lib64/libpthread.so.0+0x93f8)
#11 0x7f05f89ce4c2 in __clone (/lib64/libc.so.6+0x1014c2)
{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]