Hello,
here is the new bt full Kamailio 's crash but about km_val.c : db_mysql_val2str
#0 0x00000030f2230f30 in escape_string_for_mysql () from /usr/lib64/mysql/libmysqlclient.so.16
No symbol table info available.
#1 0x00000030f22269c1 in mysql_real_escape_string () from /usr/lib64/mysql/libmysqlclient.so.16
No symbol table info available.
#2 0x00007fde5dde8089 in db_mysql_val2str (_c=0x7fde5e210050, _v=0x7fde5aafef60, _s=0x2808bef "'A.B.C.D','','0987654321','0987654321','A.B.C.D')", _len=0x7fff488532e4) at km_val.c:79
l = 10
tmp = 1
old_s = 0x2808bee "''A.B.C.D','','0987654321','0987654321','A.B.C.D')"
__FUNCTION__ = "db_mysql_val2str"
#3 0x00007fde5d9be137 in db_print_values (_c=0x7fde5e210050,
_b=0x2808b0c "'INVITE','as687ade58','a94c095b773be1dd6e8d668a785a9c848e3dcf3f','0777009d3785a4075a4d79827601b154@domain','200','OK','2014-06-26 10:00:27','0123456789','0973011385@domain','domain"..., _l=65379, _v=0x7fde5aafee00, _n=15,
val2str=0x7fde5dde7c88 <db_mysql_val2str>) at db_ut.c:318
i = 11
l = 65153
len = 226
__FUNCTION__ = "db_print_values"
#4 0x00007fde5d9b7028 in db_do_insert_cmd (_h=0x7fde5e210050, _k=0x7fde5aafeb20, _v=0x7fde5aafee00, _n=15, val2str=0x7fde5dde7c88 <db_mysql_val2str>, submit_query=0x7fde5dddf092 <db_mysql_submit_query>, mode=0) at db_query.c:224
off = 156
ret = 10
__FUNCTION__ = "db_do_insert_cmd"
#5 0x00007fde5d9b73b9 in db_do_insert (_h=0x7fde5e210050, _k=0x7fde5aafeb20, _v=0x7fde5aafee00, _n=15, val2str=0x7fde5dde7c88 <db_mysql_val2str>, submit_query=0x7fde5dddf092 <db_mysql_submit_query>) at db_query.c:249
No locals.
#6 0x00007fde5dde1419 in db_mysql_insert (_h=0x7fde5e210050, _k=0x7fde5aafeb20, _v=0x7fde5aafee00, _n=15) at km_dbase.c:415
No locals.
#7 0x00007fde5a8e8783 in acc_db_request (rq=0x7fde529d7148) at acc.c:492
m = 15
n = 1386049864
i = 15
t = 0x414cc0
__FUNCTION__ = "acc_db_request"
#8 0x00007fde5a8f2bc8 in acc_onreply (t=0x7fde52905780, req=0x7fde529d7148, reply=0x7fde5e22bd70, code=200) at acc_logic.c:471
new_uri_bk = {s = 0x7fde529fa5c7 "sip:0987654321@GW SIP/2.0\r\nRecord-Route: <sip:A.B.C.D;lr=on>\r\nVia: SIP/2.0/UDP A.B.C.D;branch=z9hG4bK853d.4ce5cf98739172086bed0d898d48aa38.0\r\nVia: SIP/2.0/UDP A.B.C.D:5060;branch=z9hG4bK3d"..., len = 19}
br = 0
hdr = 0x7fde5a8f9c20
__FUNCTION__ = "acc_onreply"
#9 0x00007fde5a8f330a in tmcb_func (t=0x7fde52905780, type=512, ps=0x7fff48853650) at acc_logic.c:573
__FUNCTION__ = "tmcb_func"
#10 0x00007fde5caed478 in run_trans_callbacks_internal (cb_lst=0x7fde529057f0, type=512, trans=0x7fde52905780, params=0x7fff48853650) at t_hooks.c:290
cbp = 0x7fde51d50f70
backup_from = 0x934630
backup_to = 0x934638
backup_dom_from = 0x934640
backup_dom_to = 0x934648
backup_uri_from = 0x934620
backup_uri_to = 0x934628
backup_xavps = 0x934760
__FUNCTION__ = "run_trans_callbacks_internal"
#11 0x00007fde5caed68a in run_trans_callbacks_with_buf (type=512, rbuf=0x7fde52905840, req=0x7fde529d7148, repl=0x7fde5e22bd70, flags=200) at t_hooks.c:336
params = {req = 0x7fde529d7148, rpl = 0x7fde5e22bd70, param = 0x7fde51d50f80, code = 200, flags = 200, branch = 0, t_rbuf = 0x7fde52905840, dst = 0x7fde52905890, send_buf = {
s = 0x7fde4fc34b28 "SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP A.B.C.D:5060;branch=z9hG4bK3dbe6573;rport=5060\r\nCall-ID: 0777009d3785a4075a4d79827601b154@domain\r\nFrom: \"0123456789\" <sip:0123456789@domain>;ta"..., len = 924}}
trans = 0x7fde52905780
#12 0x00007fde5cb1fc06 in relay_reply (t=0x7fde52905780, p_msg=0x7fde5e22bd70, branch=0, msg_status=200, cancel_data=0x7fff488539b0, do_put_on_wait=1) at t_reply.c:2001
relay = 0
save_clone = 0
buf = 0x7fde5e2350d0 "SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP A.B.C.D:5060;branch=z9hG4bK3dbe6573;rport=5060\r\nCall-ID: 0777009d3785a4075a4d79827601b154@domain\r\nFrom: \"0123456789\" <sip:0123456789@domain>;ta"...
res_len = 924
relayed_code = 200
relayed_msg = 0x7fde5e22bd70
reply_bak = 0x7fff48853800
bm = {to_tag_val = {s = 0x7fde52906d18 "", len = 5449343}}
totag_retr = 0
reply_status = RPS_COMPLETED
uas_rb = 0x7fde52905840
to_tag = 0x0
reason = {s = 0x1488537b0 <Address 0x1488537b0 out of bounds>, len = 1}
onsend_params = {req = 0x200924a03, rpl = 0x7fde5cb3ff90, param = 0x414cc0, code = 1, flags = 0, branch = 0, t_rbuf = 0x7fde48591828, dst = 0x7fde5e22bf68, send_buf = {s = 0x488537d0 <Address 0x488537d0 out of bounds>, len = 1024}}
__FUNCTION__ = "relay_reply"qui
#13 0x00007fde5cb220b7 in reply_received (p_msg=0x7fde5e22bd70) at t_reply.c:2499
msg_status = 200
last_uac_status = 183
ack = 0x40 <Address 0x40 out of bounds>
ack_len = 0
branch = 0
reply_status = 1579339872
onreply_route = 1
cancel_data = {cancel_bitmap = 0, reason = {cause = 200, u = {text = {s = 0x0, len = 9586191}, e2e_cancel = 0x0, packed_hdrs = {s = 0x0, len = 9586191}}}}
uac = 0x7fde529058e8
t = 0x7fde52905780
lack_dst = {send_sock = 0x7fde5e234bf8, to = {s = {sa_family = 40976, sa_data = "\377]\336\177\000\000\310##\000\000\000\000"}, sin = {sin_family = 40976, sin_port = 24063, sin_addr = {s_addr = 32734}, sin_zero = "\310##\000\000\000\000"}, sin6 = {
sin6_family = 40976, sin6_port = 24063, sin6_flowinfo = 32734, sin6_addr = {__in6_u = {__u6_addr8 = "\310##\000\000\000\000\000\bP\026^\336\177\000", __u6_addr16 = {9160, 35, 0, 0, 20488, 24086, 32734, 0}, __u6_addr32 = {2302920, 0, 1578520584, 32734}}},
sin6_scope_id = 1577039928}}, id = 32734, proto = -24 '\350', send_flags = {f = 59 ';', blst_imask = 35 '#'}}
backup_user_from = 0x934630
backup_user_to = 0x934638
backup_domain_from = 0x934640
backup_domain_to = 0x934648
backup_uri_from = 0x934620
backup_uri_to = 0x934628
backup_xavps = 0x934760
replies_locked = 1
branch_ret = 0
prev_branch = 1216690800
blst_503_timeout = 32767
hf = 0x7fde5e22bd90
onsend_params = {req = 0x7fff48853a30, rpl = 0x550b94, param = 0x232288, code = 0, flags = 3, branch = 0, t_rbuf = 0x7fde5dffa380, dst = 0x7fde5e233bb8, send_buf = {s = 0x7fff48853a30 "`G\223", len = 5538037}}
ctx = {rec_lev = 0, run_flags = 0, last_retcode = 0, jmp_env = {{__jmpbuf = {140593038802792, -2282156308276021403, 4279488, 140734410080352, 0, 0, -2282156308296992923, 2281837801139107685}, __mask_was_saved = 0, __saved_mask = {__val = {140593037933136,
9586941, 9586263, 140734410078528, 140593038807136, 9587203, 9586197, 361695345073193192, 9586295, 9586274, 1579339824, 140593038807136, 140593037965344, 140593038802792, 4279488, 140734410080352}}}}}
__FUNCTION__ = "reply_received"
#14 0x000000000045d837 in do_forward_reply (msg=0x7fde5e22bd70, mode=0) at forward.c:777
new_buf = 0x0
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, 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'}}
new_len = 32734
r = 1
s = 0x4035e22bd78 <Address 0x4035e22bd78 out of bounds>
len = 0
__FUNCTION__ = "do_forward_reply"
#15 0x000000000045e0f8 in forward_reply (msg=0x7fde5e22bd70) at forward.c:860
No locals.
#16 0x00000000004a58e7 in receive_msg (buf=0x924600 "SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP A.B.C.D;branch=z9hG4bK853d.4ce5cf98739172086bed0d898d48aa38.0;received=A.B.C.D\r\nVia: SIP/2.0/UDP A.B.C.D:5060;branch=z9hG4bK3dbe6573;rport=5060\r\nCall-ID: 077"...,
len=1027, rcv_info=0x7fff48853d30) at receive.c:273
msg = 0x7fde5e22bd70
ctx = {rec_lev = 8868984, run_flags = 0, last_retcode = 0, jmp_env = {{__jmpbuf = {0, 0, 0, 263853236176, 1, 0, 169080759064, 9586112}, __mask_was_saved = 1216691512, __saved_mask = {__val = {140593036756896, 12884901898, 140593036756896, 4279488,
140734410080352, 140734410079408, 5477954, 0, 140592673265024, 50195, 168717522304, 9586112, 140734410079536, 140734410079456, 5474789, 4279488}}}}}
ret = 32734
inb = {s = 0x924600 "SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP A.B.C.D;branch=z9hG4bK853d.4ce5cf98739172086bed0d898d48aa38.0;received=A.B.C.D\r\nVia: SIP/2.0/UDP A.B.C.D:5060;branch=z9hG4bK3dbe6573;rport=5060\r\nCall-ID: 077"..., len = 1027}
__FUNCTION__ = "receive_msg"
#17 0x000000000053c9a8 in udp_rcv_loop () at udp_server.c:536
len = 1027
buf = "SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP A.B.C.D;branch=z9hG4bK853d.4ce5cf98739172086bed0d898d48aa38.0;received=A.B.C.D\r\nVia: SIP/2.0/UDP A.B.C.D:5060;branch=z9hG4bK3dbe6573;rport=5060\r\nCall-ID: 0777"...
tmp = 0x9245c0 "10.143.1.2"
from = 0x7fde5e168f68
fromlen = 16
ri = {src_ip = {af = 2, len = 4, u = {addrl = {403182777, 140593036756896}, addr32 = {403182777, 0, 1577289632, 32734}, addr16 = {5305, 6152, 0, 0, 34720, 24067, 32734, 0}, addr = "\271\024\b\030\000\000\000\000\240\207\003^\336\177\000"}}, dst_ip = {af = 2,
len = 4, u = {addrl = {67638457, 0}, addr32 = {67638457, 0, 0, 0}, addr16 = {5305, 1032, 0, 0, 0, 0, 0, 0}, addr = "\271\024\b\004", '\000' <repeats 11 times>}}, src_port = 5060, dst_port = 5060, proto_reserved1 = 0, proto_reserved2 = 0, src_su = {s = {
sa_family = 2, sa_data = "\023Ĺ\024\b\030\000\000\000\000\000\000\000"}, sin = {sin_family = 2, sin_port = 50195, sin_addr = {s_addr = 403182777}, sin_zero = "\000\000\000\000\000\000\000"}, sin6 = {sin6_family = 2, sin6_port = 50195,
sin6_flowinfo = 403182777, 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}}, bind_address = 0x7fde5e038638, proto = 1 '\001'}
__FUNCTION__ = "udp_rcv_loop"
#18 0x000000000046d42b in main_loop () at main.c:1617
i = 5
pid = 0
si = 0x7fde5e038638
si_desc = "udp receiver child=5 sock=A.B.C.D:5060\000\035^\336\177\000\000\000\326\v^\336\177\000\000.\205^\000\000\000\000\000\020w^\000\000\000\000\000i\223k_\000\000\000\000\300LA\000\000\000\000\000`@\205H\377\177", '\000' <repeats 18 times>"\240, >\205H\377\177\000\000\364\244K\000\000\000\000"
nrprocs = 15
#19 0x0000000000470533 in main (argc=7, argv=0x7fff48854068) at main.c:2545
cfg_stream = 0x27f9010
c = -1
r = 0
tmp = 0x7fff48854f70 ""
tmp_len = 0
port = 0
proto = 0
options = 0x5e0a68 ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:"
ret = -1
seed = 3406612612
rfd = 4
debug_save = 0
debug_flag = 0
dont_fork_cnt = 0
n_lst = 0x3d6f60fb88
p = 0x5cab80 "H\211l$\330L\211d$\340H\215-o\244*"
__FUNCTION__ = "main"
Regards,
Igor.