Description
On shutting down a router, it failed to stop and started using 100% cpu. The pstack output was the same on successive calls:
Thread 2 (Thread 0x7fd769ccc700 (LWP 20886)): #0 0x00007fd77757862e in qdr_del_connection_ref (ref_list=0x7fd76402b1c0, conn=conn@entry=0x7fd75c01cc70) at /home/gordon/projects/dispatch/src/router_core/router_core.c:278 #1 0x00007fd777576d0e in qdr_link_route_deactivate_CT (core=core@entry=0x256b180, lr=lr@entry=0x7fd7640331e0, conn=conn@entry=0x7fd75c01cc70) at /home/gordon/projects/dispatch/src/router_core/route_control.c:110 #2 0x00007fd77757784e in qdr_route_connection_closed_CT (core=core@entry=0x256b180, conn=conn@entry=0x7fd75c01cc70) at /home/gordon/projects/dispatch/src/router_core/route_control.c:380 #3 0x00007fd777573c33 in qdr_connection_closed_CT (core=0x256b180, action=<optimized out>, discard=<optimized out>) at /home/gordon/projects/dispatch/src/router_core/connections.c:886 #4 0x00007fd777578b45 in router_core_thread (arg=0x256b180) at /home/gordon/projects/dispatch/src/router_core/router_core_thread.c:71 #5 0x00007fd7770e360a in start_thread () from /lib64/libpthread.so.0 #6 0x00007fd776648a4d in clone () from /lib64/libc.so.6 Thread 1 (Thread 0x7fd777992180 (LWP 20885)): #0 0x00007fd7770e46ad in pthread_join () from /lib64/libpthread.so.0 #1 0x00007fd77756e59a in sys_thread_join (thread=<optimized out>) at /home/gordon/projects/dispatch/src/posix/threading.c:195 #2 0x00007fd777577f4a in qdr_core_free (core=0x256b180) at /home/gordon/projects/dispatch/src/router_core/router_core.c:95 #3 0x00007fd77757d613 in qd_router_free (router=0x2568040) at /home/gordon/projects/dispatch/src/router_node.c:839 #4 0x00007fd77756468e in qd_dispatch_free (qd=0x230d240) at /home/gordon/projects/dispatch/src/dispatch.c:219 #5 0x0000000000401ade in main_process (config_path=config_path@entry=0x7ffc3a30d0a1 "./etc/qpid-dispatch/topic.conf", python_pkgdir=python_pkgdir@entry=0x402468 "/home/gordon/projects/dispatch/installs/master/lib/qpid-dispatch/python", fd=fd@entry=2) at /home/gordon/projects/dispatch/router/src/main.c:139 #6 0x00000000004017b7 in main (argc=3, argv=0x7ffc3a30bb98) at /home/gordon/projects/dispatch/router/src/main.c:335