<p>Hi,<br>
we had this same kind of crash last night:</p>

<pre><code>kamailio[19419]: ERROR: <core> [io_wait.h:394]: io_watch_add(): trying to overwrite entry 564 watched for 1 in the hash(564, 2, 0x7fc348f5b960) with (564, 2, 0x7fc34aca4420)
kamailio[19419]: CRITICAL: <core> [tcp_main.c:4049]: handle_new_connect(): failed to add new socket to the fd list
kamailio[19419]: CRITICAL: <core> [pass_fd.c:293]: receive_fd(): EOF on 125
kamailio[19324]: ALERT: <core> [main.c:784]: handle_sigs(): child process 19417 exited by a signal 11
kamailio[19324]: ALERT: <core> [main.c:787]: handle_sigs(): core was generated
</code></pre>

<p>We have the backtrace:</p>

<pre><code>#0  0x0000000000566906 in local_timer_list_expire (l=0xa37f80 <tcp_reader_ltimer>, t=1559677467, h=0xa42138 <tcp_reader_ltimer+41400>) at local_timer.c:214
#1  0x0000000000566a60 in local_timer_expire (h=0xa37f80 <tcp_reader_ltimer>, t=1559677467) at local_timer.c:243
#2  0x0000000000566d0a in local_timer_run (lt=0xa37f80 <tcp_reader_ltimer>, saved_ticks=1559677469) at local_timer.c:266
#3  0x00000000005f94fe in tcp_reader_timer_run () at tcp_read.c:1713
#4  0x00000000005f986f in tcp_receive_loop (unix_sock=129) at tcp_read.c:1765
#5  0x00000000004e75d8 in tcp_init_children () at tcp_main.c:4880
#6  0x0000000000517828 in main_loop () at main.c:1714
#7  0x000000000051caec in main (argc=15, argv=0x7fff764de168) at main.c:2581
</code></pre>

<p>local_timer.c:214 corresponds to:</p>

<pre><code>    while(h->next!=(struct timer_ln*)h){
        tl=h->next;
=>      _timer_rm_list(tl); /* detach */
            tl->next=tl->prev=0; /* debugging */
                /*FIXME: process tcpconn */
</code></pre>

<p>We are running kamailio 4.2.4 (with backports of tcpops module and ursloc's close_expired_tcp new feature)</p>

<p>Any idea?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/158#issuecomment-113459306">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZSVtxou8mcr7BC4hJaH6u9IUlz57ks5oU-FPgaJpZM4EYvtq.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/kamailio/kamailio/issues/158#issuecomment-113459306"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>