[sr-dev] [kamailio/kamailio] Kamailio Crash (#2494)

iliesh notifications at github.com
Thu Oct 8 13:08:29 CEST 2020


Sorry, there was a problem with the previous core dump file, it was deleted by mistake, I just got another one - which I will try to keep for the further investigations:

See below:

(gdb) frame 0
```

#0  0x00007f21b5cdb42d in update_dialog_vars_dbinfo (cell=0x7f21ba5f6348, var=0x7574617473706973) at dlg_db_handler.c:755
755             SET_STR_VALUE(values+2, var->key);

```

(gdb) p *cell
```
$3 = {ref = 2, next = 0x0, prev = 0x0, h_id = 73, h_entry = 377, state = 5, lifetime = 10800, init_ts = 1602108879, start_ts = 0, end_ts = 1602108884, dflags = 1664, iflags = 0, sflags = 0, toroute = 0, toroute_name = {s = 0x0, len = 0}, from_rr_nb = 0, tl = {next = 0x0,
    prev = 0x0, timeout = 0}, callid = {s = 0x7f21ba5f64b8 "06ff9b78453fc6682ed83c6b0e19f14a at domain.local.net", len = 55}, from_uri = {s = 0x7f21ba5f64f0 "sip:0123456789 at domain.local.net", len = 37}, to_uri = {s = 0x7f21ba5f6516 "sip:101 at 172.16.0.10:5060",
    len = 31}, req_uri = {s = 0x7f21ba5f6536 "sip:101 at 192.168.0.188:61763", len = 35}, tag = {{s = 0x7f21baf93b28 "as78240722e3378-5c07-7", len = 10}, {s = 0x0, len = 0}}, cseq = {{s = 0x7f21bceeef70 "102", len = 3}, {s = 0x0, len = 0}}, route_set = {{
      s = 0x7f21c14a4ed0 "log", len = 0}, {s = 0x0, len = 0}}, contact = {{s = 0x7f21bd38eba8 "sip:0123456789 at 172.16.0.137:50601\300\300\300\300", len = 31}, {s = 0x0, len = 0}}, bind_addr = {0x7f21dc8d32f8, 0x0}, cbs = {first = 0x0, types = 0}, profile_links = 0x0,
  vars = 0x7f21c07a75e0, ka_src_counter = 0, ka_dst_counter = 0}
```

(gdb) list
```
750                     return -1;
751
752             VAL_TYPE(values) = VAL_TYPE(values+1) = DB1_INT;
753             VAL_TYPE(values+2) = VAL_TYPE(values+3) = DB1_STR;
754             VAL_NULL(values) = VAL_NULL(values+1) = VAL_NULL(values+2) = VAL_NULL(values+3) = 0;
755             SET_STR_VALUE(values+2, var->key);
756
757             VAL_INT(values)                 = cell->h_entry;
758             VAL_INT(values+1)               = cell->h_id;
759
```

(gdb) info locals
```
values = {{type = DB1_INT, nul = 0, free = 23704, val = {int_val = 377, ll_val = 140720308486521, double_val = 6.9525070095372445e-310, time_val = 140720308486521, string_val = 0x7ffc00000179 <Address 0x7ffc00000179 out of bounds>, str_val = {
        s = 0x7ffc00000179 <Address 0x7ffc00000179 out of bounds>, len = -1203115993}, blob_val = {s = 0x7ffc00000179 <Address 0x7ffc00000179 out of bounds>, len = -1203115993}, bitmap_val = 377, uint_val = 377, ull_val = 140720308486521}}, {type = DB1_INT, nul = 0,
    free = -1200953360, val = {int_val = 73, ll_val = 73, double_val = 3.6066792146410998e-322, time_val = 73, string_val = 0x49 <Address 0x49 out of bounds>, str_val = {s = 0x49 <Address 0x49 out of bounds>, len = -781883964}, blob_val = {s = 0x49 <Address 0x49 out of bounds>,
        len = -781883964}, bitmap_val = 73, uint_val = 73, ull_val = 73}}, {type = DB1_STR, nul = 0, free = -589763112, val = {int_val = -1124696256, ll_val = 139782880919360, double_val = 6.9061919338973657e-310, time_val = 139782880919360,
      string_val = 0x7f21bcf67f40 "cfg_version", str_val = {s = 0x7f21bcf67f40 "cfg_version", len = 11}, blob_val = {s = 0x7f21bcf67f40 "cfg_version", len = 11}, bitmap_val = 3170271040, uint_val = 3170271040, ull_val = 139782880919360}}, {type = DB1_STR, nul = 0, free = 60,
    val = {int_val = -1147503824, ll_val = 139782858111792, double_val = 6.9061908070537843e-310, time_val = 139782858111792, string_val = 0x7f21bb9a7b30 "I", str_val = {s = 0x7f21bb9a7b30 "I", len = 8}, blob_val = {s = 0x7f21bb9a7b30 "I", len = 8}, bitmap_val = 3147463472,
      uint_val = 3147463472, ull_val = 139782858111792}}}
insert_keys = {0x7f21b5f72a10 <vars_h_entry_column>, 0x7f21b5f72a00 <vars_h_id_column>, 0x7f21b5f72a20 <vars_key_column>, 0x7f21b5f72a30 <vars_value_column>}
__FUNCTION__ = "update_dialog_vars_dbinfo"
```

(gdb) frame 0
```
#0  0x00007f21b5cdb42d in update_dialog_vars_dbinfo (cell=0x7f21ba5f6348, var=0x7574617473706973) at dlg_db_handler.c:755
755             SET_STR_VALUE(values+2, var->key);
```
(gdb) p *cell->vars
```
$1 = {key = {s = 0x7f21bb24a6a8 "activeExt", len = 9}, value = {s = 0x7f21bd46e928 "101", len = 11}, vflags = 0, next = 0x7f21ba644a58}
```
(gdb) p *cell->vars->next
```
$2 = {key = {s = 0x7f21bb597a40 "log", len = 3}, value = {s = 0x7f21bb639cb0 "1", len = 1}, vflags = 0, next = 0x7f21bcf42548}
```

Seems that this it's a local problem, I have another server that is using the same version on the same OS but there I don't have such issues.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2494#issuecomment-705498441
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20201008/1ff62e5b/attachment.htm>


More information about the sr-dev mailing list