root@sip-thor-node-01:/cores# gdb opensips ./core.1572418083.opensips.159360878712049
GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 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".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from opensips...Reading symbols from /usr/lib/debug/.build-id/1f/12fcb5d7f1f6198994ac0e616d1d4a544bf197a3/6719543eef871349aff45075a054c10c36e63a.debug...done.
done.
[New LWP 157248083]
[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/opensips -w /run/opensips -P opensips.pid -a Q_MALLOC_DBG -m 1536'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007fdb58b1ce2c in list_remove (list=0x5581c6e9d010strng=..., strng=...list=0x557f8ff70010) at ../pua/uri_list.h:77
77 ../pua/uri_list.h: No such file or directory.
(gdb) set pagination off
(gdb) bt full
#0 0x00007fdb58b1ce2c in list_remove (list=0x5581c6e9d010strng=..., strng=...list=0x557f8ff70010) at ../pua/uri_list.h:77
cmp = -1
p = 0x5581c6e9d010
cmp = <optimized out>
p = <optimized out>7f8ff70010
__FUNCTION__ = "list_remove"
p = <optimized out>#1 0x00007f3f98caf9df in resource_subscriptions (subs=0x557f90241870, rl_node=0x557f9015dcb0) at subscribe.c:918
q = <optimized out>
#1 resource_subscriptions (subs=subs@entry=0x5581c716ef3s = {id = {s = 0x557f901632f0 "VSwQJg.rD-wAhDgPtkbNnptSe.z.CQT9;CekGX0xQSeIkisYnAEtPsb5J7Htn3RnK;4c1b-9a0702696044f854e59e7d7bc60c88b5", len = 103}, pres_uri = 0x7ffe0f1a5260, to_uri = {s = 0x0, len = 0}, watcher_uri = 0x7ffe0f1a5da0, contact = 0x7f3f98cc64a0 <contact>, remote_target = 0x0, outbound_proxy = 0x0, rl_node=<optimized out>) at subscribe.c:918event = 1, extra_headers = 0x7f3f98cc5fc0 <ehdr>,
s = {id = {s = 0x5581c708e380 "n4KaRtEapKP.kh1SSSTfymywpPtgjame;ngF703TwBybK8xegJ-B6yH7qosHAZt8g;4c1b-51c9a7eaba96601f499607c0f48ba3c5", len = 103}, pres_uri = 0x7ffecbe08eb0, to_uri = {s = 0x0, len = 0}, watcher_uri = 0x7ffecbe09d20, contact = 0x7fdb58b32420 <contact>, remote_target = 0x0, outbound_proxy = 0x0, event = 1, extra_headers = 0x7fdb58b31f50 <ehdr>, expires = 557 expires = 550, source_flag = 512, internal_update_flag = 0, flag = 0, cb_param = 0x0}
wuri = {s = 0x5581c70164c7f900ef320 "sip:tijmen@ag-projects.com", len = 26}
did_str = {s = 0x5581c708e380 "n4KaRtEapKP.kh1SSSTfymywpPtgjame;ngF703TwBybK8xegJ-B6yH7qosHAZt8g7f901632f0 "VSwQJg.rD-wAhDgPtkbNnptSe.z.CQT9;CekGX0xQSeIkisYnAEtPsb5J7Htn3RnK;4c1b-51c9a7eaba96601f499607c0f48ba3c5"9a0702696044f854e59e7d7bc60c88b5", len = 103}
tmp_str = 0x5581c6f5d7e07f900a1e70
cont_no = 6059
ehdr = {s = 0x7fdb58b2c1d03f98cbebd8 "Supported: eventlist\r\nAccept: application/pidf+xml, application/rlmi+xml, application/watcherinfo+xml, multipart/related, application/xcap-diff+xml\r\n", len = 149}
rls_contact_list = 0x5581c70a74407f90126b70
rls_subs_list = 0x5581c6e9d0107f8ff70010
params = {0x7ffecbe09d400f1a5dc0, 0x7ffecbe09d10}0f1a5d88}
__FUNCTION__ = "resource_subscriptions"
#2 0x00007fdb58b15f0c3f98ca91dd in update_subs (subs=0x5581c716ef37f90241870) at rls.c:841
doc = 0x5581c70c03707f90193090
service_node = 0x5581c70903c07f9015dcb0
doc = <optimized out>__FUNCTION__ = "update_subs"
service_node = <optimized out>#3 0x00007f3f98ca983c in mi_update_subscriptions (params=0x7ffe0f1a62f0, async_hdl=0x0) at rls.c:911
__FUNCTION__ = "update_subs"parsed_uri = {user = {s = 0x557f900a88d4 "tijmen@ag-projects.com", len = 6}, passwd = {s = 0x0, len = 0}, host = {s = 0x557f900a88db "ag-projects.com", len = 15}, port = {s = 0x0, len = 0}, params = {s = 0x0, len = 0}, headers = {s = 0x0, len = 0}, port_no = 0, proto = 0, type = SIP_URI_T, transport = {s = 0x0, len = 0}, ttl = {s = 0x0, len = 0}, user_param = {
#3 mi_update_subscriptions (params=<optimized out> 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}, pn_provider = {s = 0x0, len = 0}, pn_prid = {s = 0x0, len = 0}, pn_param = {s = 0x0, len = 0}, pn_purr = {s = 0x0, len = 0}, transport_val = {s = 0x0, len = 0}, ttl_val = {s = 0x0, async_hdl=<optimized out>) at rls.c:911len = 0}, user_param_val = {
parsed_uri = {user = {s = 0x5581c70c53d4 "tijmen@ag-projects.com", len = 6}, passwd = {s = 0x0, len = 0}, host = {s = 0x5581c70c53db "ag-projects.com", len = 15}, port = {s = 0x0, len = 0}, params = {s = 0x0, len = 0}, headers = {s = 0x0, len = 0}, port_no = 0, proto = 0, type = SIP_URI_T, 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}, pn_provider = {s = 0x0, len = 0}, pn_prid = {s = 0x0, len = 0}, pn_param = {s = 0x0, len = 0}, pn_purr = {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}, pn_provider_val = {s = 0x0, len = 0}, pn_prid_val = {s = 0x0, len = 0}, pn_param_val = {s = 0x0, len = 0}, pn_purr_val = {s = 0x0, len = 0}, u_name = {{s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}}, u_val = {{s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, 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}, pn_provider_val = {s = 0x0, len = 0}, pn_prid_val = {s = 0x0, len = 0}, pn_param_val = {s = 0x0, len = 0}, pn_purr_val = {s = 0x0, len = 0}, u_name = {{s = 0x0, len = 0}, {s = 0x0, len = 0}, {
s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}}, u_val = {{s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0, len = 0}, {s = 0x0,
len = 0}}, u_params_no = 0}
uri = {s = 0x5581c70c537f900a88d0 "sip:tijmen@ag-projects.com", len = 26}
i = 0
subs = 0x7fdb5db65eb03f9db320c8
subs_copy = 0x5581c716ef307f90241870
__FUNCTION__ = "mi_update_subscriptions"
#4 0x00005581c642eb27f8f0c0e60 in handle_mi_request (req=req@entryreq=0x7ffecbe0a3400f1a6380, cmd=cmd@entry=0x5581c70d90307f901b01d0, async_hdl=async_hdl@entry=0x0) at mi/mi.c:407
resp = <optimized out>0x5000000a2a
cmd_recipe = 0x7fdb58b31123f98cc57a0 <mi_cmds+32>
cmd_params = {item = 0x5581c70cb3f07f9019e110, list = 0x7fdb58b31123f98cc57a8 <mi_cmds+40>}
is_ambiguous = 0
pos_params = <optimized out>32
__FUNCTION__ = "handle_mi_request"
#5 0x00007fdbbccabe6b3f9c80ccb8 in mi_datagram_server (rx_sock=234, tx_sock=235) at datagram_fnc.c:512
ret = <optimized out>116
req_methoparse_end = 0x5581c707e480 "rls_update_subscriptions"0
request = {req_obj = 0x5581c702d330, id = 0x5581c70c9640, req_method = 0x5581c70ca4b0, params = 0x5581c70cb3f0, invalid = 0}7f9016f520 "rls_update_subscriptions"
response = <optimized out>quest = {req_obj = 0x557f90101d70, id = 0x557f9019c360, method = 0x557f9019d1d0, params = 0x557f9019e110, invalid = 0}
response = 0x557f9019e110
async_hdl = 0x0
cmd = 0x5581c70d90307f901b01d0
print_buf = {s = 0x5581c718c5d7f9025ef10 "{\"params\": [\"sip:tijmen@ag-projects.com\"], \"jsonrpc\": \"2.0\", \"method\": \"rls_update_subscriptions\", \"id\": \"ede919febd0621fa\"}", len = 47}6}
__FUNCTION__ = "mi_datagram_server"
#6 0x00007fdbbccae2f03f9c80e7e3 in datagram_process (rank=<optimized out>0) at mi_datagram.c:332
__FUNCTION__ = "datagram_process"
#7 0x00005581c637f9e07f8f017f0a in start_module_procs () at sr_module.c:814
m = 0x5581c6ee59807f8ffb8930
n = 0
l = 0
x = <optimized out>0
__FUNCTION__ = "start_module_procs"
#8 0x00005581c62e16697f8f00e4dc in main_loop () at main.c:780
startup_done = 0x0chd_rank = 0
last_check = 0startup_done = 0x0
rc = <optimized out>last_check = 0
chd_rankrc = 0
startup_done = <optimized out>__FUNCTION__ = "main_loop"
last_check = <optimized out>#9 0x0000557f8f0119e3 in main (argc=9, argv=0x7ffe0f1a65f8) at main.c:1488
rc = <optimized out>cfg_log_stderr = 1
__FUNCTION__ = "main_loop"
#9 main (argc=<optimized out>, argv=<optimized out>) at main.c:1488c = -1
c = <optimized out>r = 0
r = 0tmp = 0x7ffe0f1a6e86 ""
tmp = 0x7ffecbe0be86 ""tmp_len = 253388280
tmp_len = <optimized out>port = 32766
port = <optimized out>proto = 253388360
proto = <optimized out>s_no = 3
protos_no = <optimized out>options = 0x557f8f136bb8 "f:cCm:M:b:l:n:N:rRvdDFEVhw:t:u:g:p:P:G:W:o:a:k:s:"
options = 0x5581c6494a30 "f:cCm:M:b:l:n:N:rRvdDFEVhw:t:u:g:p:P:G:W:o:a:k:s:"ret = -1
seed = 17787976072771897859
rfd = <optimized out>3
__FUNCTION__ = "main"