[OpenSIPS-Devel] [opensips] crash if initial db connection is failing (#683)
Ovidiu Sas
notifications at github.com
Fri Oct 23 19:37:13 CEST 2015
latest opensips 2.1
tcp_start_process() is called with startup_done set to NULL and then when init_child() failed, an initialization to -1 is attempted.
```
(gdb) bt full
#0 tcp_start_processes (chd_rank=chd_rank at entry=0x84d7d0 <chd_rank.10322>, startup_done=startup_done at 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
```
---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/683
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20151023/d6657326/attachment-0001.htm>
More information about the Devel
mailing list