We tried it, but it still crashes. This time:
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <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".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/kamailio...Reading symbols from /usr/lib/debug/.build-id/81/2f0de7537c5e5ef4c282e12de0c29ee7ea15f0.debug...done.
done.
[New LWP 11903]
warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/sbin/kamailio -f /etc/kamailio/kamailio.cfg -P /var/run/kamailio/kamailio.'.
Program terminated with signal 11, Segmentation fault.
#0 free_urecord (_r=0x2050b70) at urecord.c:94
94 urecord.c: No such file or directory.
(gdb) bt
#0 free_urecord (_r=0x2050b70) at urecord.c:94
#1 0x00007fa5861ebb33 in usrloc_get_all_ucontact (node=node@entry=0x7fa58251b990) at usrloc_sync.c:214
#2 0x00007fa5861eceb6 in usrloc_dmq_handle_msg (msg=<optimized out>, resp=0x7ffd3312d4e0, node=0x7fa58251b990) at usrloc_sync.c:398
#3 0x00007fa58641110b in worker_loop (id=id@entry=0) at worker.c:105
#4 0x00007fa5863f81e8 in child_init (rank=<optimized out>) at dmq.c:293
#5 child_init (rank=<optimized out>) at dmq.c:279
#6 0x000000000056d4f8 in init_mod_child (m=0x7fa58ab84f20, rank=rank@entry=0) at sr_module.c:915
#7 0x000000000056d442 in init_mod_child (m=0x7fa58ab85418, rank=rank@entry=0) at sr_module.c:912
#8 0x000000000056e91b in init_child (rank=rank@entry=0) at sr_module.c:941
#9 0x00000000004aa78c in main_loop () at main.c:1650
#10 0x0000000000427292 in main (argc=<optimized out>, argv=<optimized out>) at main.c:2547
(gdb) bt full
#0 free_urecord (_r=0x2050b70) at urecord.c:94
ptr = 0x3
__FUNCTION__ = "free_urecord"
#1 0x00007fa5861ebb33 in usrloc_get_all_ucontact (node=node@entry=0x7fa58251b990) at usrloc_sync.c:214
rval = <optimized out>
len = <optimized out>
buf = 0x7fa58aba7400
cp = 0x7fa58aba747d
ruid = {s = 0x7fa58aba7462 "uloc-559b8fc0-3fa8-20b9", len = 23}
aorhash = <optimized out>
send_sock = <optimized out>
flags = <optimized out>
aor = {s = 0x0, len = 0}
r = 0x2050b70
_d = 0x7fa58247b498
ptr = 0x0
res = <optimized out>
__FUNCTION__ = "usrloc_get_all_ucontact"
#2 0x00007fa5861eceb6 in usrloc_dmq_handle_msg (msg=<optimized out>, resp=0x7ffd3312d4e0, node=0x7fa58251b990) at usrloc_sync.c:398
content_length = <optimized out>
body = <optimized out>
jdoc = {root = 0x2050b20, flags = 0, buf = {s = 0x7fa582526a85 "{\"action\":3}", len = 12}, malloc_fn = 0x7fa58afa2a00 <malloc>, free_fn = 0x7fa58afa2920 <free>}
it = <optimized out>
ci = {ruid = {s = 0x0, len = 0}, c = 0x7ffd3312d3b0, received = {s = 0x0, len = 0}, path = 0x7ffd3312d3c0, expires = 0, q = 0, callid = 0x7ffd3312d3d0, cseq = 0,
flags = 2, cflags = 0, user_agent = 0x7ffd3312d3e0, sock = 0x0, methods = 0, instance = {s = 0x0, len = 0}, reg_id = 0, server_id = 0, tcpconn_id = -1, keepalive = 0,
xavp = 0x0, last_modified = 0}
action = <optimized out>
expires = <optimized out>
cseq = <optimized out>
flags = <optimized out>
cflags = <optimized out>
q = <optimized out>
last_modified = <optimized out>
methods = <optimized out>
reg_id = <optimized out>
aor = {s = <optimized out>, len = 0}
ruid = <optimized out>
c = {s = 0x0, len = 0}
received = <optimized out>
path = {s = 0x0, len = 0}
callid = {s = 0x0, len = 0}
user_agent = {s = 0x0, len = 0}
instance = <optimized out>
__FUNCTION__ = "usrloc_dmq_handle_msg"
#3 0x00007fa58641110b in worker_loop (id=id@entry=0) at worker.c:105
worker = 0x7fa58251b7d8
current_job = 0x7fa582527270
peer_response = {resp_code = 0, content_type = {s = 0x0, len = 0}, reason = {s = 0x0, len = 0}, body = {s = 0x0, len = 0}}
ret_value = <optimized out>
not_parsed = 0
dmq_node = 0x7fa58251b990
__FUNCTION__ = "worker_loop"
#4 0x00007fa5863f81e8 in child_init (rank=<optimized out>) at dmq.c:293
i = <optimized out>
newpid = <optimized out>
#5 child_init (rank=<optimized out>) at dmq.c:279
No locals.
#6 0x000000000056d4f8 in init_mod_child (m=0x7fa58ab84f20, rank=rank@entry=0) at sr_module.c:915
__FUNCTION__ = "init_mod_child"
#7 0x000000000056d442 in init_mod_child (m=0x7fa58ab85418, rank=rank@entry=0) at sr_module.c:912
__FUNCTION__ = "init_mod_child"
#8 0x000000000056e91b in init_child (rank=rank@entry=0) at sr_module.c:941
No locals.
#9 0x00000000004aa78c in main_loop () at main.c:1650
i = <optimized out>
pid = <optimized out>
si = <optimized out>
si_desc = "udp receiver child=3 sock=217.116.120.39:5060\000\000\000\f\b\000\000\000\000\000\000 9l\000\000\000\000\000\003\000\000\000\000\000\000\000(\245!\202\245\177\000\000\001\000\000\000\000\000\000\000\000\322\266\217\037\372 <\004\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\250\222\241\000\000\000\000\000\240\222\241\000\000\000\000"
nrprocs = <optimized out>
__FUNCTION__ = "main_loop"
#10 0x0000000000427292 in main (argc=<optimized out>, argv=<optimized out>) at main.c:2547
cfg_stream = <optimized out>
c = <optimized out>
r = <optimized out>
tmp = 0x7ffd3312fcca ""
tmp_len = 0
port = 1
proto = 1
options = 0x6baf50 ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:"
ret = -1
seed = 1431985423
rfd = 4
debug_save = <optimized out>
debug_flag = <optimized out>
dont_fork_cnt = <optimized out>
n_lst = 0x0
p = <optimized out>
st = {st_dev = 14, st_ino = 30859, st_nlink = 2, st_mode = 16877, st_uid = 109, st_gid = 301, __pad0 = 0, st_rdev = 0, st_size = 60, st_blksize = 4096, st_blocks = 0,
st_atim = {tv_sec = 1444903317, tv_nsec = 438957686}, st_mtim = {tv_sec = 1445519056, tv_nsec = 19559617}, st_ctim = {tv_sec = 1445607933, tv_nsec = 740608953},
__unused = {0, 0, 0}}
__FUNCTION__ = "main"
Does that help?
—
Reply to this email directly or view it on GitHub.