qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gordon Sim (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DISPATCH-296) segfault on router startup
Date Wed, 27 Apr 2016 16:35:12 GMT
Gordon Sim created DISPATCH-296:
-----------------------------------

             Summary: segfault on router startup
                 Key: DISPATCH-296
                 URL: https://issues.apache.org/jira/browse/DISPATCH-296
             Project: Qpid Dispatch
          Issue Type: Bug
          Components: Container
    Affects Versions: 0.6
            Reporter: Gordon Sim


Starting up a router with a couple of connectors (connectingto qpidd instances in my case),
the router occasionally (maybe one in five) crashes with a segfault.

{noformat}
(gdb) bt
#0  0x00007ffff629c76e in sasl_client_add_plugin () from /lib64/libsasl2.so.3
#1  0x00007ffff629cf58 in sasl_client_init () from /lib64/libsasl2.so.3
#2  0x00007ffff796ecff in pni_init_client (transport=transport@entry=0x7fffdc008fc0) at /home/gordon/projects/proton/proton-c/src/sasl/cyrus_sasl.c:115
#3  0x00007ffff796e87e in pn_do_mechanisms (transport=0x7fffdc008fc0, frame_type=<optimized
out>, channel=<optimized out>, args=<optimized out>, payload=<optimized
out>)
    at /home/gordon/projects/proton/proton-c/src/sasl/sasl.c:703
#4  0x00007ffff7959b26 in pni_dispatch_action (payload=0x7fffe96f2360, args=0x7fffdc0091c0,
channel=0, frame_type=1 '\001', lcode=<optimized out>, transport=0x7fffdc008fc0)
    at /home/gordon/projects/proton/proton-c/src/dispatcher/dispatcher.c:74
#5  pni_dispatch_frame (args=0x7fffdc0091c0, transport=0x7fffdc008fc0, frame=...) at /home/gordon/projects/proton/proton-c/src/dispatcher/dispatcher.c:116
#6  pn_dispatcher_input (transport=0x7fffdc008fc0, bytes=0x7fffdc00f358 "", available=0, batch=false,
halt=0x7fffdc009144) at /home/gordon/projects/proton/proton-c/src/dispatcher/dispatcher.c:135
#7  0x00007ffff795fbba in transport_consume (transport=transport@entry=0x7fffdc008fc0) at
/home/gordon/projects/proton/proton-c/src/transport/transport.c:1751
#8  0x00007ffff79630d2 in pn_transport_process (transport=transport@entry=0x7fffdc008fc0,
size=<optimized out>) at /home/gordon/projects/proton/proton-c/src/transport/transport.c:2860
#9  0x00007ffff7bb08e3 in qdpn_connector_process (c=0x7fffdc0068c0) at /home/gordon/projects/dispatch/src/posix/driver.c:761
#10 0x00007ffff7bc3a91 in process_connector (cxtr=0x7fffdc0068c0, qd_server=0x702b50) at /home/gordon/projects/dispatch/src/server.c:683
#11 thread_run (arg=0x87b9b0) at /home/gordon/projects/dispatch/src/server.c:958
#12 0x00007ffff772660a in start_thread () from /lib64/libpthread.so.0
#13 0x00007ffff6c8ba4d in clone () from /lib64/libc.so.6
{noformat}

other threads:

{noformat}
(gdb) thread 1
[Switching to thread 1 (Thread 0x7ffff7fd1180 (LWP 19319))]
#0  0x00007ffff772e89d in __lll_lock_wait () from /lib64/libpthread.so.0
(gdb) bt
#0  0x00007ffff772e89d in __lll_lock_wait () from /lib64/libpthread.so.0
#1  0x00007ffff77289cd in pthread_mutex_lock () from /lib64/libpthread.so.0
#2  0x00007ffff7bb1239 in sys_mutex_lock (mutex=0x702da0) at /home/gordon/projects/dispatch/src/posix/threading.c:70
#3  0x00007ffff7bc4723 in qd_timer (qd=qd@entry=0x604240, cb=cb@entry=0x7ffff7bc11b0 <heartbeat_cb>,
context=context@entry=0x702b50) at /home/gordon/projects/dispatch/src/timer.c:89
#4  0x00007ffff7bc3f33 in qd_server_run (qd=0x604240) at /home/gordon/projects/dispatch/src/server.c:1349
#5  0x0000000000401ac7 in main_process (config_path=config_path@entry=0x7fffffffe090 "./etc/qpid-dispatch/multiconnect.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:135
#6  0x00000000004017b7 in main (argc=3, argv=0x7fffffffdd08) at /home/gordon/projects/dispatch/router/src/main.c:335
(gdb) thread 2
[Switching to thread 2 (Thread 0x7fffea30f700 (LWP 19323))]
#0  0x00007ffff772bb10 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
(gdb) bt
#0  0x00007ffff772bb10 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ffff7bb133f in sys_cond_wait (cond=<optimized out>, held_mutex=0x8624a0)
at /home/gordon/projects/dispatch/src/posix/threading.c:107
#2  0x00007ffff7bbba1d in router_core_thread (arg=0x862180) at /home/gordon/projects/dispatch/src/router_core/router_core_thread.c:54
#3  0x00007ffff772660a in start_thread () from /lib64/libpthread.so.0
#4  0x00007ffff6c8ba4d in clone () from /lib64/libc.so.6
(gdb) thread 4
[Switching to thread 4 (Thread 0x7fffe8ef2700 (LWP 19325))]
#0  0x00007ffff7deaadf in _dl_fixup () from /lib64/ld-linux-x86-64.so.2
(gdb) bt
#0  0x00007ffff7deaadf in _dl_fixup () from /lib64/ld-linux-x86-64.so.2
#1  0x00007ffff7df1db0 in _dl_runtime_resolve () from /lib64/ld-linux-x86-64.so.2
#2  0x00007ffff795e8a1 in pn_transport_unbind (transport=0x7fffdc006180) at /home/gordon/projects/proton/proton-c/src/transport/transport.c:742
#3  0x00007ffff7bb0590 in qdpn_connector_free (ctor=ctor@entry=0x7fffdc006b30) at /home/gordon/projects/dispatch/src/posix/driver.c:671
#4  0x00007ffff7bc39d3 in thread_run (arg=0x864270) at /home/gordon/projects/dispatch/src/server.c:982
#5  0x00007ffff772660a in start_thread () from /lib64/libpthread.so.0
#6  0x00007ffff6c8ba4d in clone () from /lib64/libc.so.6
(gdb) thread 5
[Switching to thread 5 (Thread 0x7fffe3fff700 (LWP 19326))]
#0  0x00007ffff772e89d in __lll_lock_wait () from /lib64/libpthread.so.0
(gdb) bt
#0  0x00007ffff772e89d in __lll_lock_wait () from /lib64/libpthread.so.0
#1  0x00007ffff77289cd in pthread_mutex_lock () from /lib64/libpthread.so.0
#2  0x00007ffff7bb1239 in sys_mutex_lock (mutex=0x702da0) at /home/gordon/projects/dispatch/src/posix/threading.c:70
#3  0x00007ffff7bc331e in thread_run (arg=0x864240) at /home/gordon/projects/dispatch/src/server.c:874
#4  0x00007ffff772660a in start_thread () from /lib64/libpthread.so.0
#5  0x00007ffff6c8ba4d in clone () from /lib64/libc.so.6
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message