gdb /usr/sbin/opensips /tmp/core GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git Copyright (C) 2021 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later 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: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/sbin/opensips... Reading symbols from /usr/lib/debug/.build-id/68/43b0716a68e5fab40b5fba966d9bce8d0e224f.debug... warning: Can't open file /dev/zero (deleted) during file-backed mapping note processing [New LWP 10586] [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 -P /run/opensips/opensips.pid -f /etc/opensips/opensips.cfg'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x0000559ddc5502a0 in memcpy (__len=64, __src=0xaf000001ff, __dest=0x7ffd97072be8) at /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34 34 return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest)); (gdb) bt full #0 0x0000559ddc5502a0 in memcpy (__len=64, __src=0xaf000001ff, __dest=0x7ffd97072be8) at /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34 No locals. #1 MD5_memcpy (len=64, input=0xaf000001ff , output=0x7ffd97072be8 "\240-\a\227\375\177") at md5.c:329 No locals. #2 MD5Update (context=0x7ffd97072bd0, input=0xaf000001ff , inputLen=127) at md5.c:152 i = index = 0 partLen = 64 #3 0x00007f67bad9a788 in digest_calc_HA1 (crd=0x7ffd97072d60, sess_key=0x7ffd97072de0) at dauth_calc_md5.c:48 Md5Ctx = {state = {1732584193, 4023233417, 2562383102, 271733878}, count = {1016, 0}, buffer = "\240-\a\227\375\177\000\000(-\a\227\375\177\000\000\000\305L\321\027`\200P\220-\a\227\375\177\000\000\200\355\003\277g\177\000\000(-\a\227\375\177\000\000\310\344\003\277g\177\000\000(-\a\227\375\177\000"} HA1 = "(-\a\227\375\177\000\000z\247\244\272g\177\000" #4 0x00007f67bad9476d in auth_calc_HA1 (params=0x7ffd97072d40, sess_key=0x7ffd97072de0) at api.c:341 digest_calc = 0x7f67bada2800 __FUNCTION__ = "auth_calc_HA1" #5 0x00007f67baa8e936 in get_ha1 (res=0x7ffd97072d28, _ha1=0x7ffd97072de0, _table=, _domain=0x7ffd97072f88, digest=0x7f67bf040f58) at authorize.c:169 cprms = {use_hashed = 0, alg = ALG_MD5, creds = {open = 0x7ffd97072d60, ha1 = 0x7ffd97072d60}, nonce = 0x7f67bf040f98, cnonce = 0x7f67bf040fe0} vals = {{type = DB_STR, nul = 0, free = 0, val = {int_val = -594864196, bigint_val = 94136498329532, double_val = 4.6509609844413654e-310, time_val = 94136498329532, string_val = 0x559ddc8b17bc "1122334455\",realm=\"sip1.mydomain.com\",nonce=\"KprTqedqhYxO7vVNGoDdw6U2mvUQ1v6Jd7liqtOCO94A\",uri=\"sip:sip1.mydomain.com;transport=UDP\",response=\"46f25ec4472d495ed41f46677a1eb647\",algorithm=MD5"..., str_val = { s = 0x559ddc8b17bc "1122334455\",realm=\"sip1.mydomain.com\",nonce=\"KprTqedqhYxO7vVNGoDdw6U2mvUQ1v6Jd7liqtOCO94A\",uri=\"sip:sip1.mydomain.com;transport=UDP\",response=\"46f25ec4472d495ed41f46677a1eb647\",algorithm=MD5"..., len = 10}, blob_val = { s = 0x559ddc8b17bc "1122334455\",realm=\"sip1.mydomain.com\",nonce=\"KprTqedqhYxO7vVNGoDdw6U2mvUQ1v6Jd7liqtOCO94A\",uri=\"sip:sip1.mydomain.com;transport=UDP\",response=\"46f25ec4472d495ed41f46677a1eb647\",algorithm=MD5"..., len = 10}, bitmap_val = 3700103100}}, {type = DB_STR, nul = 0, free = -1090263712, val = {int_val = -594864527, bigint_val = 94136498329201, double_val = 4.6509609844250118e-310, time_val = 94136498329201, string_val = 0x559ddc8b1671 "sip.mydomain.com;transport=UDP>\r\nFrom: ;tag=d8764410\r\nCall-ID: -FA8PkmxtQqapKgH2PFRNA..\r\nCSeq: 686 REGISTER\r\nExpires: 3600\r\nAllow: INVITE, AC"..., str_val = { s = 0x559ddc8b1671 "sip.mydomain.com;transport=UDP>\r\nFrom: ;tag=d8764410\r\nCall-ID: -FA8PkmxtQqapKgH2PFRNA..\r\nCSeq: 686 REGISTER\r\nExpires: 3600\r\nAllow: INVITE, AC"..., len = 22}, blob_val = { s = 0x559ddc8b1671 "sip.mydomain.com;transport=UDP>\r\nFrom: ;tag=d8764410\r\nCall-ID: -FA8PkmxtQqapKgH2PFRNA..\r\nCSeq: 686 REGISTER\r\nExpires: 3600\r\nAllow: INVITE, AC"..., len = 22}, bitmap_val = 3700102769}}} col = 0x7ffd97072d40 n = 1 cred = keys = {0x7f67baa94140 , 0x7f67baa94130 } result = {s = 0x7f67bf041a10 "williamj@123", len = 12} _username = 0x7f67bf040f58 nc = e0 = cred = keys = {, } vals = {{type = , nul = , free = , val = {int_val = , bigint_val = , double_val = , time_val = , string_val = , str_val = {s = , len = }, blob_val = {s = , len = }, bitmap_val = }}, {type = , nul = , free = , val = {int_val = , bigint_val = , double_val = , time_val = , string_val = , str_val = { s = , len = }, blob_val = {s = , len = }, bitmap_val = }}} col = result = {s = , len = } _username = n = nc = __FUNCTION__ = "get_ha1" e0 = e1 = cprms = {use_hashed = , alg = , creds = {open = , ha1 = }, nonce = , cnonce = } #6 authorize (_m=0x7f67bf03f400, domain=0x7ffd97072f88, table=, _hftype=) at authorize.c:270 ha1 = {MD5 = "0.\a\227\375\177\000\000\267\371\240\272g\177\000\000`\350\003\277g\177\000\000(\000\000\000\002\000\000\000", --Type for more, q to quit, c to continue without paging-- SHA256 = "0.\a\227\375\177\000\000\267\371\240\272g\177\000\000`\350\003\277g\177\000\000(\000\000\000\002", '\000' , "`\345\003\277g\177", '\000' , "\364\003\277g\177\000\000\070", SHA512t256 = "0.\a\227\375\177\000\000\267\371\240\272g\177\000\000`\350\003\277g\177\000\000(\000\000\000\002", '\000' , "`\345\003\277g\177", '\000' , "\364\003\277g\177\000\000\070", _start = 0x7ffd97072de0 "0.\a\227\375\177"} res = h = 0x7f67bf040830 cred = 0x7f67bf040f50 msg_body = {s = 0x7ffd0000006a , len = -1163852708} ret = result = 0x7f67bf042240 __FUNCTION__ = "authorize" #7 0x0000559ddc522ff5 in do_action (a=0x7f67bef0db90, msg=0x7f67bf03f400) at action.c:961 ret = 0 v = i = len = cmatch = aitem = adefault = spec = val = {rs = {s = 0x7ffd97073120 "P1\224\272g\177", len = -597293469}, ri = -1761136768, flags = 32765} start = {tv_sec = 1, tv_usec = 5800741975465182464} end_time = cmd = 0x7f67baa943e0 acmd = cmdp = {0x7ffd97072f88, 0x7ffd97072fa0, 0x7f67bf041728, 0x2, 0x7ffd97073120, 0x7f67baa50664 , 0x1, 0x559ddcc50670} tmp_vals = {{rs = {s = 0x7ffd97072f90 "\026", len = -1090252704}, ri = -1761136704, flags = 32765}, {rs = { s = 0x559ddc8b1671 "sip.mydomain.com;transport=UDP>\r\nFrom: ;tag=d8764410\r\nCall-ID: -FA8PkmxtQqapKgH2PFRNA..\r\nCSeq: 686 REGISTER\r\nExpires: 3600\r\nAllow: INVITE, AC"..., len = 22}, ri = -783497984, flags = 1350590487}, {rs = {s = 0x7f67bef0dae0 "subscriber", len = 10}, ri = -1090250968, flags = 32615}, {rs = {s = 0x7f67bf03efb0 "`1\224\272g\177", len = -1761136376}, ri = 2, flags = 0}, {rs = {s = 0x7ffd97073120 "P1\224\272g\177", len = -1163587264}, ri = -1761136376, flags = 32765}, {rs = {s = 0x7ffd97073140 "\004", len = -1761136376}, ri = -783497984, flags = 1350590487}, {rs = { s = 0x7ffd97073120 "P1\224\272g\177", len = -1090261072}, ri = -1761136376, flags = 32765}, {rs = {s = 0x50806017d14cc500 , len = -1090250968}, ri = -1090250872, flags = 32615}} sval = {s = 0x7ffd97072ef8 "c\006fܝU", len = 1} __FUNCTION__ = "do_action" #8 0x0000559ddc524ec0 in run_action_list (a=, msg=msg@entry=0x7f67bf03f400) at action.c:181 ret = -1 t = 0x7f67bef0db90 #9 0x0000559ddc594a64 in eval_elem (val=0x0, msg=0x7f67bf03f400, e=0x7f67bef0dcb8) at route.c:613 ret = -5 ival = i = lval = {rs = {s = 0x0, len = -1090250968}, ri = 0, flags = 0} rval = {rs = {s = 0x7f67ba943150 "\376\f\224\272g\177", len = -1164693200}, ri = -1164693184, flags = 32615} p = n = error = ret = ival = lval = {rs = {s = , len = }, ri = , flags = } rval = {rs = {s = , len = }, ri = , flags = } p = i = n = __FUNCTION__ = "eval_elem" error = #10 eval_expr (e=0x7f67bef0dcb8, msg=0x7f67bf03f400, val=0x0) at route.c:937 --Type for more, q to quit, c to continue without paging-- rec_lev = 2 ret = __FUNCTION__ = "eval_expr" #11 0x0000559ddc5945a9 in eval_expr (e=0x7f67bef0dd20, msg=msg@entry=0x7f67bf03f400, val=val@entry=0x0) at route.c:953 rec_lev = 2 ret = __FUNCTION__ = "eval_expr" #12 0x0000559ddc5231c7 in do_action (a=0x7f67bef0e138, msg=0x7f67bf03f400) at action.c:725 ret = -5 v = i = len = cmatch = aitem = adefault = spec = val = {rs = {s = 0x7f67bad8f130 "\001", len = 0}, ri = -1090259968, flags = 32615} start = {tv_sec = 140727137284872, tv_usec = 140727137284896} end_time = cmd = acmd = cmdp = {0x7f67bad8f120 , 0x559ddc52300f , 0x7ffd970733e0, 0x50806017d14cc500, 0x7f67bf46ab80 , 0x2, 0x2, 0xffffffffffffffb0} tmp_vals = {{rs = {s = 0x559ddcc4cc34 "\235U", len = 6379}, ri = -591085376, flags = 21917}, {rs = {s = 0x7f67bf483f7b "H\213L$\030dH+\f%(", len = 16}, ri = -1761135632, flags = 32765}, {rs = { s = 0x7ffd970733b0 "", len = -783497984}, ri = 0, flags = 4}, {rs = {s = 0x50806017d14cc500 , len = -1761135656}, ri = -1091817680, flags = 32615}, {rs = { s = 0x7f67bf03f400 "\001", len = -596110528}, ri = -1090259968, flags = 32615}, {rs = {s = 0x7f67bf03f400 "\001", len = 0}, ri = -598585664, flags = 21917}, {rs = {s = 0x7f67beec2b90 "\a", len = -1167019232}, ri = -1091817384, flags = 32615}, {rs = {s = 0x2 , len = 0}, ri = -598128028, flags = 21917}} sval = { s = 0x559ddc8b1600 "68\r\nContact: \r\nTo: \r\nFrom: , msg=0x7f67bf03f400) at action.c:181 ret = -1 t = 0x7f67bef0e138 #14 0x0000559ddc524f57 in run_actions (a=, msg=) at action.c:128 ret = has_name = top_route = {s = , len = } __FUNCTION__ = "run_actions" error = #15 0x0000559ddc524489 in do_action (a=0x7f67beec3730, msg=0x7f67bf03f400) at action.c:716 ret = -5 v = i = 1 len = cmatch = aitem = adefault = spec = val = {rs = {s = 0x7f67bf03f348 "redis-staging-2.zsjraq.0001.apse2.cache.amazonaws.com", len = -1090260152}, ri = -591082208, flags = 21917} start = {tv_sec = 140083561501944, tv_usec = 2} end_time = cmd = acmd = cmdp = {0x7f67bf03f2c8, 0x559ddcc4bfc0, 0x559ddc7768a8 , 0x50806017d14cc500, 0x559ddc77e8f0 , 0x7f67beec2b90, 0x7f67bf03f400, 0x559ddc781340 <_oser_err_info>} tmp_vals = {{rs = {s = 0x7f67bf03f400 "\001", len = -1090259968}, ri = 0, flags = 0}, {rs = {s = 0x559ddc524ec0 "\205\300u\a\203\r\345\265%", len = 3}, ri = 0, flags = 0}, {rs = {s = 0x7f67beec2cb8 "\002", --Type for more, q to quit, c to continue without paging-- len = 2}, ri = 0, flags = 0}, {rs = {s = 0x559ddc594a64 "\211\302\351;\376\377\377\017\037D", len = -1090261768}, ri = -783497984, flags = 1350590487}, {rs = {s = 0x7f67beec01a5 "", len = -1090260656}, ri = -1091077608, flags = 32615}, {rs = {s = 0x4 , len = 3}, ri = -1090261832, flags = 32615}, {rs = {s = 0x7f67bf03f150 "h\361\003\277g\177", len = -597222637}, ri = -596121360, flags = 21917}, {rs = {s = 0x50806017d14cc500 , len = -1091829376}, ri = 5, flags = 0}} sval = {s = 0x559ddc6ad048 "unknown", len = 7} __FUNCTION__ = "do_action" #16 0x0000559ddc524ec0 in run_action_list (a=, msg=msg@entry=0x7f67bf03f400) at action.c:181 ret = -1 t = 0x7f67beec3730 #17 0x0000559ddc524918 in do_action (a=0x7f67beec3858, msg=0x7f67bf03f400) at action.c:743 ret = 1 v = 1 i = len = cmatch = aitem = adefault = spec = val = {rs = {s = 0x7f67bf03fdd8 "\001", len = -597456913}, ri = -591081344, flags = 21917} start = {tv_sec = 12, tv_usec = 5800741975465182464} end_time = cmd = acmd = cmdp = {0x559ddc77e8f0 , 0x0, 0x7f67beeb77a0, 0x50806017d14cc500, 0x559ddc8b1717 , 0x559ddc8b18bf , 0x559ddc8b170e , 0x559ddc604c76 } tmp_vals = {{rs = {s = 0x7f67beeb7ed0 "\340\273xܝU", len = -783497984}, ri = -594863937, flags = 21917}, {rs = {s = 0x7f67bf040920 "\r", len = -594863937}, ri = -594863942, flags = 21917}, {rs = { s = 0xd , len = -597718863}, ri = -596874889, flags = 21917}, {rs = {s = 0x7f67ba68aa9f "A\211ą\300u*H\213D$\bdH+\004%(", len = -1761134192}, ri = -597832296, flags = 21917}, {rs = {s = 0x7f67beeb77a0 "\340\273xܝU", len = 0}, ri = -1091864672, flags = 32615}, {rs = {s = 0x50806017d14cc500 , len = -596874889}, ri = -783497984, flags = 1350590487}, {rs = {s = 0xffffffffffffffff , len = -594863939}, ri = -596831148, flags = 21917}, {rs = {s = 0x559ddc8b18bf "", len = -1090259968}, ri = -597716397, flags = 21917}} sval = {s = 0x559ddcc4ddc0 "", len = -594864736} __FUNCTION__ = "do_action" #18 0x0000559ddc524ec0 in run_action_list (a=a@entry=0x7f67beec0598, msg=msg@entry=0x7f67bf03f400) at action.c:181 ret = -1 t = 0x7f67beec3858 #19 0x0000559ddc525386 in run_actions (msg=0x7f67bf03f400, a=0x7f67beec0598) at action.c:128 ret = has_name = top_route = {s = , len = } error = ret = has_name = top_route = {s = , len = } __FUNCTION__ = "run_actions" error = #20 run_top_route (sr=..., msg=msg@entry=0x7f67bf03f400) at action.c:228 bk_action_flags = 0 ret = ctx = 0x0 __FUNCTION__ = "run_top_route" #21 0x0000559ddc588666 in receive_msg ( buf=0x559ddc8b1560 "REGISTER sip:sip.mydomain.com;transport=UDP SIP/2.0\r\nVia: SIP/2.0/UDP 192.168.20.19:59118;branch=z9hG4bK-524287-1---a95f9345c5ef3508;rport\r\nMax-Forwards: 68\r\nContact: , rcv_info=rcv_info@entry=0x7ffd97073a90, existing_context=existing_context@entry=0x0, msg_flags=msg_flags@entry=0) at receive.c:213 ctx = 0x7f67bf040998 msg = 0x7f67bf03f400 start = {tv_sec = 140083563066368, tv_usec = 94136501748400} rc = 3 --Type for more, q to quit, c to continue without paging-- old_route_type = tmp = in_buff = { s = 0x559ddc8b1560 "REGISTER sip:sip.mydomain.com;transport=UDP SIP/2.0\r\nVia: SIP/2.0/UDP 192.168.20.19:59118;branch=z9hG4bK-524287-1---a95f9345c5ef3508;rport\r\nMax-Forwards: 68\r\nContact: , bytes_read=) at net/proto_udp/proto_udp.c:186 ri = {src_ip = {af = 2, len = 4, u = {addrl = {140084625992156, 140083561496960}, addr32 = {4267633116, 32615, 3203137920, 32615}, addr16 = {59868, 65118, 32615, 0, 384, 48876, 32615, 0}, addr = "\334\351^\376g\177\000\000\200\001\354\276g\177\000"}}, dst_ip = {af = 2, len = 4, u = {addrl = {369844282, 0}, addr32 = {369844282, 0, 0, 0}, addr16 = {24634, 5643, 0, 0, 0, 0, 0, 0}, addr = ":`\v\026", '\000' }}, src_port = 59118, dst_port = 5060, proto = 1, proto_reserved1 = 0, proto_reserved2 = 0, src_su = {s = {sa_family = 2, sa_data = "\346\356\334\351^\376\000\000\000\000\000\000\000"}, sin = {sin_family = 2, sin_port = 61158, sin_addr = {s_addr = 4267633116}, sin_zero = "\000\000\000\000\000\000\000"}, sin6 = {sin6_family = 2, sin6_port = 61158, sin6_flowinfo = 4267633116, sin6_addr = {__in6_u = {__u6_addr8 = "\000\000\000\000\000\000\000\000Pz\375\276g\177\000", __u6_addr16 = {0, 0, 0, 0, 31312, 48893, 32615, 0}, __u6_addr32 = {0, 0, 3204282960, 32615}}}, sin6_scope_id = 0}}, bind_address = 0x7f67beebe740} len = buf = "REGISTER sip:sip.mydomain.com;transport=UDP SIP/2.0\r\nVia: SIP/2.0/UDP 192.168.20.19:59118;branch=z9hG4bK-524287-1---a95f9345c5ef3508;rport\r\nMax-Forwards: 68\r\nContact: fromlen = 16 p = msg = { s = 0x559ddc8b1560 "REGISTER sip:sip.mydomain.com;transport=UDP SIP/2.0\r\nVia: SIP/2.0/UDP 192.168.20.19:59118;branch=z9hG4bK-524287-1---a95f9345c5ef3508;rport\r\nMax-Forwards: 68\r\nContact: , t=, h=) at net/../io_wait_loop.h:305 ret = n = r = 0 i = e = ep_event = {events = 3698575686, data = {ptr = 0xdc77e8f000005500, fd = 21760, u32 = 21760, u64 = 15886422328062530816}} fd = curr_time = 3 error = __FUNCTION__ = "io_wait_loop_epoll" #25 0x0000559ddc694a65 in udp_start_processes (chd_rank=chd_rank@entry=0x559ddc781d88 , startup_done=startup_done@entry=0x0) at net/net_udp.c:497 si = p_id = i = 10 p = __FUNCTION__ = "udp_start_processes" error = #26 0x0000559ddc51fd70 in main_loop () at main.c:227 startup_done = 0x0 last_check = 0 rc = chd_rank = 11 startup_done = last_check = rc = __FUNCTION__ = "main_loop" error = #27 main (argc=, argv=) at main.c:916 --Type for more, q to quit, c to continue without paging-- cfg_log_stderr = 1 c = r = 0 tmp = 0x7ffd97075e78 "" tmp_len = port = proto = 8388608 protos_no = options = 0x559ddc6b6158 "f:cCm:M:b:l:n:N:rRvdDFEVhw:t:u:g:p:P:G:W:o:a:k:s:" ret = -1 seed = 241673773 rfd = __FUNCTION__ = "main" (gdb)