Uploaded image for project: 'AMQ Interconnect'
  1. AMQ Interconnect
  2. ENTMQIC-1939

posix/threading.c:57: sys_mutex_lock: Assertion `result == 0' failed.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • None
    • 1.0.0.GA
    • Qpid Dispatch Router
    • None
    • Hide

      1) Use default config with the following modification: Set http: yes on the listener.
      2) Connect with the Console to the router
      3) Delete the listener using the console (Entities tab).
      4) The router will crash.

      I am setting low priority because the testcase is rather artificial (nobody in their right mind will be deleting the only available listener on the router).

      Show
      1) Use default config with the following modification: Set http: yes on the listener. 2) Connect with the Console to the router 3) Delete the listener using the console (Entities tab). 4) The router will crash. I am setting low priority because the testcase is rather artificial (nobody in their right mind will be deleting the only available listener on the router).

      [root@146c21884d9c /]# qdrouterd -c qdrouterd.conf 
      Mon May 15 11:19:02 2017 HTTP (info) Initial logging level 7
      Mon May 15 11:19:02 2017 HTTP (info) Libwebsockets version: 2.1.0 unknown-build-hash
      Mon May 15 11:19:02 2017 HTTP (info) IPV6 not compiled in
      Mon May 15 11:19:02 2017 HTTP (info) libev support not compiled in
      Mon May 15 11:19:02 2017 HTTP (info) libuv support not compiled in
      Mon May 15 11:19:02 2017 HTTP (info)  Threads: 1 each 1048576 fds
      Mon May 15 11:19:02 2017 HTTP (info)  mem: platform fd map: 8388608 bytes
      Mon May 15 11:19:02 2017 HTTP (info)  Compiled with OpenSSL support
      Mon May 15 11:19:02 2017 HTTP (info)  mem: per-conn:          512 bytes + protocol rx buf
      Mon May 15 11:19:02 2017 SERVER (info) Container Name: Router.A
      Mon May 15 11:19:02 2017 ROUTER (info) Router started in Standalone mode
      Mon May 15 11:19:02 2017 ROUTER_CORE (info) Allow Unsettled Multicast: no
      Mon May 15 11:19:02 2017 ROUTER_CORE (info) Router Core thread running. 0/Router.A
      Mon May 15 11:19:02 2017 ROUTER_CORE (info) In-process subscription M/$management
      Mon May 15 11:19:02 2017 ROUTER_CORE (info) In-process subscription L/$management
      Mon May 15 11:19:02 2017 AGENT (info) Activating management agent on $_management_internal
      Mon May 15 11:19:02 2017 ROUTER_CORE (info) In-process subscription L/$_management_internal
      Mon May 15 11:19:02 2017 CONN_MGR (info) Configured Listener: 0.0.0.0:amqp proto=any, role=normal, http
      Mon May 15 11:19:02 2017 HTTP (info) Creating Vhost 'vhost0' port -2, 3 protocols, IPv6 off
      Mon May 15 11:19:02 2017 HTTP (info)    mounting file:///usr/share/qpid-dispatch/console/stand-alone to /
      Mon May 15 11:19:02 2017 POLICY (info) Policy configured maxConnections: 65535, policyDir: '', access rules enabled: 'false'
      Mon May 15 11:19:02 2017 POLICY (info) Policy fallback defaultVhost is defined: '$default'
      Mon May 15 11:19:02 2017 SERVER (info) Operational, 4 Threads Running
      Mon May 15 11:29:11 2017 HTTP (info) lws_protocol_init
      Mon May 15 11:29:12 2017 HTTP (info) 0x7f1e54011e40 new partial sent 4116 from 47718 total
      Mon May 15 11:29:49 2017 HTTP (info) 0x7f1e54011e40 new partial sent 4116 from 5050 total
      Mon May 15 11:29:54 2017 HTTP (info) 0x7f1e54011e40 new partial sent 4116 from 5130 total
      Mon May 15 11:30:39 2017 HTTP (info) 0x7f1e54011e40 new partial sent 4116 from 7430 total
      Mon May 15 11:30:44 2017 HTTP (info) 0x7f1e54011e40 new partial sent 4116 from 8205 total
      qdrouterd: /builddir/build/BUILD/qpid-dispatch-0.8.0/src/posix/threading.c:57: sys_mutex_lock: Assertion `result == 0' failed.
      Aborted (core dumped)
      
      (gdb) thread apply all bt
      
      Thread 5 (Thread 0x7f1e615a4700 (LWP 144)):
      #0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
      #1  0x00007f1e6a2b9189 in sys_cond_wait (cond=<optimized out>, held_mutex=<optimized out>) at /usr/src/debug/qpid-dispatch-0.8.0/src/posix/threading.c:91
      #2  0x00007f1e6a2d074c in thread_run (arg=<optimized out>) at /usr/src/debug/qpid-dispatch-0.8.0/src/server.c:886
      #3  0x00007f1e69e27dc5 in start_thread (arg=0x7f1e615a4700) at pthread_create.c:308
      #4  0x00007f1e6915d73d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
      
      Thread 4 (Thread 0x7f1e60da3700 (LWP 145)):
      #0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
      #1  0x00007f1e6a2b9189 in sys_cond_wait (cond=<optimized out>, held_mutex=<optimized out>) at /usr/src/debug/qpid-dispatch-0.8.0/src/posix/threading.c:91
      #2  0x00007f1e6a2d074c in thread_run (arg=<optimized out>) at /usr/src/debug/qpid-dispatch-0.8.0/src/server.c:886
      #3  0x00007f1e69e27dc5 in start_thread (arg=0x7f1e60da3700) at pthread_create.c:308
      #4  0x00007f1e6915d73d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
      
      Thread 3 (Thread 0x7f1e627b9700 (LWP 142)):
      #0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
      #1  0x00007f1e6a2b9189 in sys_cond_wait (cond=<optimized out>, held_mutex=<optimized out>) at /usr/src/debug/qpid-dispatch-0.8.0/src/posix/threading.c:91
      #2  0x00007f1e6a2c7145 in router_core_thread (arg=0x2231a20) at /usr/src/debug/qpid-dispatch-0.8.0/src/router_core/router_core_thread.c:66
      #3  0x00007f1e69e27dc5 in start_thread (arg=0x7f1e627b9700) at pthread_create.c:308
      #4  0x00007f1e6915d73d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
      
      Thread 2 (Thread 0x7f1e61da5700 (LWP 143)):
      #0  0x00007f1e69152dfd in poll () at ../sysdeps/unix/syscall-template.S:81
      #1  0x00007f1e6a2b8b1a in poll (__timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/bits/poll2.h:46
      #2  qdpn_driver_wait_2 (d=0x1f47220, timeout=<optimized out>, timeout@entry=143) at /usr/src/debug/qpid-dispatch-0.8.0/src/posix/driver.c:914
      #3  0x00007f1e6a2d0369 in thread_run (arg=<optimized out>) at /usr/src/debug/qpid-dispatch-0.8.0/src/server.c:912
      #4  0x00007f1e69e27dc5 in start_thread (arg=0x7f1e61da5700) at pthread_create.c:308
      #5  0x00007f1e6915d73d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
      
      Thread 1 (Thread 0x7f1e6a6fc1c0 (LWP 141)):
      #0  0x00007f1e6909b1d7 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
      #1  0x00007f1e6909c8c8 in __GI_abort () at abort.c:90
      #2  0x00007f1e69094146 in __assert_fail_base (fmt=0x7f1e691e53a8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x7f1e6a2d5bd3 "result == 0", file=file@entry=0x7f1e6a2d5b88 "/builddir/build/BUILD/qpid-dispatch-0.8.0/src/posix/threading.c", 
          line=line@entry=57, function=function@entry=0x7f1e6a2d5c91 <__PRETTY_FUNCTION__.3970> "sys_mutex_lock") at assert.c:92
      #3  0x00007f1e690941f2 in __GI___assert_fail (assertion=assertion@entry=0x7f1e6a2d5bd3 "result == 0", file=file@entry=0x7f1e6a2d5b88 "/builddir/build/BUILD/qpid-dispatch-0.8.0/src/posix/threading.c", line=line@entry=57, 
          function=function@entry=0x7f1e6a2d5c91 <__PRETTY_FUNCTION__.3970> "sys_mutex_lock") at assert.c:101
      #4  0x00007f1e6a2b90a1 in sys_mutex_lock (mutex=<optimized out>) at /usr/src/debug/qpid-dispatch-0.8.0/src/posix/threading.c:57
      #5  0x00007f1e6a2d24fe in http_connector_process (c=0x7f1e54000b90) at /usr/src/debug/qpid-dispatch-0.8.0/src/http-libwebsockets.c:274
      #6  0x00007f1e6a2d0b21 in process_connector (cxtr=<optimized out>, qd_server=0x1f3cd30) at /usr/src/debug/qpid-dispatch-0.8.0/src/server.c:726
      #7  thread_run (arg=<optimized out>) at /usr/src/debug/qpid-dispatch-0.8.0/src/server.c:1004
      #8  0x00007f1e6a2d12f6 in qd_server_run (qd=0x1cd0010) at /usr/src/debug/qpid-dispatch-0.8.0/src/server.c:1410
      #9  0x0000000000401bd7 in main_process (config_path=config_path@entry=0x7ffda55fb999 "qdrouterd.conf", python_pkgdir=python_pkgdir@entry=0x402321 "/usr/lib/qpid-dispatch/python", fd=fd@entry=2) at /usr/src/debug/qpid-dispatch-0.8.0/router/src/main.c:147
      #10 0x0000000000401844 in main (argc=3, argv=0x7ffda55fa408) at /usr/src/debug/qpid-dispatch-0.8.0/router/src/main.c:353
      (gdb) 
      

              Unassigned Unassigned
              jdanek@redhat.com Jiri Daněk
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: