[sr-dev] a new master crash in tm module

Juha Heinanen jh at tutpro.com
Wed Sep 23 11:52:09 CEST 2015


Daniel-Constantin Mierla writes:

> Can you get:
> 
> frame 3
> info locals
> p *dead_cell
> p dead_cell->uac[i]
> p dead_cell->uac[i].request.buffer

below, juha

(gdb) frame 3
#3  0x00007f28ce5c1c12 in free_cell (dead_cell=0x7f28c95eb6c0) at h_table.c:162
162	h_table.c: No such file or directory.
(gdb) info locals
b = 0x7f28c958e4a0 "\003"
i = 0
rpl = 0x7ffcfb5ef310
tt = 0x0
foo = 0x1ce5c15d1
cbs = 0x0
cbs_tmp = 0x7ffcfb5ef300
__FUNCTION__ = "free_cell"
(gdb) p *dead_cell
$5 = {next_c = 0x7f28c9014040, prev_c = 0x7f28c9014040, hash_index = 20910, 
  label = 909981379, flags = 32, nr_of_outgoings = 1, ref_count = {val = 0}, 
  from = {
    s = 0x7f28c95ed4d1 "From: \"Juha Heinanen\" <sip:jh at test.tutpro.com>;tag=x59bds0qqEOg1ANXSZ5pDN6KUTeyJsfM\r\nTo: <sip:jh at test.tutpro.com>;tag=2c15998813993a5f2698a8693042e46f-fc42\r\nContact: <sip:80792365 at 192.98.102.10:60349;"..., 
    len = 85}, callid = {
    s = 0x7f28c95ed5a9 "Call-ID: CJmRdv7tyj9dAaGFBtYOSlDLVR39wr9Q\r\nCSeq: 19567 SUBSCRIBE\r\nRoute: <sip:192.98.102.10;transport=tcp;lr;r2=on>\r\nRoute: <sip:127.0.0.1:5070;transport=tcp;lr;r2=on>\r\nEvent: presence.winfo\r\nExpires:"..., len = 43}, cseq_n = {
    s = 0x7f28c95ed5d4 "CSeq: 19567 SUBSCRIBE\r\nRoute: <sip:192.98.102.10;transport=tcp;lr;r2=on>\r\nRoute: <sip:127.0.0.1:5070;transport=tcp;lr;r2=on>\r\nEvent: presence.winfo\r\nExpires: 0\r\nSupported: 100rel, replaces, norefersub"..., len = 11}, to = {
    s = 0x7f28c95ed526 "To: <sip:jh at test.tutpro.com>;tag=2c15998813993a5f2698a8693042e46f-fc42\r\nContact: <sip:80792365 at 192.98.102.10:60349;transport=tcp>\r\nCall-ID: CJmRdv7tyj9dAaGFBtYOSlDLVR39wr9Q\r\nCSeq: 19567 SUBSCRIBE\r\nRou"..., 
    len = 72}, method = {
    s = 0x7f28c95ed428 "SUBSCRIBE sip:127.0.0.1:5080;transport=tcp SIP/2.0\r\nVia: SIP/2.0/TCP 192.98.102.10:33350;rport;branch=z9hG4bKPjLNqho2m4W76Z.-TR-YRT8ByG8c574-mL;alias\r\nMax-Forwards: 69\r\nFrom: \"Juha Heinanen\" <sip:jh at t"..., 
    len = 9}, tmcb_hl = {first = 0x0, reg_types = 0}, wait_timer = {
    next = 0x0, prev = 0x0, expire = 1463515017, initial_timeout = 80, 
---Type <return> to continue, or q <return> to quit---
    data = 0x7f28c95eb6c0, f = 0x7f28ce6443fc <wait_handler>, flags = 513, 
    slow_idx = 0}, uas = {request = 0x7f28c95ecd40, 
    end_request = 0x7f28c95ee158 "", response = {activ_type = 200, 
      flags = 128, t_active = 0 '\000', branch = 0, buffer_len = 496, 
      buffer = 0x7f28c96a6178 "SIP/2.0 200 OK\r\nVia: SIP/2.0/TCP 192.98.102.10:33350;received=192.98.102.10;rport=33350;branch=z9hG4bKPjLNqho2m4W76Z.-TR-YRT8ByG8c574-mL;alias\r\nFrom: \"Juha Heinanen\" <sip:jh at test.tutpro.com>;tag=x59bd"..., my_T = 0x7f28c95eb6c0, timer = {next = 0x0, prev = 0x0, expire = 0, 
        initial_timeout = 0, data = 0x0, 
        f = 0x7f28ce643eed <retr_buf_handler>, flags = 0, slow_idx = 0}, 
      dst = {send_sock = 0x7f28d0786d30, to = {s = {sa_family = 2, 
            sa_data = "\202F\300bf\n\000\000\000\000\000\000\000"}, sin = {
            sin_family = 2, sin_port = 18050, sin_addr = {s_addr = 174482112}, 
            sin_zero = "\000\000\000\000\000\000\000"}, sin6 = {
            sin6_family = 2, sin6_port = 18050, sin6_flowinfo = 174482112, 
            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 = 6, proto = 2 '\002', 
        send_flags = {f = 0 '\000', blst_imask = 0 '\000'}}, retr_expire = 0, 
      fr_expire = 0}, local_totag = {s = 0x0, len = 0}, cancel_reas = 0x0, 
    status = 200}, uac = 0x7f28c95eb8c8, async_backup = {backup_route = 0, 
    backup_branch = 0, blind_uac = 0, ruri_new = 0}, fwded_totags = 0x0, 
  uri_avps_from = 0x0, uri_avps_to = 0x0, user_avps_from = 0x0, 
  user_avps_to = 0x0, domain_avps_from = 0x0, domain_avps_to = 0x0, 
---Type <return> to continue, or q <return> to quit---
  xavps_list = 0x0, reply_mutex = {val = 0}, reply_locker_pid = {val = 0}, 
  reply_rec_lock_level = 0, fr_timeout = 80, fr_inv_timeout = 1200, 
  rt_t1_timeout_ms = 500, rt_t2_timeout_ms = 4000, end_of_life = 1463515449, 
  relayed_reply_branch = 0, on_failure = 0, on_branch_failure = 0, 
  on_reply = 3, on_branch = 0, on_branch_delayed = 0, 
  md5 = 0x7f28c95eb8a8 "00a32e5f19bf322b906afdd1a6842858"}
(gdb) p dead_cell->uac[i]
$6 = {reply = 0x0, end_reply = 0x0, request = {activ_type = 0, flags = 164, 
    t_active = 0 '\000', branch = 0, buffer_len = 882, 
    buffer = 0x7f28c958e4a0 "\003", my_T = 0x7f28c95eb6c0, timer = {
      next = 0x0, prev = 0x0, expire = 1463515017, initial_timeout = 80, 
      data = 0xfffffffe, f = 0x7f28ce643eed <retr_buf_handler>, flags = 512, 
      slow_idx = 0}, dst = {send_sock = 0x7f28d07876d0, to = {s = {
          sa_family = 2, 
          sa_data = "\023\330\177\000\000\001\000\000\000\000\000\000\000"}, 
        sin = {sin_family = 2, sin_port = 55315, sin_addr = {
            s_addr = 16777343}, sin_zero = "\000\000\000\000\000\000\000"}, 
        sin6 = {sin6_family = 2, sin6_port = 55315, sin6_flowinfo = 16777343, 
          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 = 2 '\002', 
      send_flags = {f = 4 '\004', blst_imask = 0 '\000'}}, 
    retr_expire = 1463514936, fr_expire = 1463515017}, local_cancel = {
    activ_type = 0, flags = 128, t_active = 0 '\000', branch = 0, 
    buffer_len = 0, buffer = 0x0, my_T = 0x7f28c95eb6c0, timer = {next = 0x0, 
      prev = 0x0, expire = 0, initial_timeout = 0, data = 0x0, 
      f = 0x7f28ce643eed <retr_buf_handler>, flags = 0, slow_idx = 0}, 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, 
---Type <return> to continue, or q <return> to quit---
          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'}}, retr_expire = 0, 
    fr_expire = 0}, dns_h = {srv = 0x0, a = 0x0, srv_tried_rrs = 0, 
    port = 5080, srv_no = 0 '\000', ip_no = 0 '\000', proto = 2 '\002'}, 
  uri = {s = 0x7f28c958e4aa "X\311(\177", len = 32}, path = {s = 0x0, 
    len = 0}, instance = {s = 0x0, len = 0}, ruid = {s = 0x0, len = 0}, 
  location_ua = {s = 0x0, len = 0}, last_received = 200, flags = 4, 
  branch_flags = 0, icode = 0, local_ack = 0x0, on_failure = 0, 
  on_branch_failure = 0, on_reply = 3, on_unused = 0}
(gdb) p dead_cell->uac[i].request.buffer
$7 = 0x7f28c958e4a0 "\003"
(gdb) 



More information about the sr-dev mailing list