labuser@labuser-Lenovo-Z51-70:~/ICE/bluez$ sudo valgrind --leak-check=full ./obexd/src/obexd -d ==18613== Memcheck, a memory error detector ==18613== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. ==18613== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info ==18613== Command: ./obexd/src/obexd -d ==18613== --18613-- WARNING: Serious error when reading debug info --18613-- When reading debug info from /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2: --18613-- Ignoring non-Dwarf2/3/4 block in .debug_info --18613-- WARNING: Serious error when reading debug info --18613-- When reading debug info from /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2: --18613-- Last block truncated in .debug_info; ignoring --18613-- WARNING: Serious error when reading debug info --18613-- When reading debug info from /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2: --18613-- parse_CU_Header: is neither DWARF2 nor DWARF3 nor DWARF4 ==18614== Warning: invalid file descriptor 1024 in syscall close() ==18614== Warning: invalid file descriptor 1025 in syscall close() ==18614== Warning: invalid file descriptor 1026 in syscall close() ==18614== Warning: invalid file descriptor 1027 in syscall close() ==18614== Use --log-fd= to select an alternative log fd. ==18614== Warning: invalid file descriptor 1028 in syscall close() ==18614== Warning: invalid file descriptor 1029 in syscall close() ==18613== Invalid read of size 4 ==18613== at 0x4E43010: uStrLen (in /usr/lib/x86_64-linux-gnu/libicalvcal.so.1.0.1) ==18613== by 0x4E43088: fakeCString (in /usr/lib/x86_64-linux-gnu/libicalvcal.so.1.0.1) ==18613== by 0x42A3E7: entry_notify (phonebook-dummy.c:308) ==18613== by 0x429DAD: foreach_vcard (phonebook-dummy.c:181) ==18613== by 0x429F58: create_cache (phonebook-dummy.c:325) ==18613== by 0x5502049: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2) ==18613== by 0x55023EF: g_main_context_iterate.isra.29 (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2) ==18613== by 0x5502711: g_main_loop_run (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2) ==18613== by 0x40E822: main (main.c:322) ==18613== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==18613== ==18613== ==18613== Process terminating with default action of signal 11 (SIGSEGV) ==18613== Access not within mapped region at address 0x0 ==18613== at 0x4E43010: uStrLen (in /usr/lib/x86_64-linux-gnu/libicalvcal.so.1.0.1) ==18613== by 0x4E43088: fakeCString (in /usr/lib/x86_64-linux-gnu/libicalvcal.so.1.0.1) ==18613== by 0x42A3E7: entry_notify (phonebook-dummy.c:308) ==18613== by 0x429DAD: foreach_vcard (phonebook-dummy.c:181) ==18613== by 0x429F58: create_cache (phonebook-dummy.c:325) ==18613== by 0x5502049: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2) ==18613== by 0x55023EF: g_main_context_iterate.isra.29 (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2) ==18613== by 0x5502711: g_main_loop_run (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2) ==18613== by 0x40E822: main (main.c:322) ==18613== If you believe this happened as a result of a stack ==18613== overflow in your program's main thread (unlikely but ==18613== possible), you can try to increase the size of the ==18613== main thread stack using the --main-stacksize= flag. ==18613== The main thread stack size used in this run was 8388608. ==18613== ==18613== HEAP SUMMARY: ==18613== in use at exit: 200,761 bytes in 1,783 blocks ==18613== total heap usage: 3,634 allocs, 1,851 frees, 1,239,904 bytes allocated ==18613== ==18613== 34 bytes in 4 blocks are definitely lost in loss record 182 of 377 ==18613== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==18613== by 0x4E43093: fakeCString (in /usr/lib/x86_64-linux-gnu/libicalvcal.so.1.0.1) ==18613== by 0x42A264: entry_notify (phonebook-dummy.c:287) ==18613== by 0x429DAD: foreach_vcard (phonebook-dummy.c:181) ==18613== by 0x429F58: create_cache (phonebook-dummy.c:325) ==18613== by 0x5502049: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2) ==18613== by 0x55023EF: g_main_context_iterate.isra.29 (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2) ==18613== by 0x5502711: g_main_loop_run (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2) ==18613== by 0x40E822: main (main.c:322) ==18613== ==18613== 40 (24 direct, 16 indirect) bytes in 1 blocks are definitely lost in loss record 212 of 377 ==18613== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==18613== by 0x5507718: g_malloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2) ==18613== by 0x551E922: g_slice_alloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2) ==18613== by 0x5522C82: g_string_sized_new (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2) ==18613== by 0x42A1C6: entry_notify (phonebook-dummy.c:278) ==18613== by 0x429DAD: foreach_vcard (phonebook-dummy.c:181) ==18613== by 0x429F58: create_cache (phonebook-dummy.c:325) ==18613== by 0x5502049: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2) ==18613== by 0x55023EF: g_main_context_iterate.isra.29 (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2) ==18613== by 0x5502711: g_main_loop_run (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2) ==18613== by 0x40E822: main (main.c:322) ==18613== ==18613== 42 bytes in 4 blocks are definitely lost in loss record 215 of 377 ==18613== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==18613== by 0x4E43093: fakeCString (in /usr/lib/x86_64-linux-gnu/libicalvcal.so.1.0.1) ==18613== by 0x42A20D: entry_notify (phonebook-dummy.c:282) ==18613== by 0x429DAD: foreach_vcard (phonebook-dummy.c:181) ==18613== by 0x429F58: create_cache (phonebook-dummy.c:325) ==18613== by 0x5502049: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2) ==18613== by 0x55023EF: g_main_context_iterate.isra.29 (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2) ==18613== by 0x5502711: g_main_loop_run (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2) ==18613== by 0x40E822: main (main.c:322) ==18613== ==18613== 51 bytes in 4 blocks are definitely lost in loss record 230 of 377 ==18613== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==18613== by 0x4E43093: fakeCString (in /usr/lib/x86_64-linux-gnu/libicalvcal.so.1.0.1) ==18613== by 0x42A3E7: entry_notify (phonebook-dummy.c:308) ==18613== by 0x429DAD: foreach_vcard (phonebook-dummy.c:181) ==18613== by 0x429F58: create_cache (phonebook-dummy.c:325) ==18613== by 0x5502049: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2) ==18613== by 0x55023EF: g_main_context_iterate.isra.29 (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2) ==18613== by 0x5502711: g_main_loop_run (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2) ==18613== by 0x40E822: main (main.c:322) ==18613== ==18613== 17,552 (160 direct, 17,392 indirect) bytes in 4 blocks are definitely lost in loss record 375 of 377 ==18613== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==18613== by 0x4E423DD: newVObject_ (in /usr/lib/x86_64-linux-gnu/libicalvcal.so.1.0.1) ==18613== by 0x4E425CB: addProp_ (in /usr/lib/x86_64-linux-gnu/libicalvcal.so.1.0.1) ==18613== by 0x4E44752: ??? (in /usr/lib/x86_64-linux-gnu/libicalvcal.so.1.0.1) ==18613== by 0x4E46234: mime_parse (in /usr/lib/x86_64-linux-gnu/libicalvcal.so.1.0.1) ==18613== by 0x4E468A2: ??? (in /usr/lib/x86_64-linux-gnu/libicalvcal.so.1.0.1) ==18613== by 0x4E46917: Parse_MIME_FromFile (in /usr/lib/x86_64-linux-gnu/libicalvcal.so.1.0.1) ==18613== by 0x429D7D: foreach_vcard (phonebook-dummy.c:179) ==18613== by 0x429F58: create_cache (phonebook-dummy.c:325) ==18613== by 0x5502049: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2) ==18613== by 0x55023EF: g_main_context_iterate.isra.29 (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2) ==18613== by 0x5502711: g_main_loop_run (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2) ==18613== ==18613== LEAK SUMMARY: ==18613== definitely lost: 311 bytes in 17 blocks ==18613== indirectly lost: 17,408 bytes in 76 blocks ==18613== possibly lost: 0 bytes in 0 blocks ==18613== still reachable: 183,042 bytes in 1,690 blocks ==18613== suppressed: 0 bytes in 0 blocks ==18613== Reachable blocks (those to which a pointer was found) are not shown. ==18613== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==18613== ==18613== For counts of detected and suppressed errors, rerun with: -v ==18613== ERROR SUMMARY: 6 errors from 6 contexts (suppressed: 0 from 0) Segmentation fault (core dumped)