<p>Hi Bogdan, I have reproduced the issue and uploaded the core file along with opensips bins,libs and other logs at the following location</p>

<p><a href="http://www81.zippyshare.com/v/LdXDN5r6/file.html">http://www81.zippyshare.com/v/LdXDN5r6/file.html</a></p>

<p>Call flow and timestamps :<br>
1) Tue Aug 11 11:36:54 --- created a TCP connection to send out SIP NOTIFY to 10.205.203.130<br>
2) Tue Aug 11 11:37:07 --- unplugged the network cable from the endpoint 10.205.203.130<br>
3) Tue Aug 11 11:39:38 --- tcp connection timed out (FYI tcp_connection_lifetime=120 in opensips.cfg)<br>
4) Tue Aug 11 11:41:08 --- Tried another call to the same end point while the network cable was unplugged. opensips created another TCP connection to send another SIP NOTIFY, netstat showed this connection in SYN_SENT state<br>
5) 2015-08-11T11:42:10.000 --- the above connection went away from net stat and opensips started printed "BUG - trying to del fd 34 with flags 2 1 ABORT" and it generated the uploaded core file</p>

<p>following is the backtrace<br>
#0  0x00007f217ed2a925 in raise () from /lib64/libc.so.6<br>
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.132.el6.x86_64 keyutils-libs-1.4-4.el6.x86_64 krb5-libs-1.10.3-33.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-30.el6.x86_64 zlib-1.2.3-29.el6.x86_64<br>
(gdb) bt<br>
#0  0x00007f217ed2a925 in raise () from /lib64/libc.so.6<br>
<a href="https://github.com/OpenSIPS/opensips/issues/1" class="issue-link" title="Dummy ticket">#1</a>  0x00007f217ed2c105 in abort () from /lib64/libc.so.6<br>
<a href="https://github.com/OpenSIPS/opensips/issues/2" class="issue-link" title="Dummy issue">#2</a>  0x00000000004aa981 in io_watch_del (fd=34, idx=, flags=0, sock_flags=1, h=0x7e6d00) at io_wait.h:608<br>
<a href="https://github.com/OpenSIPS/opensips/pull/3" class="issue-link" title="Compilation problem under CentOS 6">#3</a>  0x00000000004b049b in handle_tcpconn_ev (tcpconn=0x7f216b26eb00, fd_i=-1, event_type=) at tcp_main.c:1560<br>
<a href="https://github.com/OpenSIPS/opensips/pull/4" class="issue-link" title="Compilation problem under CentOS 6">#4</a>  0x00000000004b7eba in io_wait_loop_epoll () at io_wait.h:846<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:2138<br>
<a href="https://github.com/OpenSIPS/opensips/issues/6" class="issue-link" title="Wrong password column used for authentication">#6</a>  0x0000000000438058 in main_loop (argc=, argv=) at main.c:1053<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:1634</p>

<p>Thanks<br>
Rahul Gupta</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/591#issuecomment-129952925">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciTbcVemz8DtCcHSBcMRF44CTTiN1ks5omhgKgaJpZM4FnHG4.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/591#issuecomment-129952925"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>