You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
libtool --mode=execute valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=20 --track-fds=yes --track-origins=yes examples/r2i/ncsdk/googlenet -i ~/Work/R2Inference/ncsdk/examples/data/images/nps_acoustic_guitar.png -m ~/Work/R2Inference/ncsdk/examples/caffe/GoogLeNet/graph
==32152== Memcheck, a memory error detector
==32152== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==32152== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==32152== Command: /home/mgruner/Work/R2Inference/r2inference/examples/r2i/ncsdk/.libs/googlenet -i /home/mgruner/Work/R2Inference/ncsdk/examples/data/images/nps_acoustic_guitar.png -m /home/mgruner/Work/R2Inference/ncsdk/examples/caffe/GoogLeNet/graph
==32152==
Loading Model: /home/mgruner/Work/R2Inference/ncsdk/examples/caffe/GoogLeNet/graph...
Setting model to engine...
Loading image: /home/mgruner/Work/R2Inference/ncsdk/examples/data/images/nps_acoustic_guitar.png...
Configuring frame...
Starting engine...
==32152== Thread 3:
==32152== Syscall param ioctl(USBDEVFS_SUBMITURB).buffer points to uninitialised byte(s)
==32152== at 0x5B045D7: ioctl (syscall-template.S:78)
==32152== by 0x6278205: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x6274A29: libusb_submit_transfer (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x6276C8E: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x627703E: libusb_bulk_transfer (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x5DEED5D: vsc_usb_write (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x5DEAAEC: dispatcherEventSend (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x5DEDBBF: eventSchedulerRun (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x60546DA: start_thread (pthread_create.c:463)
==32152== by 0x5B0F88E: clone (clone.S:95)
==32152== Address 0x1ffefff638 is on thread 1's stack
==32152== in frame #3, created by ncDeviceOpen (???:)
==32152== Uninitialised value was created by a stack allocation
==32152== at 0x5DE4418: ncDeviceOpen (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152==
Predicting...
==32152== Thread 1:
==32152== Invalid read of size 4
==32152== at 0x4E983D9: r2i::ncsdk::Prediction::At(unsigned int, r2i::RuntimeError&) (prediction.cc:56)
==32152== by 0x12CB1A: PrintTopPrediction(std::shared_ptr<r2i::IPrediction>) (googlenet.cc:40)
==32152== by 0x12D71C: main (googlenet.cc:173)
==32152== Address 0x88c7970 is 0 bytes after a block of size 4,000 alloc'd
==32152== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==32152== by 0x4E97182: r2i::ncsdk::Engine::Predict(std::shared_ptr<r2i::IFrame>, r2i::RuntimeError&) (engine.cc:377)
==32152== by 0x12D68B: main (googlenet.cc:167)
==32152==
Highest probability is label 402 (0.996094)
Stopping engine...
==32152==
==32152== FILE DESCRIPTORS: 4 open at exit.
==32152== Open file descriptor 9: /dev/bus/usb/001/097
==32152== at 0x5AFDD19: open (open64.c:47)
==32152== by 0x627751A: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x627B398: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x6270F88: libusb_open (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x5DEF0EB: vsc_usb_open (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x5DEC007: XLinkConnect (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x5DE45FA: ncDeviceOpen (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x4E9633C: r2i::ncsdk::Engine::Start() (engine.cc:131)
==32152== by 0x12D594: main (googlenet.cc:160)
==32152==
==32152== Open file descriptor 2: /dev/pts/0
==32152== <inherited from parent>
==32152==
==32152== Open file descriptor 1: /dev/pts/0
==32152== <inherited from parent>
==32152==
==32152== Open file descriptor 0: /dev/pts/0
==32152== <inherited from parent>
==32152==
==32152==
==32152== HEAP SUMMARY:
==32152== in use at exit: 16,515 bytes in 18 blocks
==32152== total heap usage: 11,913 allocs, 11,895 frees, 22,725,891 bytes allocated
==32152==
==32152== 6 bytes in 1 blocks are still reachable in loss record 1 of 15
==32152== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==32152== by 0x5A8B9B9: strdup (strdup.c:42)
==32152== by 0x627AADF: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x627B0A8: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x627B659: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x627BDB3: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x6270C89: libusb_get_device_list (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x5DEA00E: usb_find_device (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x5DEF09A: vsc_usb_open (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x5DEC007: XLinkConnect (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x5DE45FA: ncDeviceOpen (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x4E9633C: r2i::ncsdk::Engine::Start() (engine.cc:131)
==32152== by 0x12D594: main (googlenet.cc:160)
==32152==
==32152== 9 bytes in 2 blocks are still reachable in loss record 2 of 15
==32152== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==32152== by 0x5A8B9B9: strdup (strdup.c:42)
==32152== by 0x627AADF: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x627BCC3: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x627A452: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x6271C9C: libusb_init (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x5DE379A: usb_library_load (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x4010732: call_init (dl-init.c:72)
==32152== by 0x4010732: _dl_init (dl-init.c:119)
==32152== by 0x40010C9: ??? (in /lib/x86_64-linux-gnu/ld-2.27.so)
==32152== by 0x4: ???
==32152== by 0x1FFEFFFF2A: ???
==32152== by 0x1FFEFFFF78: ???
==32152== by 0x1FFEFFFF7B: ???
==32152== by 0x1FFEFFFFCD: ???
==32152== by 0x1FFEFFFFD0: ???
==32152==
==32152== 24 bytes in 1 blocks are definitely lost in loss record 3 of 15
==32152== at 0x4C31B25: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==32152== by 0x5DE45E7: ncDeviceOpen (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x4E9633C: r2i::ncsdk::Engine::Start() (engine.cc:131)
==32152== by 0x12D594: main (googlenet.cc:160)
==32152==
==32152== 24 bytes in 1 blocks are definitely lost in loss record 4 of 15
==32152== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==32152== by 0x627638A: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x627B3CC: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x6270F88: libusb_open (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x5DEF0EB: vsc_usb_open (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x5DEC007: XLinkConnect (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x5DE45FA: ncDeviceOpen (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x4E9633C: r2i::ncsdk::Engine::Start() (engine.cc:131)
==32152== by 0x12D594: main (googlenet.cc:160)
==32152==
==32152== 32 bytes in 1 blocks are definitely lost in loss record 5 of 15
==32152== at 0x4C31B25: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==32152== by 0x6274141: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x627B137: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x627B63E: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x627B73C: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x60546DA: start_thread (pthread_create.c:463)
==32152== by 0x5B0F88E: clone (clone.S:95)
==32152==
==32152== 92 bytes in 1 blocks are still reachable in loss record 6 of 15
==32152== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==32152== by 0x6270F37: libusb_open (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x5DEF0EB: vsc_usb_open (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x5DEC007: XLinkConnect (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x5DE45FA: ncDeviceOpen (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x4E9633C: r2i::ncsdk::Engine::Start() (engine.cc:131)
==32152== by 0x12D594: main (googlenet.cc:160)
==32152==
==32152== 152 bytes in 1 blocks are still reachable in loss record 7 of 15
==32152== at 0x4C31B25: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==32152== by 0x62702E5: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x627AAB1: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x627B0A8: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x627B659: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x627BDB3: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x6270C89: libusb_get_device_list (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x5DEA00E: usb_find_device (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x5DEF09A: vsc_usb_open (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x5DEC007: XLinkConnect (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x5DE45FA: ncDeviceOpen (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x4E9633C: r2i::ncsdk::Engine::Start() (engine.cc:131)
==32152== by 0x12D594: main (googlenet.cc:160)
==32152==
==32152== 304 bytes in 2 blocks are still reachable in loss record 8 of 15
==32152== at 0x4C31B25: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==32152== by 0x62702E5: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x627AAB1: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x627BCC3: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x627A452: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x6271C9C: libusb_init (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x5DE379A: usb_library_load (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x4010732: call_init (dl-init.c:72)
==32152== by 0x4010732: _dl_init (dl-init.c:119)
==32152== by 0x40010C9: ??? (in /lib/x86_64-linux-gnu/ld-2.27.so)
==32152== by 0x4: ???
==32152== by 0x1FFEFFFF2A: ???
==32152== by 0x1FFEFFFF78: ???
==32152== by 0x1FFEFFFF7B: ???
==32152== by 0x1FFEFFFFCD: ???
==32152== by 0x1FFEFFFFD0: ???
==32152==
==32152== 304 bytes in 1 blocks are possibly lost in loss record 9 of 15
==32152== at 0x4C31B25: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==32152== by 0x40134A6: allocate_dtv (dl-tls.c:286)
==32152== by 0x40134A6: _dl_allocate_tls (dl-tls.c:530)
==32152== by 0x6055227: allocate_stack (allocatestack.c:627)
==32152== by 0x6055227: pthread_create@@GLIBC_2.2.5 (pthread_create.c:644)
==32152== by 0x5DEE554: dispatcherStart (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x5DEC03E: XLinkConnect (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x5DE45FA: ncDeviceOpen (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x4E9633C: r2i::ncsdk::Engine::Start() (engine.cc:131)
==32152== by 0x12D594: main (googlenet.cc:160)
==32152==
==32152== 304 bytes in 1 blocks are possibly lost in loss record 10 of 15
==32152== at 0x4C31B25: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==32152== by 0x40134A6: allocate_dtv (dl-tls.c:286)
==32152== by 0x40134A6: _dl_allocate_tls (dl-tls.c:530)
==32152== by 0x6055227: allocate_stack (allocatestack.c:627)
==32152== by 0x6055227: pthread_create@@GLIBC_2.2.5 (pthread_create.c:644)
==32152== by 0x5DED888: eventSchedulerRun (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x60546DA: start_thread (pthread_create.c:463)
==32152== by 0x5B0F88E: clone (clone.S:95)
==32152==
==32152== 1,024 bytes in 1 blocks are still reachable in loss record 11 of 15
==32152== at 0x4C2FA3F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==32152== by 0x4C31D84: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==32152== by 0x627ABB3: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x627B0A8: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x627B659: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x627BDB3: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x6270C89: libusb_get_device_list (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x5DEA00E: usb_find_device (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x5DEF09A: vsc_usb_open (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x5DEC007: XLinkConnect (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x5DE45FA: ncDeviceOpen (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x4E9633C: r2i::ncsdk::Engine::Start() (engine.cc:131)
==32152== by 0x12D594: main (googlenet.cc:160)
==32152==
==32152== 2,048 bytes in 2 blocks are still reachable in loss record 12 of 15
==32152== at 0x4C2FA3F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==32152== by 0x4C31D84: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==32152== by 0x627ABB3: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x627BCC3: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x627A452: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x6271C9C: libusb_init (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x5DE379A: usb_library_load (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x4010732: call_init (dl-init.c:72)
==32152== by 0x4010732: _dl_init (dl-init.c:119)
==32152== by 0x40010C9: ??? (in /lib/x86_64-linux-gnu/ld-2.27.so)
==32152== by 0x4: ???
==32152== by 0x1FFEFFFF2A: ???
==32152== by 0x1FFEFFFF78: ???
==32152== by 0x1FFEFFFF7B: ???
==32152== by 0x1FFEFFFFCD: ???
==32152== by 0x1FFEFFFFD0: ???
==32152==
==32152== 4,000 bytes in 1 blocks are definitely lost in loss record 13 of 15
==32152== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==32152== by 0x4E97182: r2i::ncsdk::Engine::Predict(std::shared_ptr<r2i::IFrame>, r2i::RuntimeError&) (engine.cc:377)
==32152== by 0x12D68B: main (googlenet.cc:167)
==32152==
==32152== 4,096 bytes in 1 blocks are still reachable in loss record 14 of 15
==32152== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==32152== by 0x668E70B: ??? (in /lib/x86_64-linux-gnu/libudev.so.1.6.9)
==32152== by 0x6691AF0: ??? (in /lib/x86_64-linux-gnu/libudev.so.1.6.9)
==32152== by 0x627BC0C: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x627A452: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x6271C9C: libusb_init (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x5DE379A: usb_library_load (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x4010732: call_init (dl-init.c:72)
==32152== by 0x4010732: _dl_init (dl-init.c:119)
==32152== by 0x40010C9: ??? (in /lib/x86_64-linux-gnu/ld-2.27.so)
==32152== by 0x4: ???
==32152== by 0x1FFEFFFF2A: ???
==32152== by 0x1FFEFFFF78: ???
==32152== by 0x1FFEFFFF7B: ???
==32152== by 0x1FFEFFFFCD: ???
==32152== by 0x1FFEFFFFD0: ???
==32152==
==32152== 4,096 bytes in 1 blocks are still reachable in loss record 15 of 15
==32152== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==32152== by 0x668E70B: ??? (in /lib/x86_64-linux-gnu/libudev.so.1.6.9)
==32152== by 0x6691DAB: ??? (in /lib/x86_64-linux-gnu/libudev.so.1.6.9)
==32152== by 0x66960AA: ??? (in /lib/x86_64-linux-gnu/libudev.so.1.6.9)
==32152== by 0x6696510: ??? (in /lib/x86_64-linux-gnu/libudev.so.1.6.9)
==32152== by 0x669851B: ??? (in /lib/x86_64-linux-gnu/libudev.so.1.6.9)
==32152== by 0x66988E4: ??? (in /lib/x86_64-linux-gnu/libudev.so.1.6.9)
==32152== by 0x6699F0E: udev_enumerate_scan_devices (in /lib/x86_64-linux-gnu/libudev.so.1.6.9)
==32152== by 0x627BC2A: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x627A452: ??? (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x6271C9C: libusb_init (in /lib/x86_64-linux-gnu/libusb-1.0.so.0.1.0)
==32152== by 0x5DE379A: usb_library_load (in /usr/local/lib/mvnc/libmvnc.so.0)
==32152== by 0x4010732: call_init (dl-init.c:72)
==32152== by 0x4010732: _dl_init (dl-init.c:119)
==32152== by 0x40010C9: ??? (in /lib/x86_64-linux-gnu/ld-2.27.so)
==32152== by 0x4: ???
==32152== by 0x1FFEFFFF2A: ???
==32152== by 0x1FFEFFFF78: ???
==32152== by 0x1FFEFFFF7B: ???
==32152== by 0x1FFEFFFFCD: ???
==32152== by 0x1FFEFFFFD0: ???
==32152==
==32152== LEAK SUMMARY:
==32152== definitely lost: 4,080 bytes in 4 blocks
==32152== indirectly lost: 0 bytes in 0 blocks
==32152== possibly lost: 608 bytes in 2 blocks
==32152== still reachable: 11,827 bytes in 12 blocks
==32152== suppressed: 0 bytes in 0 blocks
==32152==
==32152== For counts of detected and suppressed errors, rerun with: -v
==32152== ERROR SUMMARY: 13 errors from 8 contexts (suppressed: 0 from 0)
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: