[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/asterisk -g -f -U asterisk'. Program terminated with signal SIGSEGV, Segmentation fault. #0 ast_rtp_instance_get_stats (instance=0x0, stats=stats@entry=0x7f8eb83ac710, stat=stat@entry=AST_RTP_INSTANCE_STAT_ALL) at rtp_engine.c:1561 1561 rtp_engine.c: No such file or directory. [Current thread is 1 (Thread 0x7f8eb83ae700 (LWP 12829))] (gdb) bt full #0 ast_rtp_instance_get_stats (instance=0x0, stats=stats@entry=0x7f8eb83ac710, stat=stat@entry=AST_RTP_INSTANCE_STAT_ALL) at rtp_engine.c:1561 res = __PRETTY_FUNCTION__ = "ast_rtp_instance_get_stats" #1 0x00007f8ec01ee6b0 in cli_channelstats_print_body (obj=0x7f8e88043628, arg=arg@entry=0x7f8eb83aca60, flags=flags@entry=2) at pjsip/cli_commands.c:378 context = 0x7f8eb83aca60 channel = 0x7f8eecd8c790 cpvt = pvt = media = 0x7f8eec226830 stats = {txcount = 1635, rxcount = 1561, txjitter = 0.00022881127517368957, rxjitter = 0, remote_maxjitter = 1, remote_minjitter = 0, remote_normdevjitter = 0.16666666666666666, remote_stdevjitter = 29.870740740740747, local_maxjitter = 0.0025101821269106045, local_minjitter = 1.51805579662323e-05, local_normdevjitter = 0.00020074087397390993, local_stdevjitter = inf, txploss = 0, rxploss = 0, remote_maxrxploss = 0, remote_minrxploss = 0, remote_normdevrxploss = 0, remote_stdevrxploss = 0, local_maxrxploss = 0, local_minrxploss = 0, local_normdevrxploss = 0, local_stdevrxploss = 9.6600853287216619e+260, rtt = 2.1219957904712067e-314, maxrtt = 4.659345138107004e-310, minrtt = 0.0057369999999999999, normdevrtt = 0.006097, stdevrtt = 0.00098910593300000006, local_ssrc = 2133367371, remote_ssrc = 665142970, channel_uniqueid = "1557753524.2738572\000\000\000\000\000\000\030u__\305U\000\000\000\000\000\000\000\000\000\000\215QH_\305U\000\000ju__", '\000' , "\315@\324\002j\037v\000\000\000\000\000\000\000\000HT\006\334\216\177\000\000\320\310:\270\216\177\000\000\000\000\000\000\000\000\000\000`\312:\270\216\177\000\000\000\000\000\000\000\000\000\000\270\302\005\334\216\177\000", txoctetcount = 1598579188, rxoctetcount = 21957} print_name = 0x7f8eb83ac696 "prv-in-0029c957" print_time = 0x7f8eb83ac6c0 "00:00:26" codec_in_use = "alaw\000\000" __PRETTY_FUNCTION__ = "cli_channelstats_print_body" #2 0x000055c55f485208 in internal_ao2_traverse (self=self@entry=0x7f8edc065438, flags=flags@entry=OBJ_NODATA, cb_fn=, arg=arg@entry=0x7f8eb83aca60, data=data@entry=0x0, type=type@entry=AO2_CALLBACK_DEFAULT, tag=0x0, file=0x0, line=0, func=0x0) at astobj2_container.c:354 match = 3 ret = 0x0 cb_default = 0x7f8ec01ee510 cb_withdata = 0x0 node = 0x7f8edc05c2b8 traversal_state = 0x7f8eb83ac8d0 orig_lock = AO2_LOCK_REQ_MUTEX multi_container = 0x0 multi_iterator = 0x0 __PRETTY_FUNCTION__ = "internal_ao2_traverse" #3 0x000055c55f485777 in __ao2_callback (c=c@entry=0x7f8edc065438, flags=flags@entry=OBJ_NODATA, cb_fn=, arg=arg@entry=0x7f8eb83aca60) at astobj2_container.c:455 No locals. #4 0x00007f8f56860e48 in ast_sip_cli_traverse_objects (e=, cmd=-4, a=0x7f8eb83acb50) at res_pjsip/pjsip_cli.c:215 container = 0x7f8edc065438 formatter_entry = 0x55c561910670 object = 0x0 is_container = 1 cmd1 = cmd2 = object_id = formatter_type = "channelstat\000\305U\000\000\353\220\000\334\216\177\000\000\373\006\221a\305U\000\000\270X?\300\216\177\000\000\b\314:\270\216\177\000\000\310X?\300\216\177\000\000\273#N_\305U\000" regex = context = {output_buffer = 0x7f8edc0186e0, auth_direction = 0x0, indent_level = 0, show_details = 0, recurse = 1, show_details_only_level_0 = 0} __PRETTY_FUNCTION__ = "ast_sip_cli_traverse_objects" #5 0x000055c55f4e9442 in ast_cli_command_full (uid=uid@entry=-1, gid=gid@entry=-1, fd=fd@entry=269, s=s@entry=0x7f8edc05d429 "pjsip show channelstats") at cli.c:2808 args = {0x7f8ec03f58b8 "\360\006\221a\305U", 0x7f8edc0090e0 "pjsip", 0x7f8edc0090e6 "show", 0x7f8edc0090eb "channelstats", 0x0, 0x7f8f5c012b62 "H\205\300H\211\305\017\267\273\200", 0x7ffcf8d4ed56 "H\213u\330\353\324\363\220\351\001\377\377\377\213\025w\323\377\377\211\026\213\025s\323\377\377\211V\004럸`", 0x7f8edc003530 "\203,\255\373\216\177", 0x11 , 0x7f8edc09f218 "ActionID: 11245\r\n", 0x11 , 0x11 , 0x7f8f5c336a80 "", 0x7f8f5c013f6e <_IO_file_xsputn+366> "I)\305I9\306\017\206i\377\377\377\351\352\376\377\377\220L)\355H\307\300\377\377\377\377M\205\355H\017E\305\351\331\376\377\377f.\017\037\204", 0x7f8edc003530 "\203,\255\373\216\177", 0x11 , 0x7f8edc09f218 "ActionID: 11245\r\n", 0x11 , 0x1 , 0x7f8eb83accd0 "", 0x7ffcf8d4ed56 "H\213u\330\353\324\363\220\351\001\377\377\377\213\025w\323\377\377\211\026\213\025s\323\377\377\211V\004럸`", 0x7f8edc003530 "\203,\255\373\216\177", 0x7f8f5c336a80 "", 0x7f8f5c00803c "1҅\300\017\225\302\367\332\367\003", 0x7f8edc003530 "\203,\255\373\216\177", 0x11 , 0x0, 0x55c55f5e4340 "\205\300L\213\024$\017\204\343\001", 0x7f8eb83ae5b8 "", 0x5cd96ed5 , 0x45578 , 0x7f8eb83acd00 "\325n\331\\", 0x5cd96ed5 , 0x45596 , 0x7f8eb83acd98 "", 0x761f6a02d440cd00 , 0x7f8eb83acda8 "\240\316:\270\216\177", 0x7f8eb83ad200 "\320\v\002\334\216\177", 0x7f8edc003530 "\203,\255\373\216\177", 0x253 , 0x10d , 0x7f8edc02710a "11245", 0x7f8eb83acea0 "/tmp/ast-ami-zd0D3m", 0x55c55f5435ad "\205\300tĀK \001H\203\304\020[]A\\\303f\220H\213\aH\213\250\210", 0x7f8eb83ad200 "\320\v\002\334\216\177", 0x7f8edc09f218 "ActionID: 11245\r\n", 0x7f8edc09f200 , 0x7f8eb83ad200 "\320\v\002\334\216\177", 0x55c55f5f8341 "ActionID: %s\r\n", 0x55c55f54ab18 "H\213D$(dH3\004%(", 0x0, 0x7f8edc09f200 , 0x3000000010 , 0x7f8eb83acea0 "/tmp/ast-ami-zd0D3m", 0x7f8eb83acdc0 "\320\315:\270\216\177", 0x761f6a02d440cd00 , 0x7f8eb83acdd0 "\nq\002\334\216\177", 0xb0000010d , 0x7f8edc02710a "11245", 0x180 , 0x7f8edc003638 "", 0x7f8eb83ae700 "", 0x0, 0x0, 0x0} e = 0x7f8ec03f58b8 x = 3 duplicate = 0x7f8edc0090e0 "pjsip" tmp = "pjsip show channelstats", '\000' , "\t" retval = 0x0 a = {fd = 269, argc = 3, argv = 0x7f8eb83acc08, line = 0x0, word = 0x0, pos = 0, n = 0} __PRETTY_FUNCTION__ = "ast_cli_command_full" #6 0x000055c55f551ea8 in action_command (s=0x7f8eb83ad200, m=0x7f8eb83ad300) at manager.c:5150 buf = 0x0 final_buf = 0x0 template = "/tmp/ast-ami-zd0D3m" fd = 269 l = __PRETTY_FUNCTION__ = "action_command" #7 0x000055c55f54b15a in process_message (s=s@entry=0x7f8eb83ad200, m=m@entry=0x7f8eb83ad300) at manager.c:6479 acted = 0 ret = 0 act_found = 0x55c561c3ed50 user = action = 0x7f8edc063a58 "Command" __PRETTY_FUNCTION__ = "process_message" #8 0x000055c55f551752 in do_message (s=0x7f8eb83ad200) at manager.c:6697 m = {hdrcount = 3, headers = {0x7f8edc063a50 "Action: Command", 0x7f8edc05d420 "Command: pjsip show channelstats", 0x7f8edc027100 "ActionID: 11245", 0x0 }} hdr_loss = 0 header_buf = "\000ctionID: 11245\000how channelstats", '\000' res = now = 1553597187 #9 session_do (data=0x7f8f040042b0) at manager.c:6807 ser = 0x7f8f040042b0 session = 0x7f8edc020bd0 s = {session = 0x7f8edc020bd0, tcptls_session = 0x7f8f040042b0, f = 0x7f8edc003530, fd = 595, parsing = MESSAGE_OKAY, write_error = 0, hook = 0x0, lock = {mutex = { __data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, __kind = 1, __spins = 0, __elision = 0, __list = {__prev = 0x0, __next = 0x0}}, __size = '\000' , "\001", '\000' , __align = 0}, track = 0x0, tracking = 0}} flags = 1 ser_remote_address_tmp = {ss = {ss_family = 2, __ss_padding = "\252*\177\000\000\001", '\000' , __ss_align = 0}, len = 16} __PRETTY_FUNCTION__ = "session_do" #10 0x000055c55f5d1ad7 in handle_tcptls_connection (data=data@entry=0x7f8f040042b0) at tcptls.c:825 tcptls_session = 0x7f8f040042b0 ssl_setup = ret = __PRETTY_FUNCTION__ = "handle_tcptls_connection" #11 0x000055c55f5e233c in dummy_start (data=) at utils.c:1239 __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {140252224186624, -1950022914547806455, 0, 140253614528959, 0, 140253750100032, 2012352604127989513, 5727064431892860681}, __mask_was_saved = 0}}, __pad = {0x7f8eb83add70, 0x0, 0x0, 0x0}} __cancel_arg = 0x7f8eb83ae700 __not_first_call = ret = a = {start_routine = 0x55c55f5d17c0 , data = 0x7f8f040042b0, name = } #12 0x00007f8f5ca9a494 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0 No symbol table info available. #13 0x00007f8f5c089acf in clone () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. (gdb) f 1 #1 0x00007f8ec01ee6b0 in cli_channelstats_print_body (obj=0x7f8e88043628, arg=arg@entry=0x7f8eb83aca60, flags=flags@entry=2) at pjsip/cli_commands.c:378 378 pjsip/cli_commands.c: No such file or directory. (gdb) p *media $1 = {{rtp = 0x0, udptl = 0x0}, direct_media_addr = {ss = {ss_family = 0, __ss_padding = '\000' , __ss_align = 0}, len = 0}, handler = 0x7f8ec0600160 , srtp = 0x0, encryption = AST_SIP_MEDIA_ENCRYPT_NONE, transport = {ptr = 0x0, slen = 0}, keepalive_sched_id = -1, timeout_sched_id = -1, held = 0, remote_rtcp_mux = 0, remote_ice = 0, stream_type = "a"}