|
| 1 | +==87752== Memcheck, a memory error detector |
| 2 | +==87752== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. |
| 3 | +==87752== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info |
| 4 | +==87752== Command: ./build/zephyr/zephyr.exe --bt-dev=hci0 |
| 5 | +==87752== Parent PID: 87751 |
| 6 | +==87752== |
| 7 | +==87752== Thread 3: |
| 8 | +==87752== Syscall param socketcall.bind(my_addr.rc_bdaddr) points to uninitialised byte(s) |
| 9 | +==87752== at 0x42924B2: bind (bind.c:32) |
| 10 | +==87752== by 0x80508D6: user_chan_open (userchan.c:344) |
| 11 | +==87752== by 0x80508D6: uc_open (userchan.c:388) |
| 12 | +==87752== by 0x804F5AE: bt_hci_open (bluetooth.h:127) |
| 13 | +==87752== by 0x804F5AE: bt_enable (hci_core.c:4360) |
| 14 | +==87752== by 0x8049B34: _posix_zephyr_main (main.c:105) |
| 15 | +==87752== by 0x80514F7: bg_thread_main (init.c:564) |
| 16 | +==87752== by 0x804A615: z_thread_entry (thread_entry.c:48) |
| 17 | +==87752== by 0x804BB21: posix_arch_thread_entry (thread.c:96) |
| 18 | +==87752== by 0x804BE4D: nct_thread_starter (nct.c:366) |
| 19 | +==87752== by 0x41F4C00: start_thread (pthread_create.c:442) |
| 20 | +==87752== by 0x428F309: clone (clone.S:107) |
| 21 | +==87752== Address 0x57a620c is on thread 3's stack |
| 22 | +==87752== in frame #1, created by uc_open (userchan.c:379) |
| 23 | +==87752== Uninitialised value was created by a stack allocation |
| 24 | +==87752== at 0x8050879: uc_open (userchan.c:379) |
| 25 | +==87752== |
| 26 | +==87752== Syscall param socketcall.bind(my_addr.rc_channel) points to uninitialised byte(s) |
| 27 | +==87752== at 0x42924B2: bind (bind.c:32) |
| 28 | +==87752== by 0x80508D6: user_chan_open (userchan.c:344) |
| 29 | +==87752== by 0x80508D6: uc_open (userchan.c:388) |
| 30 | +==87752== by 0x804F5AE: bt_hci_open (bluetooth.h:127) |
| 31 | +==87752== by 0x804F5AE: bt_enable (hci_core.c:4360) |
| 32 | +==87752== by 0x8049B34: _posix_zephyr_main (main.c:105) |
| 33 | +==87752== by 0x80514F7: bg_thread_main (init.c:564) |
| 34 | +==87752== by 0x804A615: z_thread_entry (thread_entry.c:48) |
| 35 | +==87752== by 0x804BB21: posix_arch_thread_entry (thread.c:96) |
| 36 | +==87752== by 0x804BE4D: nct_thread_starter (nct.c:366) |
| 37 | +==87752== by 0x41F4C00: start_thread (pthread_create.c:442) |
| 38 | +==87752== by 0x428F309: clone (clone.S:107) |
| 39 | +==87752== Address 0x57a620e is on thread 3's stack |
| 40 | +==87752== in frame #1, created by uc_open (userchan.c:379) |
| 41 | +==87752== Uninitialised value was created by a stack allocation |
| 42 | +==87752== at 0x8050879: uc_open (userchan.c:379) |
| 43 | +==87752== |
| 44 | +==87752== |
| 45 | +==87752== HEAP SUMMARY: |
| 46 | +==87752== in use at exit: 2,768 bytes in 7 blocks |
| 47 | +==87752== total heap usage: 18 allocs, 11 frees, 14,278 bytes allocated |
| 48 | +==87752== |
| 49 | +==87752== Thread 1: |
| 50 | +==87752== 80 bytes in 1 blocks are still reachable in loss record 1 of 7 |
| 51 | +==87752== at 0x4048354: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-x86-linux.so) |
| 52 | +==87752== by 0x804C208: nce_init (nce.c:60) |
| 53 | +==87752== by 0x804C8B1: posix_boot_cpu (soc.c:124) |
| 54 | +==87752== by 0x804D762: posix_init (main.c:80) |
| 55 | +==87752== by 0x804D78F: main (main.c:112) |
| 56 | +==87752== |
| 57 | +==87752== 96 bytes in 1 blocks are still reachable in loss record 2 of 7 |
| 58 | +==87752== at 0x4048354: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-x86-linux.so) |
| 59 | +==87752== by 0x804C018: nct_init (nct.c:512) |
| 60 | +==87752== by 0x804BBB5: posix_arch_init (posix_core_nsi.c:23) |
| 61 | +==87752== by 0x804C8BB: posix_boot_cpu (soc.c:125) |
| 62 | +==87752== by 0x804D762: posix_init (main.c:80) |
| 63 | +==87752== by 0x804D78F: main (main.c:112) |
| 64 | +==87752== |
| 65 | +==87752== 136 bytes in 1 blocks are possibly lost in loss record 3 of 7 |
| 66 | +==87752== at 0x4048354: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-x86-linux.so) |
| 67 | +==87752== by 0x4011D66: calloc (rtld-malloc.h:44) |
| 68 | +==87752== by 0x4011D66: allocate_dtv (dl-tls.c:375) |
| 69 | +==87752== by 0x4012823: _dl_allocate_tls (dl-tls.c:634) |
| 70 | +==87752== by 0x41F57F9: allocate_stack (allocatestack.c:430) |
| 71 | +==87752== by 0x41F57F9: pthread_create@@GLIBC_2.34 (pthread_create.c:647) |
| 72 | +==87752== by 0x804C322: nce_boot_cpu (nce.c:209) |
| 73 | +==87752== by 0x804C8CD: posix_boot_cpu (soc.c:126) |
| 74 | +==87752== by 0x804D762: posix_init (main.c:80) |
| 75 | +==87752== by 0x804D78F: main (main.c:112) |
| 76 | +==87752== |
| 77 | +==87752== 136 bytes in 1 blocks are possibly lost in loss record 4 of 7 |
| 78 | +==87752== at 0x4048354: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-x86-linux.so) |
| 79 | +==87752== by 0x4011D66: calloc (rtld-malloc.h:44) |
| 80 | +==87752== by 0x4011D66: allocate_dtv (dl-tls.c:375) |
| 81 | +==87752== by 0x4012823: _dl_allocate_tls (dl-tls.c:634) |
| 82 | +==87752== by 0x41F57F9: allocate_stack (allocatestack.c:430) |
| 83 | +==87752== by 0x41F57F9: pthread_create@@GLIBC_2.34 (pthread_create.c:647) |
| 84 | +==87752== by 0x804BFEF: nct_new_thread (nct.c:476) |
| 85 | +==87752== by 0x804BC19: posix_new_thread (posix_core_nsi.c:48) |
| 86 | +==87752== by 0x804BAF9: arch_new_thread (thread.c:55) |
| 87 | +==87752== by 0x80521BC: z_setup_new_thread (thread.c:564) |
| 88 | +==87752== by 0x805154A: init_idle_thread (init.c:597) |
| 89 | +==87752== by 0x805154A: z_init_cpu (init.c:610) |
| 90 | +==87752== by 0x805160D: prepare_multithreading (init.c:681) |
| 91 | +==87752== by 0x805160D: z_cstart (init.c:795) |
| 92 | +==87752== by 0x804C17B: sw_wrapper (nce.c:184) |
| 93 | +==87752== by 0x41F4C00: start_thread (pthread_create.c:442) |
| 94 | +==87752== |
| 95 | +==87752== 136 bytes in 1 blocks are possibly lost in loss record 5 of 7 |
| 96 | +==87752== at 0x4048354: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-x86-linux.so) |
| 97 | +==87752== by 0x4011D66: calloc (rtld-malloc.h:44) |
| 98 | +==87752== by 0x4011D66: allocate_dtv (dl-tls.c:375) |
| 99 | +==87752== by 0x4012823: _dl_allocate_tls (dl-tls.c:634) |
| 100 | +==87752== by 0x41F57F9: allocate_stack (allocatestack.c:430) |
| 101 | +==87752== by 0x41F57F9: pthread_create@@GLIBC_2.34 (pthread_create.c:647) |
| 102 | +==87752== by 0x804BFEF: nct_new_thread (nct.c:476) |
| 103 | +==87752== by 0x804BC19: posix_new_thread (posix_core_nsi.c:48) |
| 104 | +==87752== by 0x804BAF9: arch_new_thread (thread.c:55) |
| 105 | +==87752== by 0x80521BC: z_setup_new_thread (thread.c:564) |
| 106 | +==87752== by 0x8052210: z_impl_k_thread_create (thread.c:659) |
| 107 | +==87752== by 0x805202C: k_thread_create (kernel.h:85) |
| 108 | +==87752== by 0x805202C: k_work_queue_start (work.c:752) |
| 109 | +==87752== by 0x8051B71: k_sys_work_q_init (system_work_q.c:30) |
| 110 | +==87752== by 0x805142B: z_sys_init_run_level (init.c:371) |
| 111 | +==87752== |
| 112 | +==87752== 136 bytes in 1 blocks are possibly lost in loss record 6 of 7 |
| 113 | +==87752== at 0x4048354: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-x86-linux.so) |
| 114 | +==87752== by 0x4011D66: calloc (rtld-malloc.h:44) |
| 115 | +==87752== by 0x4011D66: allocate_dtv (dl-tls.c:375) |
| 116 | +==87752== by 0x4012823: _dl_allocate_tls (dl-tls.c:634) |
| 117 | +==87752== by 0x41F57F9: allocate_stack (allocatestack.c:430) |
| 118 | +==87752== by 0x41F57F9: pthread_create@@GLIBC_2.34 (pthread_create.c:647) |
| 119 | +==87752== by 0x804BFEF: nct_new_thread (nct.c:476) |
| 120 | +==87752== by 0x804BC19: posix_new_thread (posix_core_nsi.c:48) |
| 121 | +==87752== by 0x804BAF9: arch_new_thread (thread.c:55) |
| 122 | +==87752== by 0x80521BC: z_setup_new_thread (thread.c:564) |
| 123 | +==87752== by 0x8052210: z_impl_k_thread_create (thread.c:659) |
| 124 | +==87752== by 0x8050986: k_thread_create (kernel.h:85) |
| 125 | +==87752== by 0x8050986: uc_open (userchan.c:397) |
| 126 | +==87752== by 0x804F5AE: bt_hci_open (bluetooth.h:127) |
| 127 | +==87752== by 0x804F5AE: bt_enable (hci_core.c:4360) |
| 128 | +==87752== by 0x8049B34: _posix_zephyr_main (main.c:105) |
| 129 | +==87752== |
| 130 | +==87752== 2,048 bytes in 1 blocks are still reachable in loss record 7 of 7 |
| 131 | +==87752== at 0x4048354: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-x86-linux.so) |
| 132 | +==87752== by 0x804C084: nct_init (nct.c:524) |
| 133 | +==87752== by 0x804BBB5: posix_arch_init (posix_core_nsi.c:23) |
| 134 | +==87752== by 0x804C8BB: posix_boot_cpu (soc.c:125) |
| 135 | +==87752== by 0x804D762: posix_init (main.c:80) |
| 136 | +==87752== by 0x804D78F: main (main.c:112) |
| 137 | +==87752== |
| 138 | +==87752== LEAK SUMMARY: |
| 139 | +==87752== definitely lost: 0 bytes in 0 blocks |
| 140 | +==87752== indirectly lost: 0 bytes in 0 blocks |
| 141 | +==87752== possibly lost: 544 bytes in 4 blocks |
| 142 | +==87752== still reachable: 2,224 bytes in 3 blocks |
| 143 | +==87752== suppressed: 0 bytes in 0 blocks |
| 144 | +==87752== |
| 145 | +==87752== For lists of detected and suppressed errors, rerun with: -s |
| 146 | +==87752== ERROR SUMMARY: 6 errors from 6 contexts (suppressed: 0 from 0) |
0 commit comments