[OpenSIPS-Users] segfault in opensips30

johan de clercq johan at democon.be
Wed Jun 19 11:45:39 EDT 2019


Sorry, I overlooked that.  Anyway here is the output, please let me know if this is sufficient. 

 

[Thread debugging using libthread_db enabled]

Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Core was generated by `./opensips -f /data/opensips/etc/opensips/opensips.cfg -w /tmp'.

Program terminated with signal SIGSEGV, Segmentation fault.

#0  _remove (msg=<optimized out>, udomain=0x7f70323e5fb0, aor_uri=<optimized out>, match_ct=<optimized out>, match_next_hop=0x0, 

    match_sin=<optimized out>) at save.c:1006

1006            if (match_next_hop->s)

(gdb) bt full

#0  _remove (msg=<optimized out>, udomain=0x7f70323e5fb0, aor_uri=<optimized out>, match_ct=<optimized out>, match_next_hop=0x0, 

    match_sin=<optimized out>) at save.c:1006

        delete_nh_he = {h_name = 0x7f7033fc78c0 "\001", h_aliases = 0x7ffdede87800, h_addrtype = 0, h_length = 0, 

          h_addr_list = 0x55cc89463f54 <eval_expr+470>}

        he = <optimized out>

        record = 0x0

        contact = <optimized out>

        it = <optimized out>

        aor_user = {s = 0x7f702e8da280 <aor_buf> "32478720105", len = 11}

        ret = 1

        delete_port = 0

        __FUNCTION__ = "_remove"

#1  0x000055cc894b326a in do_action (a=a at entry=0x7f7033f092d8, msg=msg at entry=0x7f7033fc78c0) at action.c:1979

        increment = <optimized out>

        decrement = <optimized out>

        j = <optimized out>

        num_rows = -1965494148

        val_s = {s = 0x7ffdede87dc0 "", len = -1989512731}

        cdb_reply = 0x7ffdede87a00

        num_cols = <optimized out>

        aux = {s = 0x7ffdede87dc0 "", len = -1989512731}

        i = <optimized out>

        it = <optimized out>

---Type <return> to continue, or q <return> to quit--- 

        avp_val = <optimized out>

        avp_name = {n = -303530560, s = {s = 0x7ffdede87dc0 "", len = -1989512731}}

        avp_type = 24496

        ret = 0

        v = <optimized out>

        sec = <optimized out>

        usec = <optimized out>

        to = <optimized out>

        p = <optimized out>

        tmp = <optimized out>

        new_uri = <optimized out>

        end = <optimized out>

        crt = <optimized out>

        len = <optimized out>

        i = <optimized out>

        user = 0

        expires = 0

        vals = {{s = 0x55cc8ad8f07c "", len = 8180}, {s = 0x6 <error: Cannot access memory at address 0x6>, len = 889497490}, {

            s = 0x7ffdede87c20 "\300\352\341\212\314U", len = -303531552}, {s = 0x7f703527dce0 "-\250\004\065p\177", len = -303531105}, {

            s = 0x55cc8ad8f0a0 "UTC", len = -303531520}}

        result = {s = 0x7ffdede87f00 "\200", len = -303530432}

        uri = {user = {s = 0x0, len = 0}, passwd = {s = 0xfbad8001 <error: Cannot access memory at address 0xfbad8001>, len = -1965494148}, 

          host = {s = 0x55cc8ad80000 <error: Cannot access memory at address 0x55cc8ad80000>, len = 0}, port = {s = 0x55cc8ad8f07b "0", 

---Type <return> to continue, or q <return> to quit---

            len = -1965494149}, params = {s = 0xffffffffffffffff <error: Cannot access memory at address 0xffffffffffffffff>, len = 0}, 

          headers = {s = 0x55cc8ad8f07c "", len = 0}, port_no = 65535, proto = 65535, type = ERROR_URI_T, transport = {

            s = 0x7f7034f9723e "L\211\361L\213\\$\020\351\376\360\377\377\017\037D", len = 0}, ttl = {

            s = 0x1ff4 <error: Cannot access memory at address 0x1ff4>, len = 6}, user_param = {

            s = 0x3ede87cff <error: Cannot access memory at address 0x3ede87cff>, len = -303530592}, maddr = {

            s = 0x7ffdede87b60 "\030|\350\355\375\177", len = 891804896}, method = {s = 0x7ffdede87d1f "", len = -1965494112}, lr = {

            s = 0x7ffdede87b80 "8|\350\355\375\177", len = -303530992}, r2 = {

            s = 0x3000000010 <error: Cannot access memory at address 0x3000000010>, len = -303530976}, gr = {

            s = 0x7ffdede87b60 "\030|\350\355\375\177", len = -303530984}, transport_val = {

            s = 0x1ff4 <error: Cannot access memory at address 0x1ff4>, len = -303530954}, ttl_val = {s = 0x7ffdede87c3c "", 

            len = -303530952}, user_param_val = {s = 0x7ffdede87c3c "", len = 891804896}, maddr_val = {s = 0x7ffdede87d8f "", 

            len = -1965494112}, method_val = {s = 0x7ffdede87bf0 "", len = -1964913972}, lr_val = {

            s = 0x3000000010 <error: Cannot access memory at address 0x3000000010>, len = -303530864}, r2_val = {

            s = 0x55cc8ae1cacc "15:39:47 ./opensips[520]: DBG:core:restore_segv_handler: successfully restored system SIGSEGV handler\n", 

            len = -1964913972}, gr_val = {s = 0x7f703504a792 "T ", len = 891811872}, u_name = {{

              s = 0x8 <error: Cannot access memory at address 0x8>, len = 0}, {

              s = 0x7f7034f95ede "Ic\307L\213\\$`D\213|$\020H\001\303M\001\363E\205\377\017\204V\023", len = 16}, {

              s = 0x1ffb <error: Cannot access memory at address 0x1ffb>, len = 0}, {s = 0x55cc8ae1cab0 "", len = -1964905792}, {

              s = 0x7f7035280b00 "", len = 0}, {s = 0x60 <error: Cannot access memory at address 0x60>, len = 77}, {

              s = 0x7f7034f61114 "\351%\376\377\377\017\037\200", len = 889489931}, {

              s = 0x3000000018 <error: Cannot access memory at address 0x3000000018>, len = -303530704}, {s = 0x55cc8ae1cac0 "", 

              len = -1964914000}, {s = 0x7f703527d080 "", len = 891816704}}, u_val = {{

              s = 0x2010 <error: Cannot access memory at address 0x2010>, len = 77}, {s = 0x7f7034f62719 <realloc+345> "I\211ă=\335/2", 

---Type <return> to continue, or q <return> to quit---

              len = -1}, {s = 0x5d0a5743 <error: Cannot access memory at address 0x5d0a5743>, len = 1}, {s = 0x55cc8adbd930 "X\v(5p\177", 

              len = -303530672}, {s = 0x7f703527d080 "", len = -1965303504}, {s = 0x55cc8adbd930 "X\v(5p\177", len = 0}, {

              s = 0x7f703527d080 "", len = -1965303504}, {s = 0x1 <error: Cannot access memory at address 0x1>, len = -1}, {

              s = 0xb <error: Cannot access memory at address 0xb>, len = -1965303504}, {s = 0x7ffdede87e28 "0", len = 21}}, 

          u_params_no = 44889}

        next_hop = {user = {s = 0x7ffdede87dc0 "", len = -1989512731}, passwd = {s = 0x55cc8adbd930 "X\v(5p\177", len = 1560958787}, 

          host = {s = 0x55cc8ae1cac0 "", len = 76}, port = {s = 0x55cc8adbd930 "X\v(5p\177", len = 1}, params = {

            s = 0xffffffff <error: Cannot access memory at address 0xffffffff>, len = 11}, headers = {s = 0x55cc8adbd930 "X\v(5p\177", 

            len = -303530344}, port_no = 21, proto = 0, type = ERROR_URI_T, transport = {s = 0x7f7034fcaf59 <__vsyslog_chk+681> "H\201ĸ", 

            len = 47}, ttl = {s = 0x130000000f <error: Cannot access memory at address 0x130000000f>, len = 5}, user_param = {

            s = 0xa900000003 <error: Cannot access memory at address 0xa900000003>, len = 0}, maddr = {s = 0x0, len = -1965494112}, 

          method = {s = 0xffffff7f <error: Cannot access memory at address 0xffffff7f>, len = 872184000}, lr = {s = 0x0, len = 20}, r2 = {

            s = 0x7f7033f07d88 "tls", len = 3}, gr = {s = 0x0, len = 1}, transport_val = {

            s = 0x7f7034fcb28f <syslog+143> "H\201\304", <incomplete sequence \330>, len = 5}, ttl_val = {

            s = 0x3000000030 <error: Cannot access memory at address 0x3000000030>, len = -303530240}, user_param_val = {

            s = 0x7ffdede87e40 "\340ə\211\314U", len = -1986410016}, maddr_val = {s = 0x7ffdede87e78 "\300x\374\063p\177", 

            len = -1989513168}, method_val = {s = 0x14 <error: Cannot access memory at address 0x14>, len = 3}, lr_val = {

            s = 0x7f7033f08540 "\020", len = 2}, r2_val = {s = 0x7f7033fc78c0 "\001", len = -1986410016}, gr_val = {

            s = 0x7ffdede87eb8 "\255DF\211\314U", len = 0}, u_name = {{

              s = 0x55cc894bae9a <run_action_list+83> "\211Ņ\300u\a\203\r\221\232I", len = 871396736}, {

              s = 0x55cc8945d9c0 <comp_s2s+2774> "\205\300A\017\224\302A\017\266\302\351\245\365\377\377L\213%\342\061N", len = 0}, {

              s = 0x55cc894644ad <eval_elem+1075> "\351*\375\377\377D\213\244$\220", len = 810412464}, {s = 0x0, len = 2}, {

              s = 0x7f7033fc78c0 "\001", len = 871401064}, {s = 0x0, len = 0}, {

---Type <return> to continue, or q <return> to quit---

              s = 0x55cc894644ad <eval_elem+1075> "\351*\375\377\377D\213\244$\220", len = 128}, {

              s = 0x400 <error: Cannot access memory at address 0x400>, len = 48}, {

              s = 0xffffffffffffffff <error: Cannot access memory at address 0xffffffffffffffff>, len = 0}, {s = 0x7f7033fc78c0 "\001", 

              len = 812571664}}, u_val = {{s = 0x2a1c <error: Cannot access memory at address 0x2a1c>, len = 46}, {

              s = 0x7f70323c6170 "\005", len = -1989467371}, {s = 0x3 <error: Cannot access memory at address 0x3>, len = 871398792}, {

              s = 0x3 <error: Cannot access memory at address 0x3>, len = -303528704}, {

              s = 0x55cc896dd9d0 "DBG:core:%s: end of header reached, state=%d\n", len = -1989467371}, {

              s = 0x3 <error: Cannot access memory at address 0x3>, len = 1}, {s = 0x2 <error: Cannot access memory at address 0x2>, 

              len = 872184000}, {s = 0x0, len = 0}, {s = 0x55cc89463f64 <eval_expr+486> "\213\035&}N", len = -303530016}, {

              s = 0x2 <error: Cannot access memory at address 0x2>, len = 871401064}}, u_params_no = 2}

        u = <optimized out>

        port = 0

        cmatch = <optimized out>

        aitem = <optimized out>

        adefault = <optimized out>

        spec = <optimized out>

        model = <optimized out>

        val = {rs = {s = 0xede87d38 <error: Cannot access memory at address 0xede87d38>, len = -303530832}, ri = -303562752, flags = 14132}

        pve = <optimized out>

        name_s = {s = 0x7f70304ddeff "%s: no transaction found\n", len = 1}

        start = {tv_sec = 0, tv_usec = 140119823474456}

        aux_counter = 48

        cmd = 0x7f702e8d9810 <cmds+240>

---Type <return> to continue, or q <return> to quit---

        acmd = <optimized out>

        cmdp = {0x7f70323e5fb0, 0x7ffdede879f0, 0x0, 0x0, 0x0, 0x55cc8ad8f07b, 0x55ccffffffff, 0x7f7034f9723e}

        tmp_vals = {{rs = {s = 0x7ffdede87a00 "(~\350\355\375\177", len = -1965494149}, ri = -303531224, flags = 32765}, {rs = {

              s = 0x55cc8ad8f07b "0", len = -303531488}, ri = -1965494149, flags = 21964}, {rs = {

              s = 0x7f7033f7c938 "sip:32478720105 at 10.200.0.153:5060;transport=UDP", len = 47}, ri = -303530456, flags = 32765}, {rs = {

              s = 0x7f7033f08948 "sip", len = 3}, ri = 888474535, flags = 32624}, {rs = {

              s = 0x55ccfbad8001 <error: Cannot access memory at address 0x55ccfbad8001>, len = -1965494148}, ri = -1965494148, 

            flags = 21964}, {rs = {s = 0x55cc8ad8f07b "0", len = -1965494149}, ri = -1965494149, flags = 21964}, {rs = {

              s = 0x55cc8ad8f07b "0", len = -1965494149}, ri = -1965494148, flags = 21964}, {rs = {s = 0x0, len = 0}, ri = 0, flags = 0}}

        __FUNCTION__ = "do_action"

#2  0x000055cc894bae9a in run_action_list (a=<optimized out>, msg=msg at entry=0x7f7033fc78c0) at action.c:176

        ret = -1

        t = 0x7f7033f092d8

#3  0x000055cc894b767e in do_action (a=a at entry=0x7f7033f0a830, msg=msg at entry=0x7f7033fc78c0) at action.c:1225

        increment = <optimized out>

        decrement = <optimized out>

        j = <optimized out>

        num_rows = -303527896

        val_s = {s = 0x0, len = 96}

        cdb_reply = 0x7ffdede882b0

        num_cols = <optimized out>

        aux = {s = 0x0, len = 96}

        i = <optimized out>

---Type <return> to continue, or q <return> to quit---

        it = <optimized out>

        avp_val = <optimized out>

        avp_name = {n = 0, s = {s = 0x0, len = 96}}

        avp_type = 3

        ret = 1

        v = 1

        sec = <optimized out>

        usec = <optimized out>

        to = <optimized out>

        p = <optimized out>

        tmp = <optimized out>

        new_uri = <optimized out>

        end = <optimized out>

        crt = <optimized out>

        len = <optimized out>

        i = <optimized out>

        user = 0

        expires = 0

        vals = {{s = 0x7ffdede88828 "\300x\374\063p\177", len = 0}, {s = 0x55cc896b0a83 ": preparing to run routing scripts...\n", 

            len = 888333497}, {s = 0x7ffdede88200 "", len = -1965494149}, {s = 0x7ffdede88328 "{\360؊\314U", len = -1965494149}, {

            s = 0x7ffdede88288 "\251\nk\211\314U", len = 16}}

        result = {s = 0x7ffdede881a8 "", len = 10}

        uri = {user = {s = 0x0, len = 0}, passwd = {s = 0xffffffff <error: Cannot access memory at address 0xffffffff>, len = 16}, host = {

---Type <return> to continue, or q <return> to quit---

            s = 0x7ffdede88900 "", len = -303527872}, port = {s = 0x6 <error: Cannot access memory at address 0x6>, len = 0}, params = {

            s = 0x7ffdede88580 "8\206\350\355\375\177", len = -303529152}, headers = {s = 0x7f703527dce0 "-\250\004\065p\177", 

            len = -303528705}, port_no = 33616, proto = 60904, type = 32765, transport = {s = 0x55cc8ad8f07b "0", len = -303528840}, ttl = {

            s = 0x55cc8ad8f07b "0", len = -303528104}, user_param = {s = 0x7ffdede886d0 "\360\231ۊ\314U", len = 889495526}, maddr = {

            s = 0x7f7034f50ba7 <vsscanf+103> "H\201\304", <incomplete sequence \370>, len = -72515583}, method = {s = 0x55cc8ad8f07c "", 

            len = -1965494148}, lr = {s = 0x55cc8ad8f07b "0", len = -1965494149}, r2 = {s = 0x55cc8ad8f07b "0", len = -1965494149}, gr = {

            s = 0x55cc8ad8f07b "0", len = -1965494148}, transport_val = {s = 0x0, len = 0}, ttl_val = {s = 0x0, len = 0}, user_param_val = {

            s = 0x0, len = 891811872}, maddr_val = {s = 0x8 <error: Cannot access memory at address 0x8>, len = 0}, method_val = {s = 0x0, 

            len = -303528928}, lr_val = {s = 0x55cc8ad8f07b "0", len = -303528632}, r2_val = {s = 0x55cc8ad8f07b "0", len = -303527896}, 

          gr_val = {s = 0x7ffdede887a0 "/", len = 889495526}, u_name = {{

              s = 0x7f7034f50ba7 <vsscanf+103> "H\201\304", <incomplete sequence \370>, len = -72515583}, {s = 0x55cc8ad8f07c "", 

              len = -1965494148}, {s = 0x55cc8ad8f07b "0", len = -1965494149}, {s = 0x55cc8ad8f07b "0", len = -1965494149}, {

              s = 0x55cc8ad8f07b "0", len = -1965494148}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 1}, {

              s = 0x55cc8adb99f0 "\002", len = -303562752}, {s = 0x0, len = -303528600}}, u_val = {{s = 0x7ffdede8856c "", len = -1}, {

              s = 0x0, len = -1965319696}, {s = 0x1 <error: Cannot access memory at address 0x1>, len = -1}, {

              s = 0x7f7034f9723e "L\211\361L\213\\$\020\351\376\360\377\377\017\037D", len = -1965319696}, {

              s = 0x1ff4 <error: Cannot access memory at address 0x1ff4>, len = 6}, {

              s = 0x33504a792 <error: Cannot access memory at address 0x33504a792>, len = -303528032}, {s = 0x7ffdede88560 "", 

              len = 891804896}, {s = 0x7ffdede8871f "", len = -1965494112}, {s = 0x7ffdede88580 "8\206\350\355\375\177", len = 0}, {

              s = 0x3000000010 <error: Cannot access memory at address 0x3000000010>, len = -303528416}}, u_params_no = 34144}

        next_hop = {user = {s = 0x0, len = 96}, passwd = {s = 0x3734ede88636 <error: Cannot access memory at address 0x3734ede88636>, 

            len = -303528388}, host = {s = 0x7ffdede88638 "p", len = -303528388}, port = {s = 0x7ffdede88660 "0\207\350\355\375\177", 

            len = -1964920176}, params = {s = 0x55cc8ae1b280 "509]: DB\021\b", len = 891801728}, headers = {s = 0x7f7035280b00 "", 

---Type <return> to continue, or q <return> to quit---

            len = 8208}, port_no = 85, proto = 0, type = ERROR_URI_T, transport = {s = 0x55cc8ae1b29c "", len = -1964920164}, ttl = {

            s = 0x7f703504a792 "T ", len = 891811872}, user_param = {s = 0x8 <error: Cannot access memory at address 0x8>, len = 0}, 

          maddr = {s = 0x7f7034f95ede "Ic\307L\213\\$`D\213|$\020H\001\303M\001\363E\205\377\017\204V\023", len = 16}, method = {

            s = 0x1ffb <error: Cannot access memory at address 0x1ffb>, len = 0}, lr = {s = 0x55cc8ae1b280 "509]: DB\021\b", 

            len = -1964911984}, r2 = {s = 0x7f7035280b00 "", len = 0}, gr = {s = 0x70 <error: Cannot access memory at address 0x70>, 

            len = 97}, transport_val = {s = 0x7f7034f61114 "\351%\376\377\377\017\037\200", len = 889489931}, ttl_val = {

            s = 0x3000000018 <error: Cannot access memory at address 0x3000000018>, len = -303528144}, user_param_val = {

            s = 0x55cc8ae1b290 "", len = -1964920192}, maddr_val = {s = 0x7f703527d080 "", len = 891816704}, method_val = {

            s = 0x2010 <error: Cannot access memory at address 0x2010>, len = 97}, lr_val = {

            s = 0x7f7034f62719 <realloc+345> "I\211ă=\335/2", len = -1}, r2_val = {

            s = 0x5d0a5743 <error: Cannot access memory at address 0x5d0a5743>, len = 1}, gr_val = {s = 0x55cc8adb99f0 "\002", 

            len = -303528112}, u_name = {{s = 0x7f703527d080 "", len = -1965319696}, {s = 0x55cc8adb99f0 "\002", len = 0}, {

              s = 0x7f703527d080 "", len = -1965319696}, {s = 0x1 <error: Cannot access memory at address 0x1>, len = -1}, {

              s = 0xb <error: Cannot access memory at address 0xb>, len = -1965319696}, {s = 0x7ffdede88828 "\300x\374\063p\177", 

              len = 21}, {s = 0x7f7034fcaf59 <__vsyslog_chk+681> "H\201ĸ", len = -1989332788}, {

              s = 0x55cc896b0a78 "DBG:core:%s: preparing to run routing scripts...\n", len = 872184000}, {

              s = 0x5d0a5743 <error: Cannot access memory at address 0x5d0a5743>, len = -1964920176}, {

              s = 0x60 <error: Cannot access memory at address 0x60>, len = -303527888}}, u_val = {{s = 0x7ffdede88770 "", len = 0}, {

              s = 0x55cc8997c37b <buf+603> "", len = -1989293616}, {s = 0x0, len = 842817904}, {s = 0x0, len = 47}, {

              s = 0x130000000f <error: Cannot access memory at address 0x130000000f>, len = 5}, {

              s = 0xa900000003 <error: Cannot access memory at address 0xa900000003>, len = 0}, {s = 0x0, len = -1965494112}, {

              s = 0x7ffdede887e0 "", len = 0}, {s = 0x7f7033fc78c0 "\001", len = -1986543328}, {s = 0x0, len = -303527456}}, 

          u_params_no = 0}

---Type <return> to continue, or q <return> to quit---

        u = <optimized out>

        port = 0

        cmatch = <optimized out>

        aitem = <optimized out>

        adefault = <optimized out>

        spec = <optimized out>

        model = <optimized out>

        val = {rs = {s = 0x7ffd00000000 <error: Cannot access memory at address 0x7ffd00000000>, len = 0}, ri = 0, flags = 21964}

        pve = <optimized out>

        name_s = {s = 0x7ffdede88605 "520\373\037", len = 100}

        start = {tv_sec = 0, tv_usec = 0}

        aux_counter = 0

        cmd = 0x0

        acmd = <optimized out>

        cmdp = {0x55cc00000003, 0x7f7034f5bc2e <_IO_default_xsputn+206>, 0x7ffdede88220, 0x26, 0xd68, 0x55cc8adb99f0, 0x7ffdede88720, 

          0x55cc896b0a78}

        tmp_vals = {{rs = {s = 0x7ffdede882b0 "", len = -303528336}, ri = 0, flags = 0}, {rs = {

              s = 0x7ffd00000000 <error: Cannot access memory at address 0x7ffd00000000>, len = 0}, ri = -1, flags = -1}, {rs = {

              s = 0x55cc00000000 <error: Cannot access memory at address 0x55cc00000000>, len = 9}, ri = -1989473224, flags = 21964}, {

            rs = {s = 0x55cc00000000 <error: Cannot access memory at address 0x55cc00000000>, len = 0}, ri = 11, flags = 0}, {rs = {

              s = 0x7ffdede88300 "\340\334'5p\177", len = 0}, ri = 3432, flags = 0}, {rs = {

              s = 0x14 <error: Cannot access memory at address 0x14>, len = -1989473663}, ri = 1, flags = 11}, {rs = {s = 0x0, 

              len = -1989473623}, ri = 0, flags = 0}, {rs = {s = 0x0, len = -1}, ri = 0, flags = 0}}

---Type <return> to continue, or q <return> to quit---

        __FUNCTION__ = "do_action"

#4  0x000055cc894bae9a in run_action_list (a=a at entry=0x7f7033eff238, msg=msg at entry=0x7f7033fc78c0) at action.c:176

        ret = -1

        t = 0x7f7033f0a830

#5  0x000055cc894bb3ba in run_actions (msg=0x7f7033fc78c0, a=0x7f7033eff238) at action.c:141

        ret = <optimized out>

        msg = 0x7f7033fc78c0

        a = 0x7f7033eff238

        ret = <optimized out>

#6  run_top_route (a=0x7f7033eff238, msg=msg at entry=0x7f7033fc78c0) at action.c:218

        bk_action_flags = 0

        bk_rec_lev = 0

        ret = <optimized out>

        ctx = 0x0

        __FUNCTION__ = "run_top_route"

#7  0x000055cc894c4f2d in receive_msg (

    buf=0x55cc8997c120 <buf> "REGISTER sip:10.200.0.153:5060;transport=UDP SIP/2.0\r\nVia: SIP/2.0/UDP 10.204.0.29:37114;branch=z9hG4bK-524287-1---42810a0f5b9ff5d9;rport\r\nMax-Forwards: 69\r\nContact: <sip:32478720105 at 10.204.0.29:37114"..., len=<optimized out>, 

    rcv_info=rcv_info at entry=0x7ffdede889e0, existing_context=existing_context at entry=0x0, flags=flags at entry=0) at receive.c:209

        ctx = 0x7f7033fc71c0

        msg = 0x7f7033fc78c0

        start = {tv_sec = 0, tv_usec = 0}

        rc = 3

---Type <return> to continue, or q <return> to quit---

        in_buff = {

          s = 0x55cc8997c120 <buf> "REGISTER sip:10.200.0.153:5060;transport=UDP SIP/2.0\r\nVia: SIP/2.0/UDP 10.204.0.29:37114;branch=z9hG4bK-524287-1---42810a0f5b9ff5d9;rport\r\nMax-Forwards: 69\r\nContact: <sip:32478720105 at 10.204.0.29:37114"..., len = 603}

        __FUNCTION__ = "receive_msg"

#8  0x000055cc89682a71 in udp_read_req (si=<optimized out>, bytes_read=<optimized out>) at net/proto_udp/proto_udp.c:183

        ri = {src_ip = {af = 2, len = 4, u = {addrl = {486591498, 0}, addr32 = {486591498, 0, 0, 0}, addr16 = {52234, 7424, 0, 0, 0, 0, 0, 

                0}, addr = "\n\314\000\035", '\000' <repeats 11 times>}}, dst_ip = {af = 2, len = 4, u = {addrl = {2566914826, 0}, 

              addr32 = {2566914826, 0, 0, 0}, addr16 = {778, 39168, 0, 0, 0, 0, 0, 0}, 

              addr = "\n\003\000\231", '\000' <repeats 11 times>}}, src_port = 37114, dst_port = 5060, proto = 1, proto_reserved1 = 0, 

          proto_reserved2 = 0, src_su = {s = {sa_family = 2, sa_data = "\220\372\n\314\000\035\000\000\000\000\000\000\000"}, sin = {

              sin_family = 2, sin_port = 64144, sin_addr = {s_addr = 486591498}, sin_zero = "\000\000\000\000\000\000\000"}, sin6 = {

              sin6_family = 2, sin6_port = 64144, sin6_flowinfo = 486591498, sin6_addr = {__in6_u = {

                  __u6_addr8 = "\000\000\000\000\000\000\000\000W\335\366\355\375\177\000", __u6_addr16 = {0, 0, 0, 0, 56663, 60918, 32765, 

                    0}, __u6_addr32 = {0, 0, 3992378711, 32765}}}, sin6_scope_id = 0}}, bind_address = 0x7f7033f74d68}

        len = <optimized out>

        buf = "REGISTER sip:10.200.0.153:5060;transport=UDP SIP/2.0\r\nVia: SIP/2.0/UDP 10.204.0.29:37114;branch=z9hG4bK-524287-1---42810a0f5b9ff5d9;rport\r\nMax-Forwards: 69\r\nContact: <sip:32478720105 at 10.204.0.29:37114"...

        fromlen = 16

        p = <optimized out>

        msg = {

          s = 0x55cc8997c120 <buf> "REGISTER sip:10.200.0.153:5060;transport=UDP SIP/2.0\r\nVia: SIP/2.0/UDP 10.204.0.29:37114;branch=z9hG4bK-524287-1---42810a0f5b9ff5d9;rport\r\nMax-Forwards: 69\r\nContact: <sip:32478720105 at 10.204.0.29:37114"..., len = 603}

        __FUNCTION__ = "udp_read_req"

---Type <return> to continue, or q <return> to quit---

#9  0x000055cc8965f95f in handle_io (idx=0, event_type=1, fm=<optimized out>) at net/net_udp.c:272

        n = 0

        read = 21964

#10 io_wait_loop_epoll (repeat=<optimized out>, t=<optimized out>, h=<optimized out>) at net/../io_wait_loop.h:280

        ret = 1

        n = 1

        r = 0

        i = <optimized out>

        e = <optimized out>

        ep_event = {events = 1, data = {ptr = 0x323c60c000000000, fd = 0, u32 = 0, u64 = 3619874578249023488}}

        fd = <optimized out>

#11 0x000055cc89664764 in udp_start_processes (chd_rank=<optimized out>, startup_done=<optimized out>) at net/net_udp.c:496

        si = <optimized out>

        p_id = <optimized out>

        i = <optimized out>

        __FUNCTION__ = "udp_start_processes"

#12 0x000055cc8945a713 in main_loop () at main.c:795

        startup_done = 0x0

        chd_rank = 2

        last_check = 0

        rc = <optimized out>

        chd_rank = 2

#13 main (argc=<optimized out>, argv=<optimized out>) at main.c:1480

---Type <return> to continue, or q <return> to quit---

        c = <optimized out>

        r = <optimized out>

        tmp = 0x7f7034f7ffe5 "H\205\300u\177L\211\351L\211\342D\211\376\211\357\350\266\374\377\377H\205\300uj\213t$\bL\211\351L\211\342\211\357\350\240\374\377\377H\205\300uTD9t$\fA\215V\001v0A\211ָ\002"

        tmp_len = <optimized out>

        port = <optimized out>

        proto = <optimized out>

        protos_no = <optimized out>

        options = 0x55cc896bdad0 "f:cCm:M:b:l:n:N:rRvdDFEVhw:t:u:g:p:P:G:W:o:a:k:s:"

        ret = -1

        seed = 3897978920

        rfd = <optimized out>

        __FUNCTION__ = "main"

(gdb)

 

From: Bogdan-Andrei Iancu <bogdan at opensips.org> 
Sent: Wednesday, June 19, 2019 5:43 PM
To: johan de clercq <johan at democon.be>; 'OpenSIPS users mailling list' <users at lists.opensips.org>
Subject: Re: [OpenSIPS-Users] segfault in opensips30

 

Do "gdb /path/to/opensips /path/to/corefile"

Regards,



Bogdan-Andrei Iancu
 
OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Summit 2019
  https://www.opensips.org/events/Summit-2019Amsterdam/

On 06/19/2019 06:41 PM, johan de clercq wrote:

Bogdan, see below output : what am I doing wrong ? 

 

root at hendrix:/tmp# gdb /tmp/core

GNU gdb (Debian 7.12-6) 7.12.0.20161007-git

Copyright (C) 2016 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later  <http://gnu.org/licenses/gpl.html> <http://gnu.org/licenses/gpl.html>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.  Type "show copying"

and "show warranty" for details.

This GDB was configured as "x86_64-linux-gnu".

Type "show configuration" for configuration details.

For bug reporting instructions, please see:

 <http://www.gnu.org/software/gdb/bugs/> <http://www.gnu.org/software/gdb/bugs/>.

Find the GDB manual and other documentation resources online at:

 <http://www.gnu.org/software/gdb/documentation/> <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".

Type "apropos word" to search for commands related to "word"...

"/tmp/core": not in executable format: File format not recognized

 

From: Bogdan-Andrei Iancu  <mailto:bogdan at opensips.org> <bogdan at opensips.org> 
Sent: Wednesday, June 19, 2019 5:25 PM
To: OpenSIPS users mailling list  <mailto:users at lists.opensips.org> <users at lists.opensips.org>; johan de clercq  <mailto:johan at democon.be> <johan at democon.be>
Subject: Re: [OpenSIPS-Users] segfault in opensips30

 

Hi Johan,

Can you extract the full backtrace from the core file ?

Regards,




Bogdan-Andrei Iancu
 
OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Summit 2019
  https://www.opensips.org/events/Summit-2019Amsterdam/

On 06/19/2019 06:11 PM, johan de clercq wrote:

un 19 15:07:16 hendrix /data/opensips/sbin/opensips[31541]: DBG:db_mysql:db_mysql_get_columns: use DB_STRING result type

Jun 19 15:07:16 hendrix /data/opensips/sbin/opensips[31541]: DBG:db_mysql:db_mysql_convert_rows: no rows returned from the query

Jun 19 15:07:16 hendrix /data/opensips/sbin/opensips[31541]: DBG:usrloc:db_load_urecord: aor 32478720105 not found in table location

Jun 19 15:07:16 hendrix /data/opensips/sbin/opensips[31541]: DBG:core:db_free_columns: freeing result columns at 0x7f0d8fa8c7f8

Jun 19 15:07:16 hendrix /data/opensips/sbin/opensips[31541]: DBG:core:db_free_rows: freeing 0 rows

Jun 19 15:07:16 hendrix /data/opensips/sbin/opensips[31541]: DBG:core:db_free_result: freeing result set at 0x7f0d8fa8b320

Jun 19 15:07:16 hendrix /data/opensips/sbin/opensips[31541]: DBG:registrar:_remove: no record '32478720105' found!

Jun 19 15:07:16 hendrix /data/opensips/sbin/opensips[31541]: CRITICAL:core:sig_usr: segfault in process pid: 31541, id: 5

 

From: johan de clercq  <mailto:johan at democon.be> <johan at democon.be> 
Sent: Wednesday, June 19, 2019 4:53 PM
To: 'OpenSIPS users mailling list'  <mailto:users at lists.opensips.org> <users at lists.opensips.org>
Subject: segfault in opensips30

 

When trying to register an unknown user,  I have a segfault. 

I can easily reproduce, so please tell me what I need to do to give you a dump. 

 



Johan De Clercq, Managing Director
Democon bvba - Ooigemstraat 41 - 8780 Oostrozebeke

Tel +3256980990 – GSM +32478720104

 







_______________________________________________
Users mailing list
Users at lists.opensips.org <mailto:Users at lists.opensips.org> 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190619/daaa7811/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 15602 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20190619/daaa7811/attachment-0001.png>


More information about the Users mailing list