crash on shutdown when client is connected to statistics channel
Summary
BIND crashes on shutdown if a client is connected to statistics channel via TCP.
BIND version used
Versions NOT affected:
Steps to reproduce
- Start
named
- Connect to statistics channel:
telnet 127.0.0.1 8080
- SIGINT
named
What is the current bug behavior?
Program terminated with signal SIGABRT, Aborted.
#0 0x00007fa24604a26c in ?? () from /usr/lib/libc.so.6
[Current thread is 1 (Thread 0x7fa246cae580 (LWP 504267))]
(gdb) bt
#0 0x00007fa24604a26c in ?? () from /usr/lib/libc.so.6
#1 0x00007fa245ffaa08 in raise () from /usr/lib/libc.so.6
#2 0x00007fa245fe3538 in abort () from /usr/lib/libc.so.6
#3 0x00005646d2ecbbd9 in assertion_failed (file=0x7fa247416466 "httpd.c", line=874, type=isc_assertiontype_require, cond=0x7fa247416b30 "(mgr->flags & 0x00000001) == 0") at main.c:225
#4 0x00007fa2473c433a in isc_assertion_failed (file=0x7fa247416466 "httpd.c", line=874, type=isc_assertiontype_require, cond=0x7fa247416b30 "(mgr->flags & 0x00000001) == 0") at assertions.c:48
#5 0x00007fa2473d4ca7 in httpd_request (handle=0x7fa2436b6a00, eresult=ISC_R_SUCCESS, region=0x0, arg=0x7fa242c46b00) at httpd.c:874
#6 0x00007fa2473d502a in isc_httpdmgr_shutdown (httpdmgrp=0x7fa243706200) at httpd.c:948
#7 0x00005646d2f0cae3 in shutdown_listener (listener=0x7fa243706200) at statschannel.c:2983
#8 0x00005646d2f0e65e in named_statschannels_shutdown (server=0x7fa2436b4700) at statschannel.c:3345
#9 0x00005646d2eeda84 in shutdown_server (arg=0x7fa2436b4700) at server.c:10021
#10 0x00007fa2473c481e in isc__async_cb (handle=0x7fa2436e5808) at async.c:112
#11 0x00007fa246d67363 in uv__async_io (loop=0x7fa2436e54a0, w=<optimized out>, events=<optimized out>) at src/unix/async.c:163
#12 0x00007fa246d79c23 in uv__io_poll (loop=loop@entry=0x7fa2436e54a0, timeout=27547) at src/unix/epoll.c:374
#13 0x00007fa246d67d47 in uv_run (loop=0x7fa2436e54a0, mode=UV_RUN_DEFAULT) at src/unix/core.c:406
#14 0x00007fa2473e02e9 in loop_thread (arg=0x7fa2436e5480) at loop.c:281
#15 0x00007fa2473f78e0 in thread_body (wrap=0x7fa2436ec880) at thread.c:88
#16 0x00007fa2473f7999 in isc_thread_main (func=0x7fa2473e016f <loop_thread>, arg=0x7fa2436e5480) at thread.c:119
#17 0x00007fa2473e12b0 in isc_loopmgr_run (loopmgr=0x7fa243620a80) at loop.c:452
#18 0x00005646d2ece899 in main (argc=4, argv=0x7fff6b424618) at main.c:1532
What is the expected correct behavior?
No crash.
Relevant configuration files
statistics-channels {
inet 127.0.0.1 port 8080;
};