<p>latest opensips 2.1<br>
tcp_start_process() is called with startup_done set to NULL and then when init_child() failed, an initialization to -1 is attempted.</p>

<pre><code>(gdb) bt full
#0  tcp_start_processes (chd_rank=chd_rank@entry=0x84d7d0 &lt;chd_rank.10322&gt;, startup_done=startup_done@entry=0x0) at net/net_tcp.c:1723
        r = &lt;optimized out&gt;
        reader_fd = {15, 16}
        pid = &lt;optimized out&gt;
        si = &lt;optimized out&gt;
        load_p = 0x7fb12d4494a8
        __FUNCTION__ = "tcp_start_processes"
#1  0x0000000000419888 in main_loop () at main.c:728
        startup_done = 0x0
        chd_rank = 2
#2  main (argc=&lt;optimized out&gt;, argv=&lt;optimized out&gt;) at main.c:1259
        cfg_log_stderr = &lt;optimized out&gt;
        cfg_stream = &lt;optimized out&gt;
        c = &lt;optimized out&gt;
        r = 0
        tmp = 0x7ffceb4a687f ""
        tmp_len = &lt;optimized out&gt;
        port = &lt;optimized out&gt;
        proto = &lt;optimized out&gt;
        options = 0x5d0c08 "f:cCm:M:b:l:n:N:rRvdDFETSVhw:t:u:g:P:G:W:o:"
        seed = 3932613069
        rfd = &lt;optimized out&gt;
        __FUNCTION__ = "main"
(gdb) print startup_done
$1 = (int *) 0x0
</code></pre>

<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/683">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciWGvTJuMmsCkLzXex0cR_yzcPRl_ks5o-mfJgaJpZM4GUsdx.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/683"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>