Created
June 25, 2017 19:29
-
-
Save LanderU/943ed19a318fecb48d7ae23cc3c4b295 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
erle@erle-brain-3 ~ $ sudo valgrind --leak-check=yes --show-reachable=yes -v ./arducopter -A udp:10.0.0.2:6000 | |
==25891== Memcheck, a memory error detector | |
==25891== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al. | |
==25891== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info | |
==25891== Command: ./arducopter -A udp:10.0.0.2:6000 | |
==25891== | |
--25891-- Valgrind options: | |
--25891-- --suppressions=/usr/lib/valgrind/debian-libc6-dbg.supp | |
--25891-- --leak-check=yes | |
--25891-- --show-reachable=yes | |
--25891-- -v | |
--25891-- Contents of /proc/version: | |
--25891-- Linux version 4.4.20-v7+ (lander@erle) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #2 SMP PREEMPT Thu Sep 15 14:06:54 CEST 2016 | |
--25891-- Arch and hwcaps: ARM, ARMv7-vfp-neon | |
--25891-- Page sizes: currently 4096, max supported 4096 | |
--25891-- Valgrind library directory: /usr/lib/valgrind | |
--25891-- Reading syms from /home/erle/arducopter (0x8000) | |
--25891-- Reading syms from /lib/arm-linux-gnueabihf/ld-2.19.so (0x4000000) | |
--25891-- Considering /lib/arm-linux-gnueabihf/ld-2.19.so .. | |
--25891-- .. CRC mismatch (computed 046d513b wanted e6886948) | |
--25891-- Considering /usr/lib/debug/lib/arm-linux-gnueabihf/ld-2.19.so .. | |
--25891-- .. CRC is valid | |
--25891-- Reading syms from /usr/lib/valgrind/memcheck-arm-linux (0x38000000) | |
--25891-- Considering /usr/lib/valgrind/memcheck-arm-linux .. | |
--25891-- .. CRC mismatch (computed 490a0e7e wanted 8f7ca175) | |
--25891-- object doesn't have a symbol table | |
--25891-- object doesn't have a dynamic symbol table | |
--25891-- Reading suppressions file: /usr/lib/valgrind/debian-libc6-dbg.supp | |
--25891-- Reading suppressions file: /usr/lib/valgrind/default.supp | |
==25891== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-25891-by-root-on-??? | |
==25891== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-25891-by-root-on-??? | |
==25891== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-25891-by-root-on-??? | |
==25891== | |
==25891== TO CONTROL THIS PROCESS USING vgdb (which you probably | |
==25891== don't want to do, unless you know exactly what you're doing, | |
==25891== or are doing some strange experiment): | |
==25891== /usr/lib/valgrind/../../bin/vgdb --pid=25891 ...command... | |
==25891== | |
==25891== TO DEBUG THIS PROCESS USING GDB: start GDB like this | |
==25891== /path/to/gdb ./arducopter | |
==25891== and then give GDB the following command | |
==25891== target remote | /usr/lib/valgrind/../../bin/vgdb --pid=25891 | |
==25891== --pid is optional if only one valgrind process is running | |
==25891== | |
--25891-- Reading syms from /usr/lib/valgrind/vgpreload_core-arm-linux.so (0x4023000) | |
--25891-- Considering /usr/lib/valgrind/vgpreload_core-arm-linux.so .. | |
--25891-- .. CRC mismatch (computed 7ee02d17 wanted a974aa59) | |
--25891-- object doesn't have a symbol table | |
--25891-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-arm-linux.so (0x4831000) | |
--25891-- Considering /usr/lib/valgrind/vgpreload_memcheck-arm-linux.so .. | |
--25891-- .. CRC mismatch (computed 6edbceb6 wanted 98c7f138) | |
--25891-- object doesn't have a symbol table | |
--25891-- Reading syms from /usr/lib/arm-linux-gnueabihf/libarmmem.so (0x4842000) | |
--25891-- object doesn't have a symbol table | |
--25891-- Reading syms from /lib/arm-linux-gnueabihf/libdl-2.19.so (0x4871000) | |
--25891-- Considering /lib/arm-linux-gnueabihf/libdl-2.19.so .. | |
--25891-- .. CRC mismatch (computed a9c33e7d wanted d672a84c) | |
--25891-- Considering /usr/lib/debug/lib/arm-linux-gnueabihf/libdl-2.19.so .. | |
--25891-- .. CRC is valid | |
--25891-- Reading syms from /usr/lib/arm-linux-gnueabihf/libstdc++.so.6.0.20 (0x4884000) | |
--25891-- Considering /usr/lib/arm-linux-gnueabihf/libstdc++.so.6.0.20 .. | |
--25891-- .. CRC mismatch (computed 2cef529d wanted 68acc9e1) | |
--25891-- object doesn't have a symbol table | |
--25891-- Reading syms from /lib/arm-linux-gnueabihf/libm-2.19.so (0x4960000) | |
--25891-- Considering /lib/arm-linux-gnueabihf/libm-2.19.so .. | |
--25891-- .. CRC mismatch (computed a93f83f3 wanted deac2203) | |
--25891-- Considering /usr/lib/debug/lib/arm-linux-gnueabihf/libm-2.19.so .. | |
--25891-- .. CRC is valid | |
--25891-- Reading syms from /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x49db000) | |
--25891-- Considering /lib/arm-linux-gnueabihf/libgcc_s.so.1 .. | |
--25891-- .. CRC mismatch (computed be1a006e wanted b78194c6) | |
--25891-- object doesn't have a symbol table | |
--25891-- Reading syms from /lib/arm-linux-gnueabihf/libpthread-2.19.so (0x4a08000) | |
--25891-- Considering /lib/arm-linux-gnueabihf/libpthread-2.19.so .. | |
--25891-- .. CRC mismatch (computed efe7d0b9 wanted 36891aab) | |
--25891-- Considering /usr/lib/debug/lib/arm-linux-gnueabihf/libpthread-2.19.so .. | |
--25891-- .. CRC is valid | |
--25891-- Reading syms from /lib/arm-linux-gnueabihf/libc-2.19.so (0x4a30000) | |
--25891-- Considering /lib/arm-linux-gnueabihf/libc-2.19.so .. | |
--25891-- .. CRC mismatch (computed f07876d7 wanted d82c5bf3) | |
--25891-- Considering /usr/lib/debug/lib/arm-linux-gnueabihf/libc-2.19.so .. | |
--25891-- .. CRC is valid | |
--25891-- REDIR: 0x4aa8ad0 (rindex) redirected to 0x4835ef8 (rindex) | |
--25891-- REDIR: 0x4aa487c (calloc) redirected to 0x48356b8 (calloc) | |
--25891-- REDIR: 0x4aa3d44 (malloc) redirected to 0x48338ec (malloc) | |
--25891-- REDIR: 0x4aa9490 (strstr) redirected to 0x48394c0 (strstr) | |
--25891-- REDIR: 0x4aa9a40 (memchr) redirected to 0x483753c (memchr) | |
--25891-- REDIR: 0x4aaa990 (memcpy) redirected to 0x4837af0 (memcpy) | |
--25891-- REDIR: 0x4aa44f8 (free) redirected to 0x4834a88 (free) | |
--25891-- REDIR: 0x4aa85e0 (strlen) redirected to 0x48366ec (strlen) | |
Raspberry Pi 2/3 with BCM2709! | |
--25891-- WARNING: unhandled syscall: 357 | |
==25891== at 0x4AFE70C: epoll_create1 (syscall-template.S:81) | |
==25891== by 0x7D5C7: Linux::Poller::Poller() (in /home/erle/arducopter) | |
--25891-- You may be able to write your own handler. | |
--25891-- Read the file README_MISSING_SYSCALL_OR_IOCTL. | |
--25891-- Nevertheless we consider this a bug. Please report | |
--25891-- it at http://valgrind.org/support/bug_reports.html. | |
--25891-- REDIR: 0x4aac530 (strchrnul) redirected to 0x483901c (strchrnul) | |
--25891-- REDIR: 0x4aaa3b0 (mempcpy) redirected to 0x483917c (mempcpy) | |
--25891-- REDIR: 0x4aa8864 (strncmp) redirected to 0x4836cbc (strncmp) | |
--25891-- REDIR: 0x4aa7f40 (stpcpy) redirected to 0x4838834 (stpcpy) | |
Failed to create epoll: Function not implemented | |
--25891-- REDIR: 0x4aa9ba0 (bcmp) redirected to 0x483875c (bcmp) | |
--25891-- REDIR: 0x4aa7ef0 (strcmp) redirected to 0x483739c (strcmp) | |
--25891-- REDIR: 0x4aa7e20 (index) redirected to 0x4836004 (index) | |
--25891-- REDIR: 0x4aa45b0 (realloc) redirected to 0x4835808 (realloc) | |
==25891== Thread 2: | |
==25891== Invalid write of size 4 | |
==25891== at 0x7F5DA: Linux::Thread::_poison_stack() (in /home/erle/arducopter) | |
==25891== Address 0x506cbe0 is just below the stack ptr. To suppress, use: --workaround-gcc296-bugs=yes | |
==25891== | |
==25891== Invalid write of size 4 | |
==25891== at 0x7F5D4: Linux::Thread::_poison_stack() (in /home/erle/arducopter) | |
==25891== Address 0x506cbe4 is just below the stack ptr. To suppress, use: --workaround-gcc296-bugs=yes | |
==25891== | |
==25891== Warning: noted but unhandled ioctl 0x707 with no size/direction hints | |
==25891== This could cause spurious value errors to appear. | |
==25891== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper. | |
==25891== Warning: noted but unhandled ioctl 0x707 with no size/direction hints | |
==25891== This could cause spurious value errors to appear. | |
==25891== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper. | |
==25891== Warning: noted but unhandled ioctl 0x707 with no size/direction hints | |
==25891== This could cause spurious value errors to appear. | |
==25891== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper. | |
==25891== Warning: bad signal number 0 in sigaction() | |
==25891== Warning: bad signal number 0 in sigaction() | |
==25891== Warning: ignored attempt to set SIGKILL handler in sigaction(); | |
==25891== the SIGKILL signal is uncatchable | |
==25891== Warning: ignored attempt to set SIGSTOP handler in sigaction(); | |
==25891== the SIGSTOP signal is uncatchable | |
--25891-- REDIR: 0x4aa8f60 (strspn) redirected to 0x483966c (strspn) | |
--25891-- REDIR: 0x4aa8ba0 (strpbrk) redirected to 0x483955c (strpbrk) | |
--25891-- REDIR: 0x4aac4a0 (rawmemchr) redirected to 0x4839068 (rawmemchr) | |
Could not create periodic callback | |
--25891-- REDIR: 0x4aaa330 (memset) redirected to 0x4838c94 (memset) | |
==25891== | |
==25891== HEAP SUMMARY: | |
==25891== in use at exit: 1,101 bytes in 17 blocks | |
==25891== total heap usage: 57 allocs, 40 frees, 51,798 bytes allocated | |
==25891== | |
==25891== Searching for pointers to 17 not-freed blocks | |
==25891== Checked 9,151,948 bytes | |
==25891== | |
==25891== Thread 1: | |
==25891== 9 bytes in 1 blocks are still reachable in loss record 1 of 4 | |
==25891== at 0x4833970: malloc (in /usr/lib/valgrind/vgpreload_memcheck-arm-linux.so) | |
==25891== | |
==25891== 160 bytes in 5 blocks are definitely lost in loss record 2 of 4 | |
==25891== at 0x4833970: malloc (in /usr/lib/valgrind/vgpreload_memcheck-arm-linux.so) | |
==25891== | |
==25891== 212 bytes in 6 blocks are still reachable in loss record 3 of 4 | |
==25891== at 0x4835770: calloc (in /usr/lib/valgrind/vgpreload_memcheck-arm-linux.so) | |
==25891== | |
==25891== 720 bytes in 5 blocks are possibly lost in loss record 4 of 4 | |
==25891== at 0x4835770: calloc (in /usr/lib/valgrind/vgpreload_memcheck-arm-linux.so) | |
==25891== | |
==25891== LEAK SUMMARY: | |
==25891== definitely lost: 160 bytes in 5 blocks | |
==25891== indirectly lost: 0 bytes in 0 blocks | |
==25891== possibly lost: 720 bytes in 5 blocks | |
==25891== still reachable: 221 bytes in 7 blocks | |
==25891== suppressed: 0 bytes in 0 blocks | |
==25891== | |
==25891== ERROR SUMMARY: 295 errors from 4 contexts (suppressed: 0 from 0) | |
==25891== | |
==25891== 72 errors in context 1 of 4: | |
==25891== Thread 2: | |
==25891== Invalid write of size 4 | |
==25891== at 0x7F5D4: Linux::Thread::_poison_stack() (in /home/erle/arducopter) | |
==25891== Address 0x506cbe4 is just below the stack ptr. To suppress, use: --workaround-gcc296-bugs=yes | |
==25891== | |
==25891== | |
==25891== 221 errors in context 2 of 4: | |
==25891== Invalid write of size 4 | |
==25891== at 0x7F5DA: Linux::Thread::_poison_stack() (in /home/erle/arducopter) | |
==25891== Address 0x506cbe0 is just below the stack ptr. To suppress, use: --workaround-gcc296-bugs=yes | |
==25891== | |
==25891== ERROR SUMMARY: 295 errors from 4 contexts (suppressed: 0 from 0) |
Author
LanderU
commented
Jun 25, 2017
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment