<p>Thanks Vlad for debugging this issue on our server. The GDB information as requested </p>

<p>Loaded symbols for /lib64/libnss_files.so.2<br>
0x00007feb5b4232f7 in sched_yield () from /lib64/libc.so.6<br>
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.166.el6.x86_64 keyutils-libs-1.4-4.el6.x86_64 krb5-libs-1.10.3-42.el6.x86_64 libcom_err-1.41.12-18.el6.x86_64 libselinux-2.0.94-5.3.el6_4.1.x86_64 openssl-1.0.1e-42.el6.x86_64 zlib-1.2.3-29.el6.x86_64<br>
(gdb) bt<br>
#0  0x00007feb5b4232f7 in sched_yield () from /lib64/libc.so.6<br>
<a href="https://github.com/OpenSIPS/opensips/issues/1" class="issue-link" title="Dummy ticket">#1</a>  0x00000000004bd305 in get_lock (tcpconn=0x7feb478bbc28) at fastlock.h:182<br>
<a href="https://github.com/OpenSIPS/opensips/issues/2" class="issue-link" title="Dummy issue">#2</a>  tcpconn_destroy (tcpconn=0x7feb478bbc28) at tcp_main.c:1502<br>
<a href="https://github.com/OpenSIPS/opensips/pull/3" class="issue-link" title="Compilation problem under CentOS 6">#3</a>  0x00000000004bf93e in handle_tcp_child (tcp_c=0x7feb58fa72d4, fd_i=) at tcp_main.c:1779<br>
<a href="https://github.com/OpenSIPS/opensips/pull/4" class="issue-link" title="Compilation problem under CentOS 6">#4</a>  0x00000000004c1abc in io_wait_loop_epoll () at io_wait.h:845<br>
<a href="https://github.com/OpenSIPS/opensips/pull/5" class="issue-link" title="spec file update to CentOS 6">#5</a>  tcp_main_loop () at tcp_main.c:2152<br>
<a href="https://github.com/OpenSIPS/opensips/issues/6" class="issue-link" title="Wrong password column used for authentication">#6</a>  0x000000000043b038 in main_loop (argc=, argv=) at main.c:1040<br>
<a href="https://github.com/OpenSIPS/opensips/pull/7" class="issue-link" title="b2bua: Add AVP-based authentication">#7</a>  main (argc=, argv=) at main.c:1612<br>
(gdb) f 2<br>
<a href="https://github.com/OpenSIPS/opensips/issues/2" class="issue-link" title="Dummy issue">#2</a>  tcpconn_destroy (tcpconn=0x7feb478bbc28) at tcp_main.c:1502<br>
1502    tcp_main.c: No such file or directory.<br>
        in tcp_main.c<br>
(gdb) <br>
<a href="https://github.com/OpenSIPS/opensips/issues/2" class="issue-link" title="Dummy issue">#2</a>  tcpconn_destroy (tcpconn=0x7feb478bbc28) at tcp_main.c:1502<br>
1502    in tcp_main.c<br>
(gdb) <br>
<a href="https://github.com/OpenSIPS/opensips/issues/2" class="issue-link" title="Dummy issue">#2</a>  tcpconn_destroy (tcpconn=0x7feb478bbc28) at tcp_main.c:1502<br>
1502    in tcp_main.c<br>
(gdb) <br>
<a href="https://github.com/OpenSIPS/opensips/issues/2" class="issue-link" title="Dummy issue">#2</a>  tcpconn_destroy (tcpconn=0x7feb478bbc28) at tcp_main.c:1502<br>
1502    in tcp_main.c<br>
(gdb) ^Z<br>
[2]+  Stopped                 gdb /usr/sbin/opensips 10320<br>
[root@ffdray-mm630-195-10 zuser]# fg<br>
gdb /usr/sbin/opensips 10320<br>
(gdb) <br>
<a href="https://github.com/OpenSIPS/opensips/issues/2" class="issue-link" title="Dummy issue">#2</a>  tcpconn_destroy (tcpconn=0x7feb478bbc28) at tcp_main.c:1502<br>
1502    in tcp_main.c<br>
(gdb) <br>
<a href="https://github.com/OpenSIPS/opensips/issues/2" class="issue-link" title="Dummy issue">#2</a>  tcpconn_destroy (tcpconn=0x7feb478bbc28) at tcp_main.c:1502<br>
1502    in tcp_main.c<br>
(gdb) <br>
<a href="https://github.com/OpenSIPS/opensips/issues/2" class="issue-link" title="Dummy issue">#2</a>  tcpconn_destroy (tcpconn=0x7feb478bbc28) at tcp_main.c:1502<br>
1502    in tcp_main.c<br>
(gdb) f 1<br>
<a href="https://github.com/OpenSIPS/opensips/issues/1" class="issue-link" title="Dummy ticket">#1</a>  0x00000000004bd305 in get_lock (tcpconn=0x7feb478bbc28) at fastlock.h:182<br>
182     fastlock.h: No such file or directory.<br>
        in fastlock.h<br>
(gdb) p 2<br>
$1 = 2<br>
(gdb) fg 2</p>

<p>Loaded symbols for /lib64/libnss_files.so.2<br>
0x00007feb5b4232f7 in sched_yield () from /lib64/libc.so.6<br>
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.166.el6.x86_64 keyutils-libs-1.4-4.el6.x86_64 krb5-libs-1.10.3-42.el6.x86_64 libcom_err-1.41.12-18.el6.x86_64 libselinux-2.0.94-5.3.el6_4.1.x86_64 openssl-1.0.1e-42.el6.x86_64 zlib-1.2.3-29.el6.x86_64<br>
(gdb) f 2<br>
<a href="https://github.com/OpenSIPS/opensips/issues/2" class="issue-link" title="Dummy issue">#2</a>  tcpconn_destroy (tcpconn=0x7feb478bbc28) at tcp_main.c:1502<br>
1502    tcp_main.c: No such file or directory.<br>
        in tcp_main.c<br>
(gdb) p *tcpconn<br>
$1 = {s = 19, fd = -1, write_lock = 0, id = 13, rcv = {src_ip = {af = 2, len = 4, u = {addrl = {214158346, 0}, addr32 = {214158346, 0, 0, 0}, addr16 = {52234, 3267, 0, 0, 0, 0, 0, 0}, <br>
        addr = "\n\314\303\f", '\000' }}, dst_ip = {af = 2, len = 4, u = {addrl = {180603914, 0}, addr32 = {180603914, 0, 0, 0}, addr16 = {52234, 2755, 0, 0, 0, 0, 0, 0}, <br>
        addr = "\n\314\303\n", '\000' }}, src_port = 5060, dst_port = 5070, proto = 2, proto_reserved1 = 0, proto_reserved2 = 0, src_su = {s = {sa_family = 2, <br>
        sa_data = "\023\304\n\314\303\f\000\000\000\000\000\000\000"}, sin = {sin_family = 2, sin_port = 50195, sin_addr = {s_addr = 214158346}, sin_zero = "\000\000\000\000\000\000\000"}}, <br>
    bind_address = 0x7feb58f9a398}, refcnt = -11, type = PROTO_TCP, flags = 0, state = S_CONN_BAD, extra_data = 0x0, timeout = 0, lifetime = 0, id_hash = 13, id_next = 0x0, id_prev = 0x0, c_next = 0x0, <br>
  c_prev = 0x0, con_aliases = {{parent = 0x7feb478bbc28, next = 0x7feb478bbcd8, prev = 0x7feb478bbcd8, port = 5060, hash = 974}, {parent = 0x0, next = 0x0, prev = 0x0, port = 0, hash = 0}, {parent = 0x0, <br>
      next = 0x0, prev = 0x0, port = 0, hash = 0}, {parent = 0x0, next = 0x0, prev = 0x0, port = 0, hash = 0}}, aliases = 1, con_req = 0x0, msg_attempts = 0, async_chunks = 0x7feb478bbd98, <br>
  async_chunks_no = 0, oldest_chunk = 0}<br>
(gdb) ^Z</p>

<p>Loaded symbols for /lib64/libnss_files.so.2<br>
0x00007feb5b4232f7 in sched_yield () from /lib64/libc.so.6<br>
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.166.el6.x86_64 keyutils-libs-1.4-4.el6.x86_64 krb5-libs-1.10.3-42.el6.x86_64 libcom_err-1.41.12-18.el6.x86_64 libselinux-2.0.94-5.3.el6_4.1.x86_64 openssl-1.0.1e-42.el6.x86_64 zlib-1.2.3-29.el6.x86_64<br>
(gdb) bt<br>
#0  0x00007feb5b4232f7 in sched_yield () from /lib64/libc.so.6<br>
<a href="https://github.com/OpenSIPS/opensips/issues/1" class="issue-link" title="Dummy ticket">#1</a>  0x00000000004bbe3f in get_lock (send_sock=0x7feb58f9a398, type=2, buf=, len=, to=, id=) at fastlock.h:182<br>
<a href="https://github.com/OpenSIPS/opensips/issues/2" class="issue-link" title="Dummy issue">#2</a>  tcpconn_put (send_sock=0x7feb58f9a398, type=2, buf=, len=, to=, id=) at tcp_main.c:986<br>
<a href="https://github.com/OpenSIPS/opensips/pull/3" class="issue-link" title="Compilation problem under CentOS 6">#3</a>  tcp_send (send_sock=0x7feb58f9a398, type=2, buf=, len=, to=, id=) at tcp_main.c:1284<br>
<a href="https://github.com/OpenSIPS/opensips/pull/4" class="issue-link" title="Compilation problem under CentOS 6">#4</a>  0x0000000000430df9 in msg_send (send_sock=, proto=, to=0x7feb58fd12d8, id=, <br>
    buf=0x7feb58fd13b0 "SIP/2.0 200 OK\r\nTo: sip:testtoUser841@ipc.com;tag=906d8fc2\r\nVia: SIP/2.0/TCP 10.204.195.10:5069;branch=z9hG4bK+34727d29480074253143b3dd032b47a71+10.204.195.105069+1\r\nCSeq: 991486681 INFO\r\nContent-Le"..., len=366) at forward.h:115<br>
<a href="https://github.com/OpenSIPS/opensips/pull/5" class="issue-link" title="spec file update to CentOS 6">#5</a>  0x00000000004330ba in forward_reply (msg=0x7feb58fd0580) at forward.c:624<br>
<a href="https://github.com/OpenSIPS/opensips/issues/6" class="issue-link" title="Wrong password column used for authentication">#6</a>  0x000000000048102f in receive_msg (buf=, len=, rcv_info=) at receive.c:214<br>
<a href="https://github.com/OpenSIPS/opensips/pull/7" class="issue-link" title="b2bua: Add AVP-based authentication">#7</a>  0x00000000004c4540 in tcp_read_req (con=0x7feb478bbc28, bytes_read=0x7fffeda7370c) at tcp_read.c:697<br>
<a href="https://github.com/OpenSIPS/opensips/issues/8" class="issue-link" title="Flag to set string to lower for RURI/From/To/Contact">#8</a>  0x00000000004c5908 in handle_io (fm=, idx=-1, event_type=) at tcp_read.c:1033<br>
<a href="https://github.com/OpenSIPS/opensips/issues/9" class="issue-link" title="segfault on fm_malloc">#9</a>  0x00000000004c8083 in io_wait_loop_epoll (unix_sock=) at io_wait.h:845<br>
<a href="https://github.com/OpenSIPS/opensips/issues/10" class="issue-link" title="Set exchange and routing-key for event_rabbitmq module">#10</a> tcp_receive_loop (unix_sock=) at tcp_read.c:1141<br>
<a href="https://github.com/OpenSIPS/opensips/issues/11" class="issue-link" title="Set exchange and routing-key for the event_rabbitmq module">#11</a> 0x00000000004b12e9 in tcp_init_children (chd_rank=, startup_done=0x0) at tcp_main.c:2389<br>
<a href="https://github.com/OpenSIPS/opensips/pull/12" class="issue-link" title="Install Notes">#12</a> 0x000000000043aebf in main_loop (argc=, argv=) at main.c:1011<br>
<a href="https://github.com/OpenSIPS/opensips/pull/13" class="issue-link" title="1.8">#13</a> main (argc=, argv=) at main.c:1612<br>
(gdb) f 3<br>
<a href="https://github.com/OpenSIPS/opensips/pull/3" class="issue-link" title="Compilation problem under CentOS 6">#3</a>  tcp_send (send_sock=0x7feb58f9a398, type=2, buf=, len=, to=, id=) at tcp_main.c:1284<br>
1284    tcp_main.c: No such file or directory.<br>
        in tcp_main.c<br>
(gdb) f 2<br>
<a href="https://github.com/OpenSIPS/opensips/issues/2" class="issue-link" title="Dummy issue">#2</a>  tcpconn_put (send_sock=0x7feb58f9a398, type=2, buf=, len=, to=, id=) at tcp_main.c:986<br>
986     in tcp_main.c<br>
(gdb) p tcpconn<br>
No symbol "tcpconn" in current context.<br>
(gdb) p con<br>
No symbol "con" in current context.<br>
(gdb) p conn<br>
$1 = (aaa_conn *) 0x0<br>
(gdb) f 2<br>
<a href="https://github.com/OpenSIPS/opensips/issues/2" class="issue-link" title="Dummy issue">#2</a>  tcpconn_put (send_sock=0x7feb58f9a398, type=2, buf=, len=, to=, id=) at tcp_main.c:986<br>
986     in tcp_main.c<br>
(gdb) p c<br>
$2 = (struct tcp_connection *) 0x7feb478bc138<br>
(gdb) p *c<br>
$3 = {s = 33, fd = 17, write_lock = 0, id = 11, rcv = {src_ip = {af = 2, len = 4, u = {addrl = {180603914, 0}, addr32 = {180603914, 0, 0, 0}, addr16 = {52234, 2755, 0, 0, 0, 0, 0, 0}, <br>
        addr = "\n\314\303\n", '\000' }}, dst_ip = {af = 2, len = 4, u = {addrl = {180603914, 0}, addr32 = {180603914, 0, 0, 0}, addr16 = {52234, 2755, 0, 0, 0, 0, 0, 0}, <br>
        addr = "\n\314\303\n", '\000' }}, src_port = 50746, dst_port = 5070, proto = 2, proto_reserved1 = 11, proto_reserved2 = 0, src_su = {s = {sa_family = 2, <br>
        sa_data = "\306:\n\314\303\n\000\000\000\000\000\000\000"}, sin = {sin_family = 2, sin_port = 15046, sin_addr = {s_addr = 180603914}, sin_zero = "\000\000\000\000\000\000\000"}}, <br>
    bind_address = 0x7feb58f9a398}, refcnt = 2, type = PROTO_TCP, flags = 2, state = S_CONN_ACCEPT, extra_data = 0x0, timeout = 5839, lifetime = 0, id_hash = 11, id_next = 0x0, id_prev = 0x0, c_next = 0x0, <br>
  c_prev = 0x0, con_aliases = {{parent = 0x7feb478bc138, next = 0x0, prev = 0x0, port = 50746, hash = 560}, {parent = 0x0, next = 0x0, prev = 0x0, port = 0, hash = 0}, {parent = 0x0, next = 0x0, prev = 0x0, <br>
      port = 0, hash = 0}, {parent = 0x0, next = 0x0, prev = 0x0, port = 0, hash = 0}}, aliases = 1, con_req = 0x7feb58fe7b40, msg_attempts = 0, async_chunks = 0x7feb478bc2a8, async_chunks_no = 0, <br>
  oldest_chunk = 0}<br>
(gdb) f 7<br>
<a href="https://github.com/OpenSIPS/opensips/pull/7" class="issue-link" title="b2bua: Add AVP-based authentication">#7</a>  0x00000000004c4540 in tcp_read_req (con=0x7feb478bbc28, bytes_read=0x7fffeda7370c) at tcp_read.c:697<br>
697     tcp_read.c: No such file or directory.<br>
        in tcp_read.c<br>
(gdb) p size<br>
$4 = 36452<br>
(gdb) f 7<br>
<a href="https://github.com/OpenSIPS/opensips/pull/7" class="issue-link" title="b2bua: Add AVP-based authentication">#7</a>  0x00000000004c4540 in tcp_read_req (con=0x7feb478bbc28, bytes_read=0x7fffeda7370c) at tcp_read.c:697<br>
697     in tcp_read.c<br>
(gdb) p con<br>
$5 = (struct tcp_connection *) 0x7feb478bbc28<br>
(gdb) ^Z<br>
[3]+  Stopped                 gdb /usr/sbin/opensips 10314<br>
[root@ffdray-mm630-195-10 zuser]# jobs<br>
[1]   Stopped                 top<br>
[2]-  Stopped                 gdb /usr/sbin/opensips 10320<br>
[3]+  Stopped                 gdb /usr/sbin/opensips 10314<br>
[root@ffdray-mm630-195-10 zuser]# fg 2<br>
gdb /usr/sbin/opensips 10320<br>
(gdb) bt<br>
#0  0x00007feb5b4232f7 in sched_yield () from /lib64/libc.so.6<br>
<a href="https://github.com/OpenSIPS/opensips/issues/1" class="issue-link" title="Dummy ticket">#1</a>  0x00000000004bd305 in get_lock (tcpconn=0x7feb478bbc28) at fastlock.h:182<br>
<a href="https://github.com/OpenSIPS/opensips/issues/2" class="issue-link" title="Dummy issue">#2</a>  tcpconn_destroy (tcpconn=0x7feb478bbc28) at tcp_main.c:1502<br>
<a href="https://github.com/OpenSIPS/opensips/pull/3" class="issue-link" title="Compilation problem under CentOS 6">#3</a>  0x00000000004bf93e in handle_tcp_child (tcp_c=0x7feb58fa72d4, fd_i=) at tcp_main.c:1779<br>
<a href="https://github.com/OpenSIPS/opensips/pull/4" class="issue-link" title="Compilation problem under CentOS 6">#4</a>  0x00000000004c1abc in io_wait_loop_epoll () at io_wait.h:845<br>
<a href="https://github.com/OpenSIPS/opensips/pull/5" class="issue-link" title="spec file update to CentOS 6">#5</a>  tcp_main_loop () at tcp_main.c:2152<br>
<a href="https://github.com/OpenSIPS/opensips/issues/6" class="issue-link" title="Wrong password column used for authentication">#6</a>  0x000000000043b038 in main_loop (argc=, argv=) at main.c:1040<br>
<a href="https://github.com/OpenSIPS/opensips/pull/7" class="issue-link" title="b2bua: Add AVP-based authentication">#7</a>  main (argc=, argv=) at main.c:1612<br>
(gdb) q<br>
A debugging session is active.</p>

<pre><code>    Inferior 1 [process 10320] will be detached.
</code></pre>

<p>Thanks</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/630">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciSK9AY4GdpBrdu1LRx-kNu2szfGbks5ouuhegaJpZM4F4be3.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/OpenSIPS/opensips/issues/630"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>