Kamailio is installed from src.

Core file:

 

Core was generated by `/usr/local/sbin/kamailio -P /var/run/kamailio.pid -m 4096 -u kamailio -g kamail'.

Program terminated with signal 11, Segmentation fault.

#0  0x000000000053cac7 in xavp_new_value (name=<value optimized out>, val=0x7fffec2c6fa0) at xavp.c:108

108                     memcpy(avp->val.v.s.s, val->v.s.s, val->v.s.len);

Missing separate debuginfos, use: debuginfo-install MySQL-shared-5.5.27-1.el6.x86_64 glibc-2.12-1.47.el6.x86_64 libconfuse-2.6-3.el6.x86_64 libgcc-4.4.6-3.el6.x86_64

(gdb) bt full

#0  0x000000000053cac7 in xavp_new_value (name=<value optimized out>, val=0x7fffec2c6fa0) at xavp.c:108

        avp = 0x7feb6e7e6ad0

        size = <value optimized out>

        id = 2098600037

#1  0x000000000053cb89 in xavp_add_value (name=<value optimized out>, val=<value optimized out>, list=0x7fffec2c6fb8) at xavp.c:170

        avp = 0x0

#2  0x00007fec72412004 in add_contacts_avp (uri=<value optimized out>, dst_uri=<value optimized out>, path=<value optimized out>,

    sock_str=0x7fffec2c7060, flags=0, q_flag=0, instance=0x7fec73d0e9a0) at t_serial.c:122

        record = 0x7feb6e7e6a40

        val = {type = SR_XTYPE_STR, v = {i = 8591616, s = {s = 0x831900 "\021\303[", len = 1877075032}, t = 8591616, l = 8591616,

            ll = 8591616, xavp = 0x831900, data = 0x831900}}

#3  0x00007fec724124a2 in t_load_contacts (msg=<value optimized out>, key=<value optimized out>, value=<value optimized out>)

    at t_serial.c:284

        branch = <value optimized out>

        ruri = <value optimized out>

        sock_str = {s = 0x831900 "\021\303[", len = 1877075032}

        contacts = 0x7fec73d0e960

        next = <value optimized out>

        prev = <value optimized out>

        curr = 0x7fec73d0e960

        first_idx = <value optimized out>

        idx = <value optimized out>

        len = 32748

        sock_buf = " \222\336s\354\177\000\000\311", '\000' <repeats 15 times>"\240, gdr\364\001\000\000\200\264\333s\354\177\000\000\240gdr\354\177\000\000\370\005\002p\354\177\000\000x_\305s\354\177\000\000\253x^\000\000\000\000\000", <incomplete sequence \331>

        __FUNCTION__ = "t_load_contacts"

#4  0x0000000000414ad6 in do_action (h=0x7fffec2c7b20, a=0x7fec73dba930, msg=0x7fec726467a0) at action.c:1074

        ret = -5

        v = <value optimized out>

        dst = {send_sock = 0x7fffec2c76c8, to = {s = {sa_family = 12404, sa_data = "L\000\000\000\000\000@\314\332s\354\177\000"}, sin = {

              sin_family = 12404, sin_port = 76, sin_addr = {s_addr = 0}, sin_zero = "@\314\332s\354\177\000"}, sin6 = {sin6_family = 12404,

              sin6_port = 76, sin6_flowinfo = 0, sin6_addr = {__in6_u = {__u6_addr8 = "@\314\332s\354\177\000\000\000\235\333s\354\177\000",

                  __u6_addr16 = {52288, 29658, 32748, 0, 40192, 29659, 32748, 0}, __u6_addr32 = {1943718976, 32748, 1943772416, 32748}}},

              sin6_scope_id = 1919182752}}, id = 32748, proto = 32 ' ', send_flags = {f = 123 '{', blst_imask = 44 ','}}

        tmp = <value optimized out>

        new_uri = <value optimized out>

        end = <value optimized out>

        crt = <value optimized out>

        cmd = 0x7fec73c4ba18

        len = <value optimized out>

        user = <value optimized out>

        uri = {user = {s = 0x7fffec2c7300 "", len = 1943771616}, passwd = {s = 0x1 <Address 0x1 out of bounds>, len = 5978073}, host = {

            s = 0x831900 "\021\303[", len = -332629216}, port = {s = 0x0, len = -332629216}, params = {s = 0x7fffec2c7a18 "\001",

            len = 5978073}, sip_params = {s = 0x831900 "\021\303[", len = 4312532}, headers = {s = 0x0, len = 1}, port_no = 31520,

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

          proto = 60460, type = 32767, flags = 491686011, transport = {s = 0x7fffec2c7b20 "\002", len = -332629480}, ttl = {

            s = 0x5b37d9 "corefunc", len = 8591616}, user_param = {s = 0x1a3fadb6f9ce887b <Address 0x1a3fadb6f9ce887b out of bounds>,

            len = -1976268677}, maddr = {s = 0x7fec00000000 "", len = 1916705797}, method = {s = 0x1 <Address 0x1 out of bounds>,

            len = 1943588453}, lr = {s = 0xb <Address 0xb out of bounds>, len = -332628176}, r2 = {s = 0x7fec73d09c70 "\001",

            len = 1907651825}, gr = {s = 0x1227810 "IST", len = -332631120}, transport_val = {

            s = 0x3000000010 <Address 0x3000000010 out of bounds>, len = -332630624}, ttl_val = {s = 0x7fffec2c74e0 "pu,\354\377\177",

            len = -332630472}, user_param_val = {s = 0x7fec73d09c70 "\001", len = 1916450944}, maddr_val = {s = 0x7fffec2c7f30 "",

            len = -332630324}, method_val = {s = 0x7fffec2c76c0 "", len = -332629480}, lr_val = {s = 0x7fffec2c7b20 "\002", len = 4974861},

          r2_val = {s = 0x7fec73d8ce65 "DESTINATION)", len = 11}, gr_val = {s = 0x831900 "\021\303[", len = 0}}

        next_hop = {user = {s = 0x1 <Address 0x1 out of bounds>, len = 1943070456}, passwd = {s = 0x7fec73da92a2 " <", len = 4835999},

          host = {s = 0x1 <Address 0x1 out of bounds>, len = 8591616}, port = {s = 0x7fec714fb6a0 " \222\336s\354\177", len = 128}, params = {

            s = 0x831900 "\021\303[", len = 122560528}, sip_params = {s = 0x3000000030 <Address 0x3000000030 out of bounds>,

            len = -332631472}, headers = {s = 0x7fec73d09c70 "\001", len = 1943070384}, port_no = 41549, proto = 141, type = ERROR_URI_T,

          flags = 4286257057, transport = {s = 0x7fec73d0e778 "42:5060", len = 1}, ttl = {s = 0x1 <Address 0x1 out of bounds>,

            len = 1943966240}, user_param = {s = 0x7fec73da9290 ">\\r\\nRecord-Route: <", len = 1943051432}, maddr = {s = 0x7fec73d09ee0 "",

            len = 1923520893}, method = {s = 0x7fec73d0e890 "@", len = 1923520893}, lr = {s = 0x7fec73c38010 "", len = 5505336}, r2 = {

            s = 0x3ca <Address 0x3ca out of bounds>, len = 1943771616}, gr = {s = 0x0, len = -332631296}, transport_val = {s = 0x5e78ab "",

            len = 5978073}, ttl_val = {s = 0x831900 "\021\303[", len = 4310758}, user_param_val = {s = 0x1f <Address 0x1f out of bounds>,

            len = 1}, maddr_val = {s = 0x1 <Address 0x1 out of bounds>, len = 1903282804}, method_val = {s = 0x0, len = -332630660},

          lr_val = {s = 0x7fffec2c7f30 "", len = 4974861}, r2_val = {

            s = 0x7fec73de9220 "REDIRECT_IPC: ru=sip:039988202@10.25.148.42:5060, fu=sip:anonymous;cpc=payphone@192.168.232.2, tu=sip:D39539988202@10.25.153.149:5060;user=phone, ci=1f795888-02e7a8c0-0002ed9a@192.168.232.2, branch[1]"..., len = 264}, gr_val = {

            s = 0xfd00 <Address 0xfd00 out of bounds>, len = 1919182752}}

        u = <value optimized out>

        port = <value optimized out>

        dst_host = <value optimized out>

        i = <value optimized out>

        flags = <value optimized out>

        avp = <value optimized out>

        st = {flags = 3962337816, id = 32767, name = {n = 4993140, s = {

              s = 0x4c3074 "\205\300A\211\307\017\211m\376\377\377\350\fI\370\377\205\300\017\210\274\005", len = 8591616}, re = 0x4c3074},

          avp = 0x41c6e6}

        sct = <value optimized out>

        sjt = <value optimized out>

        rve = <value optimized out>

        mct = <value optimized out>

        rv = <value optimized out>

        rv1 = <value optimized out>

        c1 = {cache_type = RV_CACHE_EMPTY, val_type = RV_NONE, c = {avp_val = {n = 1943718992, s = {s = 0x7fec73dacc50 "\022",

                len = -332630472}, re = 0x7fec73dacc50}, pval = {rs = {s = 0x7fec73dacc50 "\022", len = -332630472}, ri = 1943051376,

              flags = 32748}}, i2s = "0\177,\354\377\177\000\000 \323\332s\354\177\000\000p\234\320s\354\177"}

        s = {s = 0x0, len = -332630480}

        srevp = {0x125cef0, 0x160}

        mod_f_params = {{type = NOSUBTYPE, u = {number = 0, string = 0x0, str = {s = 0x0, len = 0}, data = 0x0, attr = 0x0, select = 0x0}}, {

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

            type = NOSUBTYPE, u = {number = 0, string = 0x0, str = {s = 0x0, len = 0}, data = 0x0, attr = 0x0, select = 0x0}}, {

            type = NOSUBTYPE, u = {number = 0, string = 0x0, str = {s = 0x0, len = 0}, data = 0x0, attr = 0x0, select = 0x0}}, {

            type = NOSUBTYPE, u = {number = 0, string = 0x0, str = {s = 0x0, len = 0}, data = 0x0, attr = 0x0, select = 0x0}}, {

            type = NOSUBTYPE, u = {number = 0, string = 0x0, str = {s = 0x0, len = 0}, data = 0x0, attr = 0x0, select = 0x0}}, {

            type = NOSUBTYPE, u = {number = 0, string = 0x0, str = {s = 0x0, len = 0}, data = 0x0, attr = 0x0, select = 0x0}}, {

            type = NOSUBTYPE, u = {number = 0, string = 0x0, str = {s = 0x0, len = 0}, data = 0x0, attr = 0x0, select = 0x0}}, {

            type = NOSUBTYPE, u = {number = 0, string = 0x0, str = {s = 0x0, len = 0}, data = 0x0, attr = 0x0, select = 0x0}}}

        __FUNCTION__ = "do_action"

#5  0x000000000041c6e6 in run_actions (h=0x7fffec2c7b20, a=0x7fec73dba410, msg=0x7fec726467a0) at action.c:1573

        t = <value optimized out>

        ret = <value optimized out>

        mod = 0x7fec73dba930

        ms = 0

        __FUNCTION__ = "run_actions"

#6  0x00000000004156bb in do_action (h=0x7fffec2c7b20, a=0x7fec73dbf210, msg=0x7fec726467a0) at action.c:1065

        ret = 1

        v = 1

        dst = {send_sock = 0x0, to = {s = {sa_family = 37494, sa_data = "\300\006\066\000\000\000\005\000\000\000\000\000\000"}, sin = {

              sin_family = 37494, sin_port = 1728, sin_addr = {s_addr = 54}, sin_zero = "\005\000\000\000\000\000\000"}, sin6 = {

              sin6_family = 37494, sin6_port = 1728, sin6_flowinfo = 54, sin6_addr = {__in6_u = {

                  __u6_addr8 = "\005\000\000\000\000\000\000\000Pz,\354\377\177\000", __u6_addr16 = {5, 0, 0, 0, 31312, 60460, 32767, 0},

                  __u6_addr32 = {5, 0, 3962337872, 32767}}}, sin6_scope_id = 461503090}}, id = 0, proto = 80 'P', send_flags = {f = 122 'z',

            blst_imask = 44 ','}}

        tmp = <value optimized out>

        new_uri = <value optimized out>

        end = <value optimized out>

        crt = <value optimized out>

        cmd = <value optimized out>

        len = <value optimized out>

        user = <value optimized out>

        uri = {user = {s = 0x7fec73d83a80 "p\032\322s\354\177", len = 0}, passwd = {s = 0x1 <Address 0x1 out of bounds>, len = 5978073},

          host = {s = 0x831900 "\021\303[", len = 1943051376}, port = {s = 0x7fffec2c7f30 "", len = 1943713440}, params = {s = 0x0,

            len = 200}, sip_params = {s = 0x0, len = 1943753952}, headers = {s = 0x7fec73daf580 "\017", len = -332628176}, port_no = 30891,

          proto = 94, type = ERROR_URI_T, flags = 5978073, transport = {s = 0x831900 "\021\303[", len = 4281954}, ttl = {s = 0x0, len = 0},

          user_param = {s = 0x0, len = 0}, maddr = {s = 0x0, len = 0}, method = {s = 0x0, len = 0}, lr = {s = 0x0, len = -332628176}, r2 = {

            s = 0x7fec73d09c70 "\001", len = 0}, gr = {s = 0x0, len = 0}, transport_val = {s = 0x0, len = 0}, ttl_val = {s = 0x0,

            len = 1853778728}, user_param_val = {s = 0x7feb6e7e6b28 "", len = 0}, maddr_val = {s = 0x0, len = 0}, method_val = {s = 0x0,

            len = 0}, lr_val = {s = 0x0, len = 0}, r2_val = {s = 0x0, len = 0}, gr_val = {s = 0x0, len = 0}}

        next_hop = {user = {s = 0x125aef0 "", len = -332628856}, passwd = {s = 0x7fffec2c7f30 "", len = 4974861}, host = {

            s = 0x1 <Address 0x1 out of bounds>, len = 8591616}, port = {s = 0x7fec714fb6a0 " \222\336s\354\177", len = 128}, params = {

            s = 0x831900 "\021\303[", len = 122560528}, sip_params = {s = 0x3000000030 <Address 0x3000000030 out of bounds>,

            len = -332630144}, headers = {s = 0x7fffec2c76c0 "", len = 1943655496}, port_no = 0, proto = 0, type = ERROR_URI_T, flags = 503,

          transport = {s = 0x5bc328 "NOTICE", len = 1943729536}, ttl = {s = 0x7fec73d09c70 "\001", len = -332628176}, user_param = {

            s = 0x7fffec2c7c88 "", len = 5978073}, maddr = {s = 0x831900 "\021\303[", len = 4993641}, method = {s = 0x0, len = 0}, lr = {

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

            s = 0x8eff64 "1", len = 1}, r2 = {s = 0x1c00000000 <Address 0x1c00000000 out of bounds>, len = 1853778324}, gr = {

            s = 0x2a <Address 0x2a out of bounds>, len = 0}, transport_val = {s = 0x1 <Address 0x1 out of bounds>, len = 0}, ttl_val = {

            s = 0x7fec714fb6a0 " \222\336s\354\177", len = 1943714560}, user_param_val = {s = 0x1 <Address 0x1 out of bounds>,

            len = -332628176}, maddr_val = {s = 0x5e78ab "", len = 5978073}, method_val = {s = 0x831900 "\021\303[", len = 4310758},

          lr_val = {s = 0x7fec73d0e7c0 " ", len = 1943653056}, r2_val = {

            s = 0x7fec73de9220 "REDIRECT_IPC: ru=sip:039988202@10.25.148.42:5060, fu=sip:anonymous;cpc=payphone@192.168.232.2, tu=sip:D39539988202@10.25.153.149:5060;user=phone, ci=1f795888-02e7a8c0-0002ed9a@192.168.232.2, branch[1]"..., len = 262}, gr_val = {s = 0x7fec73d0e700 "P",

            len = 1943051376}}

        u = <value optimized out>

        port = <value optimized out>

        dst_host = <value optimized out>

        i = <value optimized out>

        flags = <value optimized out>

        avp = <value optimized out>

        st = {flags = 5, id = 0, name = {n = 1946400104, s = {s = 0x7fec7403b568 "\210\021\342\006\066", len = -1472036457},

            re = 0x7fec7403b568}, avp = 0x3606c09b87}

        sct = <value optimized out>

        sjt = <value optimized out>

        rve = <value optimized out>

        mct = <value optimized out>

        rv = <value optimized out>

        rv1 = <value optimized out>

        c1 = {cache_type = RV_CACHE_EMPTY, val_type = RV_NONE, c = {avp_val = {n = 0, s = {s = 0x0, len = 1853778320}, re = 0x0}, pval = {

              rs = {s = 0x0, len = 1853778320}, ri = 410, flags = 0}},

          i2s = "\000\000\000\000\000\000\000\000v\222\300\006\066\000\000\000\000\000\000\000\000"}

        s = {s = 0x3600000017 <Address 0x3600000017 out of bounds>, len = 121645412}

        srevp = {0x0, 0x2a10a06}

        mod_f_params = {{type = NOSUBTYPE, u = {number = 0, string = 0x0, str = {s = 0x0, len = 0}, data = 0x0, attr = 0x0, select = 0x0}}, {

            type = NOSUBTYPE, u = {number = 0, string = 0x0, str = {s = 0x0, len = 0}, data = 0x0, attr = 0x0, select = 0x0}}, {

            type = NOSUBTYPE, u = {number = 0, string = 0x0, str = {s = 0x0, len = 0}, data = 0x0, attr = 0x0, select = 0x0}}, {

            type = NOSUBTYPE, u = {number = 0, string = 0x0, str = {s = 0x0, len = 0}, data = 0x0, attr = 0x0, select = 0x0}}, {

            type = NOSUBTYPE, u = {number = 0, string = 0x0, str = {s = 0x0, len = 0}, data = 0x0, attr = 0x0, select = 0x0}}, {

            type = NOSUBTYPE, u = {number = 0, string = 0x0, str = {s = 0x0, len = 0}, data = 0x0, attr = 0x0, select = 0x0}}, {

            type = NOSUBTYPE, u = {number = 0, string = 0x0, str = {s = 0x0, len = 0}, data = 0x0, attr = 0x0, select = 0x0}}, {

            type = NOSUBTYPE, u = {number = 0, string = 0x0, str = {s = 0x0, len = 0}, data = 0x0, attr = 0x0, select = 0x0}}}

        __FUNCTION__ = "do_action"

#7  0x000000000041c6e6 in run_actions (h=0x7fffec2c7b20, a=0x7fec73dbf210, msg=0x7fec726467a0) at action.c:1573

        t = <value optimized out>

        ret = <value optimized out>

        mod = 0x7fec73dbf210

        ms = 0

        __FUNCTION__ = "run_actions"

#8  0x000000000041cd60 in run_top_route (a=0x7fec73dbf210, msg=0x7fec726467a0, c=<value optimized out>) at action.c:1658

        ctx = {rec_lev = 2, run_flags = 0, last_retcode = 1, jmp_env = {{__jmpbuf = {140737155726112, -1891382177941256069, 140653532803600,

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

                140653508192160, 2, 0, 1891421369632983163, -1891382730165024645}, __mask_was_saved = 0, __saved_mask = {__val = {0, 0, 0, 0,

                  0, 0, 140653512530301, 140653532079952, 5505205, 0, 140653508192160, 9347040, 140653505834496, 8581976, 4294967295, 410}}}}}

        p = 0x7fffec2c7b20

        ret = <value optimized out>

        sfbk = 0

#9  0x00007fec724079ad in run_failure_handlers (t=0x7feb6e7e2d20, rpl=0x7fec73d09c70, code=<value optimized out>,

    extra_flags=<value optimized out>) at t_reply.c:1028

        faked_req = {id = 0, pid = 13769, tval = {tv_sec = 1384173815, tv_usec = 296916}, fwd_send_flags = {f = 0 '\000',

            blst_imask = 0 '\000'}, rpl_send_flags = {f = 0 '\000', blst_imask = 0 '\000'}, first_line = {type = 1, len = 63, u = {request = {

                method = {

                  s = 0x7feb6e7e46c8 "INVITE sip:D39539988202@10.25.153.149:5060;user=phone SIP/2.0\r\nRecord-Route: <sip:10.25.152.162;lr=on;ftag=02e7a8c0-f39550-t-1;vst=AAAAAHUBDAADCAkICARwA3kDHh8EDQADBgEAAw4MCgMADUVIEAFYAlUfBgpuZQ-->\r\nRe"..., len = 6}, uri = {

                  s = 0x7feb6e7e46cf "sip:D39539988202@10.25.153.149:5060;user=phone SIP/2.0\r\nRecord-Route: <sip:10.25.152.162;lr=on;ftag=02e7a8c0-f39550-t-1;vst=AAAAAHUBDAADCAkICARwA3kDHh8EDQADBgEAAw4MCgMADUVIEAFYAlUfBgpuZQ-->\r\nRecord-Ro"..., len = 46}, version = {

                  s = 0x7feb6e7e46fe "SIP/2.0\r\nRecord-Route: <sip:10.25.152.162;lr=on;ftag=02e7a8c0-f39550-t-1;vst=AAAAAHUBDAADCAkICARwA3kDHh8EDQADBgEAAw4MCgMADUVIEAFYAlUfBgpuZQ-->\r\nRecord-Route: <sip:10.25.153.149;lr;ftag=02e7a8c0-f39550"..., len = 7}, method_value = 1},

              reply = {version = {

                  s = 0x7feb6e7e46c8 "INVITE sip:D39539988202@10.25.153.149:5060;user=phone SIP/2.0\r\nRecord-Route: <sip:10.25.152.162;lr=on;ftag=02e7a8c0-f39550-t-1;vst=AAAAAHUBDAADCAkICARwA3kDHh8EDQADBgEAAw4MCgMADUVIEAFYAlUfBgpuZQ-->\r\nRe"..., len = 6}, status = {

                  s = 0x7feb6e7e46cf "sip:D39539988202@10.25.153.149:5060;user=phone SIP/2.0\r\nRecord-Route: <sip:10.25.152.162;lr=on;ftag=02e7a8c0-f39550-t-1;vst=AAAAAHUBDAADCAkICARwA3kDHh8EDQADBgEAAw4MCgMADUVIEAFYAlUfBgpuZQ-->\r\nRecord-Ro"..., len = 46}, reason = {

                  s = 0x7feb6e7e46fe "SIP/2.0\r\nRecord-Route: <sip:10.25.152.162;lr=on;ftag=02e7a8c0-f39550-t-1;vst=AAAAAHUBDAADCAkICARwA3kDHh8EDQADBgEAAw4MCgMADUVIEAFYAlUfBgpuZQ-->\r\nRecord-Route: <sip:10.25.153.149;lr;ftag=02e7a8c0-f39550"..., len = 7}, statuscode = 1}}},

          via1 = 0x7feb6e7e4d88, via2 = 0x7feb6e7e4f30, headers = 0x7feb6e7e4cc8, last_header = 0x7feb6e7e5990,

          parsed_flag = 18446744073709551615, h_via1 = 0x7feb6e7e4d48, h_via2 = 0x7feb6e7e4ef0, callid = 0x7feb6e7e5660, to = 0x7feb6e7e5448,

          cseq = 0x7feb6e7e56a0, from = 0x7feb6e7e5200, contact = 0x7feb6e7e5710, maxforwards = 0x7feb6e7e51c0, route = 0x0,

          record_route = 0x7feb6e7e4cc8, content_type = 0x7feb6e7e58d0, content_length = 0x7feb6e7e5910, authorization = 0x0, expires = 0x0,

          proxy_auth = 0x0, supported = 0x7feb6e7e5810, require = 0x0, proxy_require = 0x0, unsupported = 0x0, allow = 0x7feb6e7e57d0,

          event = 0x0, accept = 0x0, accept_language = 0x0, organization = 0x0, priority = 0x0, subject = 0x0, user_agent = 0x7feb6e7e5790,

          server = 0x0, content_disposition = 0x0, diversion = 0x0, rpid = 0x0, refer_to = 0x0, session_expires = 0x0, min_se = 0x0,

          sipifmatch = 0x0, subscription_state = 0x0, date = 0x0, identity = 0x0, identity_info = 0x0, pai = 0x7feb6e7e5850, ppi = 0x0,

          path = 0x0, privacy = 0x7feb6e7e5890, body = 0x0,

          eoh = 0x7feb6e7e4be4 "\r\nv=0\r\no=10.200.22.151 11095 2 IN IP4 10.200.22.151\r\ns=SIP Call\r\nc=IN IP4 10.200.22.151\r\nt=0 0\r\na=sendrecv\r\nm=audio 41252 RTP/AVP 8 101\r\na=rtpmap:8 PCMA/8000/1\r\na=rtpmap:101 telephone-event/8000\r\na=fm"...,

          unparsed = 0x7feb6e7e4be4 "\r\nv=0\r\no=10.200.22.151 11095 2 IN IP4 10.200.22.151\r\ns=SIP Call\r\nc=IN IP4 10.200.22.151\r\nt=0 0\r\na=sendrecv\r\nm=audio 41252 RTP/AVP 8 101\r\na=rtpmap:8 PCMA/8000/1\r\na=rtpmap:101 telephone-event/8000\r\na=fm"..., rcv = {src_ip = {

              af = 2, len = 4, u = {addrl = {2727876874, 0}, addr32 = {2727876874, 0, 0, 0}, addr16 = {6410, 41624, 0, 0, 0, 0, 0, 0},

                addr = "\n\031\230\242", '\000' <repeats 11 times>}}, dst_ip = {af = 2, len = 4, u = {addrl = {2509838602, 0}, addr32 = {

                  2509838602, 0, 0, 0}, addr16 = {6410, 38297, 0, 0, 0, 0, 0, 0}, addr = "\n\031\231\225", '\000' <repeats 11 times>}},

            src_port = 5060, dst_port = 5060, proto_reserved1 = 0, proto_reserved2 = 0, src_su = {s = {sa_family = 2,

                sa_data = "\023\304\n\031\230\242\000\000\000\000\000\000\000"}, sin = {sin_family = 2, sin_port = 50195, sin_addr = {

                  s_addr = 2727876874}, sin_zero = "\000\000\000\000\000\000\000"}, sin6 = {sin6_family = 2, sin6_port = 50195,

                sin6_flowinfo = 2727876874, sin6_addr = {__in6_u = {__u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 = {0, 0, 0, 0, 0, 0,

                      0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, sin6_scope_id = 0}}, bind_address = 0x7fec73de4f10, proto = 1 '\001'},

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

          buf = 0x7feb6e7e46c8 "INVITE sip:D39539988202@10.25.153.149:5060;user=phone SIP/2.0\r\nRecord-Route: <sip:10.25.152.162;lr=on;ftag=02e7a8c0-f39550-t-1;vst=AAAAAHUBDAADCAkICARwA3kDHh8EDQADBgEAAw4MCgMADUVIEAFYAlUfBgpuZQ-->\r\nRe"..., len = 1533, new_uri = {

            s = 0x7fec73d0e760 "sip:039988202@10.25.148.42:5060", len = 31}, dst_uri = {s = 0x0, len = 0}, parsed_uri_ok = 1, parsed_uri = {

            user = {s = 0x7fec73d0e764 "039988202@10.25.148.42:5060", len = 9}, passwd = {s = 0x0, len = 0}, host = {

              s = 0x7fec73d0e76e "10.25.148.42:5060", len = 12}, port = {s = 0x7fec73d0e77b "5060", len = 4}, params = {s = 0x0, len = 0},

            sip_params = {s = 0x0, len = 0}, headers = {s = 0x0, len = 0}, port_no = 5060, proto = 0, type = SIP_URI_T, flags = 0,

            transport = {s = 0x0, len = 0}, ttl = {s = 0x0, len = 0}, user_param = {s = 0x0, len = 0}, maddr = {s = 0x0, len = 0}, method = {

              s = 0x0, len = 0}, lr = {s = 0x0, len = 0}, r2 = {s = 0x0, len = 0}, gr = {s = 0x0, len = 0}, transport_val = {s = 0x0,

              len = 0}, ttl_val = {s = 0x0, len = 0}, user_param_val = {s = 0x0, len = 0}, maddr_val = {s = 0x0, len = 0}, method_val = {

              s = 0x0, len = 0}, lr_val = {s = 0x0, len = 0}, r2_val = {s = 0x0, len = 0}, gr_val = {s = 0x0, len = 0}},

          parsed_orig_ruri_ok = 0, parsed_orig_ruri = {user = {s = 0x0, len = 0}, passwd = {s = 0x0, len = 0}, host = {s = 0x0, len = 0},

            port = {s = 0x0, len = 0}, params = {s = 0x0, len = 0}, sip_params = {s = 0x0, len = 0}, headers = {s = 0x0, len = 0},

            port_no = 0, proto = 0, type = ERROR_URI_T, flags = 0, transport = {s = 0x0, len = 0}, ttl = {s = 0x0, len = 0}, user_param = {

              s = 0x0, len = 0}, maddr = {s = 0x0, len = 0}, method = {s = 0x0, len = 0}, lr = {s = 0x0, len = 0}, r2 = {s = 0x0, len = 0},

            gr = {s = 0x0, len = 0}, transport_val = {s = 0x0, len = 0}, ttl_val = {s = 0x0, len = 0}, user_param_val = {s = 0x0, len = 0},

            maddr_val = {s = 0x0, len = 0}, method_val = {s = 0x0, len = 0}, lr_val = {s = 0x0, len = 0}, r2_val = {s = 0x0, len = 0},

            gr_val = {s = 0x0, len = 0}}, add_rm = 0x7feb6e7e5d40, body_lumps = 0x0, reply_lump = 0x0,

          add_to_branch_s = '\000' <repeats 57 times>, add_to_branch_len = 0, hash_index = 54811, msg_flags = 24720, flags = 0,

          set_global_address = {s = 0x0, len = 0}, set_global_port = {s = 0x0, len = 0}, force_send_socket = 0x0, path_vec = {s = 0x0,

            len = 0}, instance = {s = 0x0, len = 0}, reg_id = 0}

        shmem_msg = 0x7feb6e7e4050

        on_failure = 2

        __FUNCTION__ = "run_failure_handlers"

#10 0x00007fec72409eee in t_should_relay_response (Trans=0x7feb6e7e2d20, new_code=302, branch=0, should_store=0x7fffec2c7e58,

    should_relay=0x7fffec2c7e5c, cancel_data=0x7fffec2c8080, reply=0x7fec73d09c70) at t_reply.c:1304

        branch_cnt = <value optimized out>

        picked_code = 302

        new_branch = <value optimized out>

        inv_through = <value optimized out>

        extra_flags = <value optimized out>

        i = <value optimized out>

        replies_dropped = 0

        __FUNCTION__ = "t_should_relay_response"

#11 0x00007fec7240de16 in relay_reply (t=0x7feb6e7e2d20, p_msg=0x7fec73d09c70, branch=0, msg_status=302, cancel_data=0x7fffec2c8080,

    do_put_on_wait=1) at t_reply.c:1707

        relay = <value optimized out>

        save_clone = <value optimized out>

        buf = 0x0

        res_len = 0

        relayed_code = 0

        relayed_msg = 0x0

        reply_bak = <value optimized out>

        bm = {to_tag_val = {s = 0x0, len = 0}}

        totag_retr = 0

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

        reply_status = <value optimized out>

        uas_rb = <value optimized out>

        to_tag = <value optimized out>

        reason = {s = 0x3 <Address 0x3 out of bounds>, len = -332627780}

        onsend_params = {req = 0x7fec72647594, rpl = 0x7fffec2c80b8, param = 0x7feb6e7e6993, code = 1853778324, flags = 32747, branch = 0,

          t_rbuf = 0x7fffec2c80a0, dst = 0x7fec7242ab1c, send_buf = {s = 0x5c <Address 0x5c out of bounds>, len = -332628388}}

        __FUNCTION__ = "relay_reply"

#12 0x00007fec72410da6 in reply_received (p_msg=0x7fec73d09c70) at t_reply.c:2374

        msg_status = 302

        last_uac_status = 0

        ack = 0x1 <Address 0x1 out of bounds>

        ack_len = 410

        branch = 0

        reply_status = <value optimized out>

        onreply_route = <value optimized out>

        cancel_data = {cancel_bitmap = 0, reason = {cause = 0, u = {text = {s = 0x0, len = 1943948208}, e2e_cancel = 0x0, packed_hdrs = {

                s = 0x0, len = 1943948208}}}}

        uac = 0x7feb6e7e2e88

        t = 0x7feb6e7e2d20

        lack_dst = {send_sock = 0x0, to = {s = {sa_family = 0, sa_data = '\000' <repeats 13 times>}, sin = {sin_family = 0, sin_port = 0,

              sin_addr = {s_addr = 0}, sin_zero = "\000\000\000\000\000\000\000"}, sin6 = {sin6_family = 0, sin6_port = 0, sin6_flowinfo = 0,

              sin6_addr = {__in6_u = {__u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0,

                    0}}}, sin6_scope_id = 0}}, id = 0, proto = 0 '\000', send_flags = {f = 0 '\000', blst_imask = 0 '\000'}}

        backup_user_from = <value optimized out>

        backup_user_to = <value optimized out>

        backup_domain_from = <value optimized out>

        backup_domain_to = <value optimized out>

        backup_uri_from = <value optimized out>

        backup_uri_to = <value optimized out>

        backup_xavps = <value optimized out>

        replies_locked = <value optimized out>

        branch_ret = <value optimized out>

        prev_branch = <value optimized out>

        blst_503_timeout = <value optimized out>

        hf = <value optimized out>

        onsend_params = {req = 0x8da34a, rpl = 0x543274, param = 0x0, code = 0, flags = 0, branch = 0, t_rbuf = 0x0, dst = 0x0, send_buf = {

            s = 0x0, len = 0}}

        ctx = {rec_lev = 0, run_flags = 0, last_retcode = 1, jmp_env = {{__jmpbuf = {140737155727152, -1891382177941256069, 140653532559584,

                140653532060784, 302, 140649147809800, 1891421369555388539, -1891382730165024645}, __mask_was_saved = 0, __saved_mask = {

                __val = {140653532589920, 0, 5, 0, 0, 0, 0, 0, 9281389, 68719476736, 0, 0, 9281187, 140653532957616, 9282378,

                  140653532957712}}}}}

        __FUNCTION__ = "reply_received"

#13 0x0000000000456d54 in do_forward_reply (msg=0x7fec73d09c70, mode=<value optimized out>) at forward.c:799

        new_buf = 0x0

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

        dst = {send_sock = 0x0, to = {s = {sa_family = 0, sa_data = '\000' <repeats 13 times>}, sin = {sin_family = 0, sin_port = 0,

              sin_addr = {s_addr = 0}, sin_zero = "\000\000\000\000\000\000\000"}, sin6 = {sin6_family = 0, sin6_port = 0, sin6_flowinfo = 0,

              sin6_addr = {__in6_u = {__u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0,

                    0}}}, sin6_scope_id = 0}}, id = 0, proto = 0 '\000', send_flags = {f = 0 '\000', blst_imask = 0 '\000'}}

        new_len = <value optimized out>

        r = <value optimized out>

        s = <value optimized out>

        len = <value optimized out>

        __FUNCTION__ = "do_forward_reply"

#14 0x000000000049f4be in receive_msg (

    buf=0x8d9e80 "SIP/2.0 302 Moved temporarily\r\nVia:SIP/2.0/UDP 10.25.153.149;TH=ucv;branch=z9hG4bKb16d.eab858d.0,SIP/2.0/UDP 10.25.152.162;TH=div;branch=z9hG4bKb16d.5c05ffa7.2,SIP/2.0/UDP 10.25.153.149;branch=z9hG4bK"..., len=<value optimized out>, rcv_info=0x7fffec2c8340)

    at receive.c:272

        msg = 0x7fec73d09c70

        ctx = {rec_lev = 1940013904, run_flags = 32748, last_retcode = 1943947744, jmp_env = {{__jmpbuf = {0, 140653518935833, 232049914616,

                140653535408128, 140737155728432, 4294967295, 140737155728559, 5}, __mask_was_saved = 8581896, __saved_mask = {__val = {0,

                  28, 16, 0, 232041537344, 5, 0, 3006477107200, 232049914616, 140653531332016, 140653532957552, 140653535405736,

                  140653532957560, 140737155728328, 232041563685, 140737155728200}}}}}

        ret = <value optimized out>

        inb = {

          s = 0x8d9e80 "SIP/2.0 302 Moved temporarily\r\nVia:SIP/2.0/UDP 10.25.153.149;TH=ucv;branch=z9hG4bKb16d.eab858d.0,SIP/2.0/UDP 10.25.152.162;TH=div;branch=z9hG4bKb16d.5c05ffa7.2,SIP/2.0/UDP 10.25.153.149;branch=z9hG4bK"..., len = 1226}

        __FUNCTION__ = "receive_msg"

#15 0x0000000000532306 in udp_rcv_loop () at udp_server.c:557

        len = 1549

        buf = "SIP/2.0 302 Moved temporarily\r\nVia:SIP/2.0/UDP 10.25.153.149;TH=ucv;branch=z9hG4bKb16d.eab858d.0,SIP/2.0/UDP 10.25.152.162;TH=div;branch=z9hG4bKb16d.5c05ffa7.2,SIP/2.0/UDP 10.25.153.149;branch=z9hG4bK"...

        from = 0x7fec73de4b70

        fromlen = 16

        ri = {src_ip = {af = 2, len = 4, u = {addrl = {714348810, 0}, addr32 = {714348810, 0, 0, 0}, addr16 = {6410, 10900, 0, 0, 0, 0, 0,

                0}, addr = "\n\031\224*", '\000' <repeats 11 times>}}, dst_ip = {af = 2, len = 4, u = {addrl = {2509838602, 0}, addr32 = {

                2509838602, 0, 0, 0}, addr16 = {6410, 38297, 0, 0, 0, 0, 0, 0}, addr = "\n\031\231\225", '\000' <repeats 11 times>}},

          src_port = 58575, dst_port = 5060, proto_reserved1 = 0, proto_reserved2 = 0, src_su = {s = {sa_family = 2,

              sa_data = "\344\317\n\031\224*\000\000\000\000\000\000\000"}, sin = {sin_family = 2, sin_port = 53220, sin_addr = {

                s_addr = 714348810}, sin_zero = "\000\000\000\000\000\000\000"}, sin6 = {sin6_family = 2, sin6_port = 53220,

              sin6_flowinfo = 714348810, sin6_addr = {__in6_u = {__u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 = {0, 0, 0, 0, 0, 0, 0,

                    0}, __u6_addr32 = {0, 0, 0, 0}}}, sin6_scope_id = 0}}, bind_address = 0x7fec73de4f10, proto = 1 '\001'}

        __FUNCTION__ = "udp_rcv_loop"

#16 0x0000000000467a7a in main_loop () at main.c:1638

        i = <value optimized out>

        pid = <value optimized out>

        si = <value optimized out>

        si_desc = "udp receiver child=5 sock=10.25.153.149:5060\000\000\000\000\220J\306s\354\177\000\000\000\000\000\000\000\000\000\000\003\000\000\000\000\000\000\000\001\000\000\000\027\000\000\000\300\375\216\000\000\000\000\000\005\000\000\000\000\000\000\000\000\376\216\000\000\---Type <return> to continue, or q <return> to quit---

000\000\000\000\000@\000\001", '\000' <repeats 11 times>, "\001\000\000\000\000\000\000"

        nrprocs = <value optimized out>

        __FUNCTION__ = "main_loop"

#17 0x000000000046a912 in main (argc=<value optimized out>, argv=<value optimized out>) at main.c:2566

        cfg_stream = <value optimized out>

        c = <value optimized out>

        r = <value optimized out>

        tmp = 0x7fffec2ca87c ""

        tmp_len = 0

        options = 0x5c1de8 ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:"

        ret = -1

        seed = 1033691308

        rfd = <value optimized out>

        debug_save = <value optimized out>

        debug_flag = <value optimized out>

        dont_fork_cnt = <value optimized out>

        n_lst = <value optimized out>

        p = <value optimized out>

        __FUNCTION__ = "main"

(gdb)

 

 

Thank you,

Julia

 

 

 


From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Daniel-Constantin Mierla
Sent: Monday, November 11, 2013 1:28 PM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Kamailio 4.0.4 crash t_load_contact();

 

Hello,

the log indicates you got a core dump. Provide the backtrace with gdb:

gdb /path/to/kamailio /path/to/corefile

Then:

bt full

The core should be in / or the folder you set with -w.

Did you install it from sources, tarball or git? Or from packages?

Cheers,
Daniel

On 11/11/13 12:17 PM, Julia wrote:

Hello,

 

After upgrade from 3.3 to 4.0.4 Kamailio crashed when the first call after application start is a call with failure route:

 

            get_redirect();

t_load_contact();

t_next_contacts();

 

 

Nov 11 12:55:48 vm-KAMnet-dev01 /usr/local/sbin/kamailio[10356]: DEBUG: uac_redirect [rd_funcs.c:78]: get_redirect(): resume branch=0

Nov 11 12:55:48 vm-KAMnet-dev01 /usr/local/sbin/kamailio[10356]: DEBUG: uac_redirect [rd_funcs.c:85]: get_redirect(): checking branch=0 (added=0)

Nov 11 12:55:48 vm-KAMnet-dev01 /usr/local/sbin/kamailio[10356]: DEBUG: uac_redirect [rd_funcs.c:89]: get_redirect(): branch=0 is a redirect (added=0)

Nov 11 12:55:48 vm-KAMnet-dev01 /usr/local/sbin/kamailio[10356]: DEBUG: uac_redirect [rd_funcs.c:165]: sort_contacts(): sort_contacts: <sip:39988202@10.25.147.241:5060;user=phone> q=250

Nov 11 12:55:48 vm-KAMnet-dev01 /usr/local/sbin/kamailio[10356]: DEBUG: uac_redirect [rd_funcs.c:165]: sort_contacts(): sort_contacts: <sip:39988202@10.25.148.41:5060;user=phone> q=500

Nov 11 12:55:48 vm-KAMnet-dev01 /usr/local/sbin/kamailio[10356]: DEBUG: uac_redirect [rd_funcs.c:297]: shmcontact2dset(): adding contact <sip:39988202@10.25.147.241:5060;user=phone>

Nov 11 12:55:48 vm-KAMnet-dev01 /usr/local/sbin/kamailio[10356]: DEBUG: <core> [sruid.c:176]: sruid_next(): new sruid is [rdir-5280b7a9-2874-1] (1 / 20)

Nov 11 12:55:48 vm-KAMnet-dev01 /usr/local/sbin/kamailio[10356]: DEBUG: uac_redirect [rd_funcs.c:297]: shmcontact2dset(): adding contact <sip:39988202@10.25.148.41:5060;user=phone>

Nov 11 12:55:48 vm-KAMnet-dev01 /usr/local/sbin/kamailio[10356]: DEBUG: <core> [sruid.c:176]: sruid_next(): new sruid is [rdir-5280b7a9-2874-2] (2 / 20)

Nov 11 12:55:48 vm-KAMnet-dev01 /usr/local/sbin/kamailio[10356]: DEBUG: tm [t_serial.c:166]: t_load_contacts(): nr_branches is 2

Nov 11 12:56:00 vm-KAMnet-dev01 /usr/local/sbin/kamailio[10336]: ALERT: <core> [main.c:788]: handle_sigs(): child process 10356 exited by a signal 11

Nov 11 12:56:00 vm-KAMnet-dev01 /usr/local/sbin/kamailio[10336]: ALERT: <core> [main.c:791]: handle_sigs(): core was generated

Nov 11 12:56:00 vm-KAMnet-dev01 /usr/local/sbin/kamailio[10336]: INFO: <core> [main.c:803]: handle_sigs(): INFO: terminating due to SIGCHLD

 

 

Regards,

Julia.





_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

 

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Trainings - Berlin, Nov 25-28
  - more details about Kamailio trainings at http://www.asipto.com -