When another client calls ratox, but hangs up before ratox can
accept the call, ratox crashes. valgrind shows faulty memory
accesses in callback_end(). Noteworthy: there are no faulty
memory accesses in ratox code.
Here is the whole valgrind log on the matter:
==5759== Memcheck, a memory error detector
==5759== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==5759== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
==5759== Command: ratox
==5759==
==5759== Conditional jump or move depends on uninitialised value(s)
==5759== at 0x6F647CF: Local_ip (in /usr/lib/libtoxdht.so.1.6.0)
==5759== by 0x6B38CA9: friend_add_tcp_relay (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6B39126: tcp_relay_node_callback (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D53CEE: handle_dhtpk_announce (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D53938: handle_data_response (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759== by 0x6932B3B: do_messenger (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x4E3CA2A: tox_iterate (in /usr/lib/libtoxcore.so.1.6.0)
==5759== by 0x4084BD: loop (ratox.c:1948)
==5759== by 0x40A0ED: main (ratox.c:2348)
==5759==
==5759== Conditional jump or move depends on uninitialised value(s)
==5759== at 0x6F6480B: Local_ip (in /usr/lib/libtoxdht.so.1.6.0)
==5759== by 0x6B38CA9: friend_add_tcp_relay (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6B39126: tcp_relay_node_callback (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D53CEE: handle_dhtpk_announce (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D53938: handle_data_response (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759== by 0x6932B3B: do_messenger (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x4E3CA2A: tox_iterate (in /usr/lib/libtoxcore.so.1.6.0)
==5759== by 0x4084BD: loop (ratox.c:1948)
==5759== by 0x40A0ED: main (ratox.c:2348)
==5759==
==5759== Conditional jump or move depends on uninitialised value(s)
==5759== at 0x6F647CF: Local_ip (in /usr/lib/libtoxdht.so.1.6.0)
==5759== by 0x6B38CA9: friend_add_tcp_relay (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6B39789: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759== by 0x6932B3B: do_messenger (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x4E3CA2A: tox_iterate (in /usr/lib/libtoxcore.so.1.6.0)
==5759== by 0x4084BD: loop (ratox.c:1948)
==5759== by 0x40A0ED: main (ratox.c:2348)
==5759==
==5759== Conditional jump or move depends on uninitialised value(s)
==5759== at 0x6F6480B: Local_ip (in /usr/lib/libtoxdht.so.1.6.0)
==5759== by 0x6B38CA9: friend_add_tcp_relay (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6B39789: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759== by 0x6932B3B: do_messenger (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x4E3CA2A: tox_iterate (in /usr/lib/libtoxcore.so.1.6.0)
==5759== by 0x4084BD: loop (ratox.c:1948)
==5759== by 0x40A0ED: main (ratox.c:2348)
==5759==
==5759== Conditional jump or move depends on uninitialised value(s)
==5759== at 0x6F647CF: Local_ip (in /usr/lib/libtoxdht.so.1.6.0)
==5759== by 0x6B38CA9: friend_add_tcp_relay (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6B39018: send_relays (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6B3A6B1: do_friend_connections (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6932BBE: do_messenger (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x4E3CA2A: tox_iterate (in /usr/lib/libtoxcore.so.1.6.0)
==5759== by 0x4084BD: loop (ratox.c:1948)
==5759== by 0x40A0ED: main (ratox.c:2348)
==5759==
==5759== Conditional jump or move depends on uninitialised value(s)
==5759== at 0x6F6480B: Local_ip (in /usr/lib/libtoxdht.so.1.6.0)
==5759== by 0x6B38CA9: friend_add_tcp_relay (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6B39018: send_relays (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6B3A6B1: do_friend_connections (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6932BBE: do_messenger (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x4E3CA2A: tox_iterate (in /usr/lib/libtoxcore.so.1.6.0)
==5759== by 0x4084BD: loop (ratox.c:1948)
==5759== by 0x40A0ED: main (ratox.c:2348)
==5759==
==5759== Invalid read of size 8
==5759== at 0x504E5C9: callback_end (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6B3: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759== by 0x6932B3B: do_messenger (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x4E3CA2A: tox_iterate (in /usr/lib/libtoxcore.so.1.6.0)
==5759== Address 0x89592e8 is 24 bytes inside a block of size 48 free'd
==5759== at 0x4C2BD3A: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x5049FFD: kill_call (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049168: msi_hangup (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504D1F2: toxav_call_control (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x403F49: cancelcall (ratox.c:610)
==5759== by 0x4036EA: cbcallstate (ratox.c:428)
==5759== by 0x504E7D5: invoke_call_state_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E5C4: callback_end (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6B3: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== Block was alloc'd at
==5759== at 0x4C2CA40: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x5049D1E: new_call (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A7C5: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759== by 0x6932B3B: do_messenger (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x4E3CA2A: tox_iterate (in /usr/lib/libtoxcore.so.1.6.0)
==5759== by 0x4084BD: loop (ratox.c:1948)
==5759==
==5759== Invalid read of size 8
==5759== at 0x504E5D6: callback_end (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6B3: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759== by 0x6932B3B: do_messenger (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x4E3CA2A: tox_iterate (in /usr/lib/libtoxcore.so.1.6.0)
==5759== Address 0x89592e8 is 24 bytes inside a block of size 48 free'd
==5759== at 0x4C2BD3A: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x5049FFD: kill_call (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049168: msi_hangup (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504D1F2: toxav_call_control (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x403F49: cancelcall (ratox.c:610)
==5759== by 0x4036EA: cbcallstate (ratox.c:428)
==5759== by 0x504E7D5: invoke_call_state_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E5C4: callback_end (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6B3: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== Block was alloc'd at
==5759== at 0x4C2CA40: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x5049D1E: new_call (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A7C5: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759== by 0x6932B3B: do_messenger (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x4E3CA2A: tox_iterate (in /usr/lib/libtoxcore.so.1.6.0)
==5759== by 0x4084BD: loop (ratox.c:1948)
==5759==
==5759== Invalid read of size 1
==5759== at 0x504F063: call_kill_transmission (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E5E1: callback_end (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6B3: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759== by 0x6932B3B: do_messenger (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== Address 0x8959410 is 128 bytes inside a block of size 216 free'd
==5759== at 0x4C2BD3A: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x504EB6F: call_remove (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504D24D: toxav_call_control (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x403F49: cancelcall (ratox.c:610)
==5759== by 0x4036EA: cbcallstate (ratox.c:428)
==5759== by 0x504E7D5: invoke_call_state_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E5C4: callback_end (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6B3: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== Block was alloc'd at
==5759== at 0x4C2CA40: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x504E87E: call_new (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E381: callback_invite (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A17E: handle_init (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A81F: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759==
==5759== Invalid read of size 8
==5759== at 0x504E5E6: callback_end (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6B3: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759== by 0x6932B3B: do_messenger (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x4E3CA2A: tox_iterate (in /usr/lib/libtoxcore.so.1.6.0)
==5759== Address 0x89592e8 is 24 bytes inside a block of size 48 free'd
==5759== at 0x4C2BD3A: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x5049FFD: kill_call (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049168: msi_hangup (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504D1F2: toxav_call_control (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x403F49: cancelcall (ratox.c:610)
==5759== by 0x4036EA: cbcallstate (ratox.c:428)
==5759== by 0x504E7D5: invoke_call_state_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E5C4: callback_end (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6B3: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== Block was alloc'd at
==5759== at 0x4C2CA40: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x5049D1E: new_call (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A7C5: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759== by 0x6932B3B: do_messenger (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x4E3CA2A: tox_iterate (in /usr/lib/libtoxcore.so.1.6.0)
==5759== by 0x4084BD: loop (ratox.c:1948)
==5759==
==5759== Invalid read of size 4
==5759== at 0x504EB0F: call_remove (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E5F1: callback_end (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6B3: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759== by 0x6932B3B: do_messenger (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== Address 0x8959420 is 144 bytes inside a block of size 216 free'd
==5759== at 0x4C2BD3A: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x504EB6F: call_remove (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504D24D: toxav_call_control (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x403F49: cancelcall (ratox.c:610)
==5759== by 0x4036EA: cbcallstate (ratox.c:428)
==5759== by 0x504E7D5: invoke_call_state_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E5C4: callback_end (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6B3: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== Block was alloc'd at
==5759== at 0x4C2CA40: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x504E87E: call_new (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E381: callback_invite (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A17E: handle_init (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A81F: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759==
==5759== Invalid read of size 8
==5759== at 0x504EB1C: call_remove (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E5F1: callback_end (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6B3: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759== by 0x6932B3B: do_messenger (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== Address 0x8959390 is 0 bytes inside a block of size 216 free'd
==5759== at 0x4C2BD3A: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x504EB6F: call_remove (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504D24D: toxav_call_control (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x403F49: cancelcall (ratox.c:610)
==5759== by 0x4036EA: cbcallstate (ratox.c:428)
==5759== by 0x504E7D5: invoke_call_state_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E5C4: callback_end (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6B3: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== Block was alloc'd at
==5759== at 0x4C2CA40: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x504E87E: call_new (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E381: callback_invite (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A17E: handle_init (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A81F: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759==
==5759== Invalid read of size 8
==5759== at 0x504EB27: call_remove (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E5F1: callback_end (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6B3: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759== by 0x6932B3B: do_messenger (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== Address 0x8959458 is 200 bytes inside a block of size 216 free'd
==5759== at 0x4C2BD3A: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x504EB6F: call_remove (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504D24D: toxav_call_control (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x403F49: cancelcall (ratox.c:610)
==5759== by 0x4036EA: cbcallstate (ratox.c:428)
==5759== by 0x504E7D5: invoke_call_state_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E5C4: callback_end (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6B3: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== Block was alloc'd at
==5759== at 0x4C2CA40: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x504E87E: call_new (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E381: callback_invite (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A17E: handle_init (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A81F: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759==
==5759== Invalid read of size 8
==5759== at 0x504EB36: call_remove (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E5F1: callback_end (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6B3: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759== by 0x6932B3B: do_messenger (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== Address 0x8959460 is 208 bytes inside a block of size 216 free'd
==5759== at 0x4C2BD3A: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x504EB6F: call_remove (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504D24D: toxav_call_control (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x403F49: cancelcall (ratox.c:610)
==5759== by 0x4036EA: cbcallstate (ratox.c:428)
==5759== by 0x504E7D5: invoke_call_state_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E5C4: callback_end (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6B3: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== Block was alloc'd at
==5759== at 0x4C2CA40: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x504E87E: call_new (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E381: callback_invite (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A17E: handle_init (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A81F: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759==
==5759== Invalid read of size 8
==5759== at 0x504EB45: call_remove (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E5F1: callback_end (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6B3: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759== by 0x6932B3B: do_messenger (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== Address 0x8959418 is 136 bytes inside a block of size 216 free'd
==5759== at 0x4C2BD3A: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x504EB6F: call_remove (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504D24D: toxav_call_control (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x403F49: cancelcall (ratox.c:610)
==5759== by 0x4036EA: cbcallstate (ratox.c:428)
==5759== by 0x504E7D5: invoke_call_state_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E5C4: callback_end (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6B3: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== Block was alloc'd at
==5759== at 0x4C2CA40: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x504E87E: call_new (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E381: callback_invite (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A17E: handle_init (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A81F: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759==
==5759== Invalid free() / delete / delete[] / realloc()
==5759== at 0x4C2BD3A: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x504EB6F: call_remove (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E5F1: callback_end (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6B3: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759== Address 0x8959390 is 0 bytes inside a block of size 216 free'd
==5759== at 0x4C2BD3A: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x504EB6F: call_remove (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504D24D: toxav_call_control (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x403F49: cancelcall (ratox.c:610)
==5759== by 0x4036EA: cbcallstate (ratox.c:428)
==5759== by 0x504E7D5: invoke_call_state_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E5C4: callback_end (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6B3: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== Block was alloc'd at
==5759== at 0x4C2CA40: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x504E87E: call_new (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E381: callback_invite (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A17E: handle_init (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A81F: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759==
==5759== Invalid read of size 8
==5759== at 0x5049F27: kill_call (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6C0: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759== by 0x6932B3B: do_messenger (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x4E3CA2A: tox_iterate (in /usr/lib/libtoxcore.so.1.6.0)
==5759== by 0x4084BD: loop (ratox.c:1948)
==5759== Address 0x89592d0 is 0 bytes inside a block of size 48 free'd
==5759== at 0x4C2BD3A: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x5049FFD: kill_call (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049168: msi_hangup (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504D1F2: toxav_call_control (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x403F49: cancelcall (ratox.c:610)
==5759== by 0x4036EA: cbcallstate (ratox.c:428)
==5759== by 0x504E7D5: invoke_call_state_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E5C4: callback_end (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6B3: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== Block was alloc'd at
==5759== at 0x4C2CA40: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x5049D1E: new_call (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A7C5: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759== by 0x6932B3B: do_messenger (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x4E3CA2A: tox_iterate (in /usr/lib/libtoxcore.so.1.6.0)
==5759== by 0x4084BD: loop (ratox.c:1948)
==5759==
==5759== Invalid read of size 8
==5759== at 0x5049F32: kill_call (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6C0: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759== by 0x6932B3B: do_messenger (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x4E3CA2A: tox_iterate (in /usr/lib/libtoxcore.so.1.6.0)
==5759== by 0x4084BD: loop (ratox.c:1948)
==5759== Address 0x89592f8 is 40 bytes inside a block of size 48 free'd
==5759== at 0x4C2BD3A: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x5049FFD: kill_call (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049168: msi_hangup (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504D1F2: toxav_call_control (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x403F49: cancelcall (ratox.c:610)
==5759== by 0x4036EA: cbcallstate (ratox.c:428)
==5759== by 0x504E7D5: invoke_call_state_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E5C4: callback_end (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6B3: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== Block was alloc'd at
==5759== at 0x4C2CA40: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x5049D1E: new_call (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A7C5: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759== by 0x6932B3B: do_messenger (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x4E3CA2A: tox_iterate (in /usr/lib/libtoxcore.so.1.6.0)
==5759== by 0x4084BD: loop (ratox.c:1948)
==5759==
==5759== Invalid read of size 8
==5759== at 0x5049F3E: kill_call (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6C0: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759== by 0x6932B3B: do_messenger (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x4E3CA2A: tox_iterate (in /usr/lib/libtoxcore.so.1.6.0)
==5759== by 0x4084BD: loop (ratox.c:1948)
==5759== Address 0x89592f0 is 32 bytes inside a block of size 48 free'd
==5759== at 0x4C2BD3A: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x5049FFD: kill_call (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049168: msi_hangup (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504D1F2: toxav_call_control (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x403F49: cancelcall (ratox.c:610)
==5759== by 0x4036EA: cbcallstate (ratox.c:428)
==5759== by 0x504E7D5: invoke_call_state_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E5C4: callback_end (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6B3: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== Block was alloc'd at
==5759== at 0x4C2CA40: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x5049D1E: new_call (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A7C5: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759== by 0x6932B3B: do_messenger (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x4E3CA2A: tox_iterate (in /usr/lib/libtoxcore.so.1.6.0)
==5759== by 0x4084BD: loop (ratox.c:1948)
==5759==
==5759== Invalid free() / delete / delete[] / realloc()
==5759== at 0x4C2BD3A: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x5049FFD: kill_call (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6C0: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759== by 0x6932B3B: do_messenger (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x4E3CA2A: tox_iterate (in /usr/lib/libtoxcore.so.1.6.0)
==5759== Address 0x89592d0 is 0 bytes inside a block of size 48 free'd
==5759== at 0x4C2BD3A: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x5049FFD: kill_call (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049168: msi_hangup (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504D1F2: toxav_call_control (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x403F49: cancelcall (ratox.c:610)
==5759== by 0x4036EA: cbcallstate (ratox.c:428)
==5759== by 0x504E7D5: invoke_call_state_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504E5C4: callback_end (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x5049C0C: invoke_callback (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A6B3: handle_pop (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A849: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== Block was alloc'd at
==5759== at 0x4C2CA40: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5759== by 0x5049D1E: new_call (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x504A7C5: handle_msi_packet (in /usr/lib/libtoxav.so.1.6.0)
==5759== by 0x6932434: handle_packet (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x6B39859: handle_packet (in /usr/lib/libtoxfriends.so.1.6.0)
==5759== by 0x6D4B818: handle_data_packet_core (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4BC5F: handle_packet_connection (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x6D4D1CD: udp_handle_packet (in /usr/lib/libtoxnetcrypto.so.1.6.0)
==5759== by 0x716B821: networking_poll (in /usr/lib/libtoxnetwork.so.1.6.0)
==5759== by 0x6932B3B: do_messenger (in /usr/lib/libtoxmessenger.so.1.6.0)
==5759== by 0x4E3CA2A: tox_iterate (in /usr/lib/libtoxcore.so.1.6.0)
==5759== by 0x4084BD: loop (ratox.c:1948)
==5759==
==5759==
==5759== HEAP SUMMARY:
==5759== in use at exit: 303,713 bytes in 24 blocks
==5759== total heap usage: 6,485 allocs, 6,463 frees, 9,726,516 bytes allocated
==5759==
==5759== LEAK SUMMARY:
==5759== definitely lost: 299,832 bytes in 11 blocks
==5759== indirectly lost: 784 bytes in 2 blocks
==5759== possibly lost: 0 bytes in 0 blocks
==5759== still reachable: 3,097 bytes in 11 blocks
==5759== suppressed: 0 bytes in 0 blocks
==5759== Rerun with --leak-check=full to see details of leaked memory
==5759==
==5759== For counts of detected and suppressed errors, rerun with: -v
==5759== Use --track-origins=yes to see where uninitialised values come from
==5759== ERROR SUMMARY: 26 errors from 20 contexts (suppressed: 0 from 0)
When another client calls ratox, but hangs up before ratox can accept the call, ratox crashes. valgrind shows faulty memory accesses in callback_end(). Noteworthy: there are no faulty memory accesses in ratox code.
Here is the whole valgrind log on the matter: