==22291== Memcheck, a memory error detector
==22291== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==22291== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==22291== Command: asterisk -vvvvcg
==22291== 
==22291== Conditional jump or move depends on uninitialised value(s)
==22291==    at 0x4DB73D: ast_variable_lists_match (config.c:799)
==22291==    by 0x153B58FE: sorcery_config_fields_cmp (res_sorcery_config.c:125)
==22291==    by 0x45E76B: internal_ao2_traverse (astobj2_container.c:354)
==22291==    by 0x45EA8A: __ao2_callback (astobj2_container.c:455)
==22291==    by 0x153B5BD1: sorcery_config_retrieve_multiple (res_sorcery_config.c:185)
==22291==    by 0x5BF9E9: ast_sorcery_retrieve_by_fields (sorcery.c:1922)
==22291==    by 0x1CF658DA: create_mwi_subscriptions (res_pjsip_mwi.c:1151)
==22291==    by 0x1CF65B76: load_module (res_pjsip_mwi.c:1302)
==22291==    by 0x534D1B: start_resource (loader.c:1029)
==22291==    by 0x535992: load_resource_list (loader.c:1293)
==22291==    by 0x5360FD: load_modules (loader.c:1454)
==22291==    by 0x45C9F9: asterisk_daemon (asterisk.c:4691)
==22291== 
==22291== Thread 63:
==22291== Conditional jump or move depends on uninitialised value(s)
==22291==    at 0x4AE85E: ast_channel_by_uniqueid_cb (channel.c:1373)
==22291==    by 0x45E74F: internal_ao2_traverse (astobj2_container.c:352)
==22291==    by 0x45EB50: __ao2_callback_data (astobj2_container.c:468)
==22291==    by 0x4AE540: ast_channel_callback (channel.c:1312)
==22291==    by 0x4ACACE: does_id_conflict (channel.c:781)
==22291==    by 0x4AD389: __ast_channel_alloc_ap (channel.c:971)
==22291==    by 0x4AD5E0: __ast_channel_alloc (channel.c:1016)
==22291==    by 0x338FEE5B: chan_pjsip_new.isra.25 (chan_pjsip.c:452)
==22291==    by 0x338FF275: chan_pjsip_request (chan_pjsip.c:2126)
==22291==    by 0x4BC081: ast_request (channel.c:6188)
==22291==    by 0x4F93BF: begin_dial_prerun (dial.c:332)
==22291==    by 0x4F98A4: ast_dial_prerun (dial.c:404)
==22291== 
==22291== Conditional jump or move depends on uninitialised value(s)
==22291==    at 0x4AE884: ast_channel_by_uniqueid_cb (channel.c:1374)
==22291==    by 0x45E74F: internal_ao2_traverse (astobj2_container.c:352)
==22291==    by 0x45EB50: __ao2_callback_data (astobj2_container.c:468)
==22291==    by 0x4AE540: ast_channel_callback (channel.c:1312)
==22291==    by 0x4ACACE: does_id_conflict (channel.c:781)
==22291==    by 0x4AD389: __ast_channel_alloc_ap (channel.c:971)
==22291==    by 0x4AD5E0: __ast_channel_alloc (channel.c:1016)
==22291==    by 0x338FEE5B: chan_pjsip_new.isra.25 (chan_pjsip.c:452)
==22291==    by 0x338FF275: chan_pjsip_request (chan_pjsip.c:2126)
==22291==    by 0x4BC081: ast_request (channel.c:6188)
==22291==    by 0x4F93BF: begin_dial_prerun (dial.c:332)
==22291==    by 0x4F98A4: ast_dial_prerun (dial.c:404)
==22291== 
==22291== Conditional jump or move depends on uninitialised value(s)
==22291==    at 0x4C2B453: strncasecmp (vg_replace_strmem.c:730)
==22291==    by 0x4AE8A4: ast_channel_by_uniqueid_cb (channel.c:1374)
==22291==    by 0x45E74F: internal_ao2_traverse (astobj2_container.c:352)
==22291==    by 0x45EB50: __ao2_callback_data (astobj2_container.c:468)
==22291==    by 0x4AE540: ast_channel_callback (channel.c:1312)
==22291==    by 0x4ACACE: does_id_conflict (channel.c:781)
==22291==    by 0x4AD389: __ast_channel_alloc_ap (channel.c:971)
==22291==    by 0x4AD5E0: __ast_channel_alloc (channel.c:1016)
==22291==    by 0x338FEE5B: chan_pjsip_new.isra.25 (chan_pjsip.c:452)
==22291==    by 0x338FF275: chan_pjsip_request (chan_pjsip.c:2126)
==22291==    by 0x4BC081: ast_request (channel.c:6188)
==22291==    by 0x4F93BF: begin_dial_prerun (dial.c:332)
==22291== 
==22291== Thread 62:
==22291== Invalid read of size 1
==22291==    at 0x4C2A9D2: strlen (vg_replace_strmem.c:454)
==22291==    by 0x3A1FD476: bridge_channel_control_thread (resource_bridges.c:291)
==22291==    by 0x5F4E27: dummy_start (utils.c:1235)
==22291==    by 0x7267DC4: start_thread (in /usr/lib64/libpthread-2.17.so)
==22291==    by 0x7EFD73C: clone (in /usr/lib64/libc-2.17.so)
==22291==  Address 0xc5914d8 is 0 bytes after a block of size 24 alloc'd
==22291==    at 0x4C29975: calloc (vg_replace_malloc.c:711)
==22291==    by 0x5F3218: _ast_calloc (utils.h:573)
==22291==    by 0x3A1FE847: ast_ari_bridges_record (resource_bridges.c:776)
==22291==    by 0x3A1FC9D9: ast_ari_bridges_record_cb (res_ari_bridges.c:1273)
==22291==    by 0x13CFCFDA: ast_ari_invoke (res_ari.c:574)
==22291==    by 0x13CFE3A5: ast_ari_callback (res_ari.c:1043)
==22291==    by 0x527BB1: handle_uri (http.c:1482)
==22291==    by 0x5289D1: httpd_process_request (http.c:1906)
==22291==    by 0x528DB9: httpd_helper_thread (http.c:1993)
==22291==    by 0x5E286A: handle_tcptls_connection (tcptls.c:734)
==22291==    by 0x5F4E27: dummy_start (utils.c:1235)
==22291==    by 0x7267DC4: start_thread (in /usr/lib64/libpthread-2.17.so)
==22291== 
==22291== Invalid read of size 1
==22291==    at 0x4C2A9E4: strlen (vg_replace_strmem.c:454)
==22291==    by 0x3A1FD476: bridge_channel_control_thread (resource_bridges.c:291)
==22291==    by 0x5F4E27: dummy_start (utils.c:1235)
==22291==    by 0x7267DC4: start_thread (in /usr/lib64/libpthread-2.17.so)
==22291==    by 0x7EFD73C: clone (in /usr/lib64/libc-2.17.so)
==22291==  Address 0xc5914d9 is 1 bytes after a block of size 24 alloc'd
==22291==    at 0x4C29975: calloc (vg_replace_malloc.c:711)
==22291==    by 0x5F3218: _ast_calloc (utils.h:573)
==22291==    by 0x3A1FE847: ast_ari_bridges_record (resource_bridges.c:776)
==22291==    by 0x3A1FC9D9: ast_ari_bridges_record_cb (res_ari_bridges.c:1273)
==22291==    by 0x13CFCFDA: ast_ari_invoke (res_ari.c:574)
==22291==    by 0x13CFE3A5: ast_ari_callback (res_ari.c:1043)
==22291==    by 0x527BB1: handle_uri (http.c:1482)
==22291==    by 0x5289D1: httpd_process_request (http.c:1906)
==22291==    by 0x528DB9: httpd_helper_thread (http.c:1993)
==22291==    by 0x5E286A: handle_tcptls_connection (tcptls.c:734)
==22291==    by 0x5F4E27: dummy_start (utils.c:1235)
==22291==    by 0x7267DC4: start_thread (in /usr/lib64/libpthread-2.17.so)
==22291== 
==22291== Invalid read of size 2
==22291==    at 0x4C2C0D0: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1018)
==22291==    by 0x3A1FD4D0: bridge_channel_control_thread (resource_bridges.c:291)
==22291==    by 0x5F4E27: dummy_start (utils.c:1235)
==22291==    by 0x7267DC4: start_thread (in /usr/lib64/libpthread-2.17.so)
==22291==    by 0x7EFD73C: clone (in /usr/lib64/libc-2.17.so)
==22291==  Address 0xc5914d8 is 0 bytes after a block of size 24 alloc'd
==22291==    at 0x4C29975: calloc (vg_replace_malloc.c:711)
==22291==    by 0x5F3218: _ast_calloc (utils.h:573)
==22291==    by 0x3A1FE847: ast_ari_bridges_record (resource_bridges.c:776)
==22291==    by 0x3A1FC9D9: ast_ari_bridges_record_cb (res_ari_bridges.c:1273)
==22291==    by 0x13CFCFDA: ast_ari_invoke (res_ari.c:574)
==22291==    by 0x13CFE3A5: ast_ari_callback (res_ari.c:1043)
==22291==    by 0x527BB1: handle_uri (http.c:1482)
==22291==    by 0x5289D1: httpd_process_request (http.c:1906)
==22291==    by 0x528DB9: httpd_helper_thread (http.c:1993)
==22291==    by 0x5E286A: handle_tcptls_connection (tcptls.c:734)
==22291==    by 0x5F4E27: dummy_start (utils.c:1235)
==22291==    by 0x7267DC4: start_thread (in /usr/lib64/libpthread-2.17.so)
==22291== 
==22291== Thread 90:
==22291== Invalid read of size 1
==22291==    at 0x4C2C240: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1018)
==22291==    by 0x3A1FD4D0: bridge_channel_control_thread (resource_bridges.c:291)
==22291==    by 0x5F4E27: dummy_start (utils.c:1235)
==22291==    by 0x7267DC4: start_thread (in /usr/lib64/libpthread-2.17.so)
==22291==    by 0x7EFD73C: clone (in /usr/lib64/libc-2.17.so)
==22291==  Address 0xbca9b58 is 0 bytes after a block of size 24 alloc'd
==22291==    at 0x4C29975: calloc (vg_replace_malloc.c:711)
==22291==    by 0x5F3218: _ast_calloc (utils.h:573)
==22291==    by 0x3A1FE847: ast_ari_bridges_record (resource_bridges.c:776)
==22291==    by 0x3A1FC9D9: ast_ari_bridges_record_cb (res_ari_bridges.c:1273)
==22291==    by 0x13CFCFDA: ast_ari_invoke (res_ari.c:574)
==22291==    by 0x13CFE3A5: ast_ari_callback (res_ari.c:1043)
==22291==    by 0x527BB1: handle_uri (http.c:1482)
==22291==    by 0x5289D1: httpd_process_request (http.c:1906)
==22291==    by 0x528DB9: httpd_helper_thread (http.c:1993)
==22291==    by 0x5E286A: handle_tcptls_connection (tcptls.c:734)
==22291==    by 0x5F4E27: dummy_start (utils.c:1235)
==22291==    by 0x7267DC4: start_thread (in /usr/lib64/libpthread-2.17.so)
==22291== 
==22291== Thread 78:
==22291== Invalid read of size 8
==22291==    at 0x4C2C080: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1018)
==22291==    by 0x3A1FD4D0: bridge_channel_control_thread (resource_bridges.c:291)
==22291==    by 0x5F4E27: dummy_start (utils.c:1235)
==22291==    by 0x7267DC4: start_thread (in /usr/lib64/libpthread-2.17.so)
==22291==    by 0x7EFD73C: clone (in /usr/lib64/libc-2.17.so)
==22291==  Address 0xa30a6a8 is 0 bytes after a block of size 24 alloc'd
==22291==    at 0x4C29975: calloc (vg_replace_malloc.c:711)
==22291==    by 0x5F3218: _ast_calloc (utils.h:573)
==22291==    by 0x3A1FE847: ast_ari_bridges_record (resource_bridges.c:776)
==22291==    by 0x3A1FC9D9: ast_ari_bridges_record_cb (res_ari_bridges.c:1273)
==22291==    by 0x13CFCFDA: ast_ari_invoke (res_ari.c:574)
==22291==    by 0x13CFE3A5: ast_ari_callback (res_ari.c:1043)
==22291==    by 0x527BB1: handle_uri (http.c:1482)
==22291==    by 0x5289D1: httpd_process_request (http.c:1906)
==22291==    by 0x528DB9: httpd_helper_thread (http.c:1993)
==22291==    by 0x5E286A: handle_tcptls_connection (tcptls.c:734)
==22291==    by 0x5F4E27: dummy_start (utils.c:1235)
==22291==    by 0x7267DC4: start_thread (in /usr/lib64/libpthread-2.17.so)
==22291== 
==22291== Thread 71:
==22291== Conditional jump or move depends on uninitialised value(s)
==22291==    at 0x4C2B4C6: strncasecmp (vg_replace_strmem.c:730)
==22291==    by 0x4AE8A4: ast_channel_by_uniqueid_cb (channel.c:1374)
==22291==    by 0x45E74F: internal_ao2_traverse (astobj2_container.c:352)
==22291==    by 0x45EB50: __ao2_callback_data (astobj2_container.c:468)
==22291==    by 0x4AE540: ast_channel_callback (channel.c:1312)
==22291==    by 0x4ACACE: does_id_conflict (channel.c:781)
==22291==    by 0x4AD389: __ast_channel_alloc_ap (channel.c:971)
==22291==    by 0x4AD5E0: __ast_channel_alloc (channel.c:1016)
==22291==    by 0x338FEE5B: chan_pjsip_new.isra.25 (chan_pjsip.c:452)
==22291==    by 0x338FF275: chan_pjsip_request (chan_pjsip.c:2126)
==22291==    by 0x4BC081: ast_request (channel.c:6188)
==22291==    by 0x4F93BF: begin_dial_prerun (dial.c:332)
==22291== 
==22291== Thread 100:
==22291== Invalid read of size 2
==22291==    at 0x4C2C0DF: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1018)
==22291==    by 0x3A1FD4D0: bridge_channel_control_thread (resource_bridges.c:291)
==22291==    by 0x5F4E27: dummy_start (utils.c:1235)
==22291==    by 0x7267DC4: start_thread (in /usr/lib64/libpthread-2.17.so)
==22291==    by 0x7EFD73C: clone (in /usr/lib64/libc-2.17.so)
==22291==  Address 0xb45d1bc is 4 bytes after a block of size 24 alloc'd
==22291==    at 0x4C29975: calloc (vg_replace_malloc.c:711)
==22291==    by 0x5F3218: _ast_calloc (utils.h:573)
==22291==    by 0x3A1FE847: ast_ari_bridges_record (resource_bridges.c:776)
==22291==    by 0x3A1FC9D9: ast_ari_bridges_record_cb (res_ari_bridges.c:1273)
==22291==    by 0x13CFCFDA: ast_ari_invoke (res_ari.c:574)
==22291==    by 0x13CFE3A5: ast_ari_callback (res_ari.c:1043)
==22291==    by 0x527BB1: handle_uri (http.c:1482)
==22291==    by 0x5289D1: httpd_process_request (http.c:1906)
==22291==    by 0x528DB9: httpd_helper_thread (http.c:1993)
==22291==    by 0x5E286A: handle_tcptls_connection (tcptls.c:734)
==22291==    by 0x5F4E27: dummy_start (utils.c:1235)
==22291==    by 0x7267DC4: start_thread (in /usr/lib64/libpthread-2.17.so)
==22291== 
==22291== Thread 99:
==22291== Invalid read of size 8
==22291==    at 0x4C2C08E: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1018)
==22291==    by 0x3A1FD4D0: bridge_channel_control_thread (resource_bridges.c:291)
==22291==    by 0x5F4E27: dummy_start (utils.c:1235)
==22291==    by 0x7267DC4: start_thread (in /usr/lib64/libpthread-2.17.so)
==22291==    by 0x7EFD73C: clone (in /usr/lib64/libc-2.17.so)
==22291==  Address 0xa812618 is 16 bytes after a block of size 24 alloc'd
==22291==    at 0x4C29975: calloc (vg_replace_malloc.c:711)
==22291==    by 0x5F3218: _ast_calloc (utils.h:573)
==22291==    by 0x3A1FE847: ast_ari_bridges_record (resource_bridges.c:776)
==22291==    by 0x3A1FC9D9: ast_ari_bridges_record_cb (res_ari_bridges.c:1273)
==22291==    by 0x13CFCFDA: ast_ari_invoke (res_ari.c:574)
==22291==    by 0x13CFE3A5: ast_ari_callback (res_ari.c:1043)
==22291==    by 0x527BB1: handle_uri (http.c:1482)
==22291==    by 0x5289D1: httpd_process_request (http.c:1906)
==22291==    by 0x528DB9: httpd_helper_thread (http.c:1993)
==22291==    by 0x5E286A: handle_tcptls_connection (tcptls.c:734)
==22291==    by 0x5F4E27: dummy_start (utils.c:1235)
==22291==    by 0x7267DC4: start_thread (in /usr/lib64/libpthread-2.17.so)
==22291== 
==22291== Thread 10:
==22291== Conditional jump or move depends on uninitialised value(s)
==22291==    at 0x7E7D6F1: _IO_file_overflow@@GLIBC_2.2.5 (in /usr/lib64/libc-2.17.so)
==22291==    by 0x7E7E60B: _IO_default_xsputn (in /usr/lib64/libc-2.17.so)
==22291==    by 0x7E7C651: _IO_file_xsputn@@GLIBC_2.2.5 (in /usr/lib64/libc-2.17.so)
==22291==    by 0x7E71FFC: fwrite (in /usr/lib64/libc-2.17.so)
==22291==    by 0x5F55EE: ast_careful_fwrite (utils.c:1452)
==22291==    by 0x10AA30D3: __ast_websocket_close (res_http_websocket.c:310)
==22291==    by 0x10AA2B7A: session_destroy_fn (res_http_websocket.c:182)
==22291==    by 0x45D617: internal_ao2_ref (astobj2.c:451)
==22291==    by 0x45D8FA: __ao2_ref (astobj2.c:518)
==22291==    by 0x45D96A: __ao2_cleanup (astobj2.c:531)
==22291==    by 0x10AA35AA: __ast_websocket_unref (res_http_websocket.c:422)
==22291==    by 0x34B3B29E: _dtor_s.29225 (res_ari_events.c:150)
==22291== 
==22291== Syscall param write(buf) points to uninitialised byte(s)
==22291==    at 0x726E43D: ??? (in /usr/lib64/libpthread-2.17.so)
==22291==    by 0x5E1B49: tcptls_stream_write (tcptls.c:335)
==22291==    by 0x7E71630: _IO_cookie_write (in /usr/lib64/libc-2.17.so)
==22291==    by 0x7E7D3DB: _IO_do_write@@GLIBC_2.2.5 (in /usr/lib64/libc-2.17.so)
==22291==    by 0x7E7D7B2: _IO_file_overflow@@GLIBC_2.2.5 (in /usr/lib64/libc-2.17.so)
==22291==    by 0x7E7E60B: _IO_default_xsputn (in /usr/lib64/libc-2.17.so)
==22291==    by 0x7E7C651: _IO_file_xsputn@@GLIBC_2.2.5 (in /usr/lib64/libc-2.17.so)
==22291==    by 0x7E71FFC: fwrite (in /usr/lib64/libc-2.17.so)
==22291==    by 0x5F55EE: ast_careful_fwrite (utils.c:1452)
==22291==    by 0x10AA30D3: __ast_websocket_close (res_http_websocket.c:310)
==22291==    by 0x10AA2B7A: session_destroy_fn (res_http_websocket.c:182)
==22291==    by 0x45D617: internal_ao2_ref (astobj2.c:451)
==22291==  Address 0xada0e83 is 131 bytes inside a block of size 280 alloc'd
==22291==    at 0x4C27BE3: malloc (vg_replace_malloc.c:299)
==22291==    by 0x7E7178F: fopencookie@@GLIBC_2.2.5 (in /usr/lib64/libc-2.17.so)
==22291==    by 0x5E1EEE: tcptls_stream_fopen (tcptls.c:510)
==22291==    by 0x5E22F5: handle_tcptls_connection (tcptls.c:625)
==22291==    by 0x5F4E27: dummy_start (utils.c:1235)
==22291==    by 0x7267DC4: start_thread (in /usr/lib64/libpthread-2.17.so)
==22291==    by 0x7EFD73C: clone (in /usr/lib64/libc-2.17.so)
==22291==