<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 <chd_rank.10322>, startup_done=startup_done@entry=0x0) at net/net_tcp.c:1723
r = <optimized out>
reader_fd = {15, 16}
pid = <optimized out>
si = <optimized out>
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=<optimized out>, argv=<optimized out>) at main.c:1259
cfg_log_stderr = <optimized out>
cfg_stream = <optimized out>
c = <optimized out>
r = 0
tmp = 0x7ffceb4a687f ""
tmp_len = <optimized out>
port = <optimized out>
proto = <optimized out>
options = 0x5d0c08 "f:cCm:M:b:l:n:N:rRvdDFETSVhw:t:u:g:P:G:W:o:"
seed = 3932613069
rfd = <optimized out>
__FUNCTION__ = "main"
(gdb) print startup_done
$1 = (int *) 0x0
</code></pre>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<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>