Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash if initial db connection is failing #683

Closed
ovidiusas opened this issue Oct 23, 2015 · 1 comment
Closed

crash if initial db connection is failing #683

ovidiusas opened this issue Oct 23, 2015 · 1 comment

Comments

@ovidiusas
Copy link
Member

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@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
@ionutrazvanionita
Copy link
Contributor

fixed with c4ebfc8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants