-
-
Save mlaunois/c727be171198967e0091e64f541573e3 to your computer and use it in GitHub Desktop.
Valgrind output log on program with getopt_long: 6th April 2019
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
==25129== Memcheck, a memory error detector | |
==25129== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. | |
==25129== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info | |
==25129== Command: ./exec.elf version --ue | |
==25129== | |
--25129-- Valgrind options: | |
--25129-- -v | |
--25129-- --track-origins=yes | |
--25129-- Contents of /proc/version: | |
--25129-- Linux version 4.18.0-17-generic (buildd@lcy01-amd64-022) (gcc version 8.2.0 (Ubuntu 8.2.0-7ubuntu1)) #18-Ubuntu SMP Wed Mar 13 14:34:40 UTC 2019 | |
--25129-- | |
--25129-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-rdtscp-sse3 | |
--25129-- Page sizes: currently 4096, max supported 4096 | |
--25129-- Valgrind library directory: /usr/lib/valgrind | |
--25129-- Reading syms from /home/maxime/Documents/Programmation/APM-FOSS/src/exec.elf | |
--25129-- Reading syms from /lib/x86_64-linux-gnu/ld-2.28.so | |
--25129-- Considering /lib/x86_64-linux-gnu/ld-2.28.so .. | |
--25129-- .. CRC mismatch (computed 5ec4c3b2 wanted 81437a46) | |
--25129-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.28.so .. | |
--25129-- .. CRC is valid | |
--25129-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux | |
--25129-- Considering /usr/lib/valgrind/memcheck-amd64-linux .. | |
--25129-- .. CRC mismatch (computed 7d55ff08 wanted 5bd5b496) | |
--25129-- object doesn't have a symbol table | |
--25129-- object doesn't have a dynamic symbol table | |
--25129-- Scheduler: using generic scheduler lock implementation. | |
--25129-- Reading suppressions file: /usr/lib/valgrind/default.supp | |
==25129== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-25129-by-root-on-??? | |
==25129== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-25129-by-root-on-??? | |
==25129== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-25129-by-root-on-??? | |
==25129== | |
==25129== TO CONTROL THIS PROCESS USING vgdb (which you probably | |
==25129== don't want to do, unless you know exactly what you're doing, | |
==25129== or are doing some strange experiment): | |
==25129== /usr/lib/valgrind/../../bin/vgdb --pid=25129 ...command... | |
==25129== | |
==25129== TO DEBUG THIS PROCESS USING GDB: start GDB like this | |
==25129== /path/to/gdb ./exec.elf | |
==25129== and then give GDB the following command | |
==25129== target remote | /usr/lib/valgrind/../../bin/vgdb --pid=25129 | |
==25129== --pid is optional if only one valgrind process is running | |
==25129== | |
--25129-- REDIR: 0x40203c0 (ld-linux-x86-64.so.2:strlen) redirected to 0x5805a041 (???) | |
--25129-- REDIR: 0x40201a0 (ld-linux-x86-64.so.2:index) redirected to 0x5805a05b (???) | |
--25129-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so | |
--25129-- Considering /usr/lib/valgrind/vgpreload_core-amd64-linux.so .. | |
--25129-- .. CRC mismatch (computed df1b7509 wanted fd78710c) | |
--25129-- object doesn't have a symbol table | |
--25129-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so | |
--25129-- Considering /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so .. | |
--25129-- .. CRC mismatch (computed 4ed40f91 wanted 9c0db13a) | |
--25129-- object doesn't have a symbol table | |
==25129== WARNING: new redirection conflicts with existing -- ignoring it | |
--25129-- old: 0x040203c0 (strlen ) R-> (0000.0) 0x5805a041 ??? | |
--25129-- new: 0x040203c0 (strlen ) R-> (2007.0) 0x0483a970 strlen | |
--25129-- REDIR: 0x401cbe0 (ld-linux-x86-64.so.2:strcmp) redirected to 0x483ba30 (strcmp) | |
--25129-- REDIR: 0x4020900 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x483edf0 (mempcpy) | |
--25129-- Reading syms from /lib/x86_64-linux-gnu/libc-2.28.so | |
--25129-- Considering /lib/x86_64-linux-gnu/libc-2.28.so .. | |
--25129-- .. CRC mismatch (computed f813393c wanted b5a550c8) | |
--25129-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.28.so .. | |
--25129-- .. CRC is valid | |
--25129-- REDIR: 0x4913230 (libc.so.6:memmove) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x4912430 (libc.so.6:strncpy) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x4913510 (libc.so.6:strcasecmp) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x4911e60 (libc.so.6:strcat) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x4912460 (libc.so.6:rindex) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x4914c80 (libc.so.6:rawmemchr) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x492fc70 (libc.so.6:wcscmp) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x49133a0 (libc.so.6:mempcpy) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x49131d0 (libc.so.6:bcmp) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x49123d0 (libc.so.6:strncmp) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x4911ed0 (libc.so.6:strcmp) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x4913300 (libc.so.6:memset) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x492fc40 (libc.so.6:wcschr) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x4912370 (libc.so.6:strnlen) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x4911f60 (libc.so.6:strcspn) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x4913560 (libc.so.6:strncasecmp) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x4911f30 (libc.so.6:strcpy) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x49136a0 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x4912490 (libc.so.6:strpbrk) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x4911e90 (libc.so.6:index) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x4912340 (libc.so.6:strlen) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x491c190 (libc.so.6:memrchr) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x49135b0 (libc.so.6:strcasecmp_l) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x49131a0 (libc.so.6:memchr) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x492fd50 (libc.so.6:wcslen) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x4912730 (libc.so.6:strspn) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x49134e0 (libc.so.6:stpncpy) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x49134b0 (libc.so.6:stpcpy) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x4914cb0 (libc.so.6:strchrnul) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x4913600 (libc.so.6:strncasecmp_l) redirected to 0x482d1b0 (_vgnU_ifunc_wrapper) | |
--25129-- REDIR: 0x4924e00 (libc.so.6:__strrchr_sse2) redirected to 0x483a3c0 (__strrchr_sse2) | |
--25129-- REDIR: 0x491d940 (libc.so.6:__strcmp_sse2_unaligned) redirected to 0x483b8f0 (strcmp) | |
--25129-- REDIR: 0x49250f0 (libc.so.6:__strlen_sse2) redirected to 0x483a8b0 (__strlen_sse2) | |
--25129-- REDIR: 0x49f24f0 (libc.so.6:__strncmp_sse42) redirected to 0x483b150 (__strncmp_sse42) | |
==25129== Conditional jump or move depends on uninitialised value(s) | |
==25129== at 0x4975B74: process_long_option (getopt.c:211) | |
==25129== by 0x49764BE: _getopt_internal_r (getopt.c:650) | |
==25129== by 0x4976720: _getopt_internal (getopt.c:711) | |
==25129== by 0x497679D: getopt_long (getopt1.c:31) | |
==25129== by 0x10961B: pm_parse_version_arguments(int, char**) (pm.cpp:107) | |
==25129== by 0x109518: pm_parse_arguments(int, char**) (pm.cpp:79) | |
==25129== by 0x10941F: main (pm.cpp:49) | |
==25129== Uninitialised value was created by a stack allocation | |
==25129== at 0x109532: pm_parse_version_arguments(int, char**) (pm.cpp:95) | |
==25129== | |
==25129== Use of uninitialised value of size 8 | |
==25129== at 0x483B155: __strncmp_sse42 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) | |
==25129== by 0x4975B50: process_long_option (getopt.c:212) | |
==25129== by 0x49764BE: _getopt_internal_r (getopt.c:650) | |
==25129== by 0x4976720: _getopt_internal (getopt.c:711) | |
==25129== by 0x497679D: getopt_long (getopt1.c:31) | |
==25129== by 0x10961B: pm_parse_version_arguments(int, char**) (pm.cpp:107) | |
==25129== by 0x109518: pm_parse_arguments(int, char**) (pm.cpp:79) | |
==25129== by 0x10941F: main (pm.cpp:49) | |
==25129== Uninitialised value was created by a stack allocation | |
==25129== at 0x109532: pm_parse_version_arguments(int, char**) (pm.cpp:95) | |
==25129== | |
==25129== Invalid read of size 1 | |
==25129== at 0x483B155: __strncmp_sse42 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) | |
==25129== by 0x4975B50: process_long_option (getopt.c:212) | |
==25129== by 0x49764BE: _getopt_internal_r (getopt.c:650) | |
==25129== by 0x4976720: _getopt_internal (getopt.c:711) | |
==25129== by 0x497679D: getopt_long (getopt1.c:31) | |
==25129== by 0x10961B: pm_parse_version_arguments(int, char**) (pm.cpp:107) | |
==25129== by 0x109518: pm_parse_arguments(int, char**) (pm.cpp:79) | |
==25129== by 0x10941F: main (pm.cpp:49) | |
==25129== Address 0xc2 is not stack'd, malloc'd or (recently) free'd | |
==25129== | |
==25129== | |
==25129== Process terminating with default action of signal 11 (SIGSEGV) | |
==25129== Access not within mapped region at address 0xC2 | |
==25129== at 0x483B155: __strncmp_sse42 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) | |
==25129== by 0x4975B50: process_long_option (getopt.c:212) | |
==25129== by 0x49764BE: _getopt_internal_r (getopt.c:650) | |
==25129== by 0x4976720: _getopt_internal (getopt.c:711) | |
==25129== by 0x497679D: getopt_long (getopt1.c:31) | |
==25129== by 0x10961B: pm_parse_version_arguments(int, char**) (pm.cpp:107) | |
==25129== by 0x109518: pm_parse_arguments(int, char**) (pm.cpp:79) | |
==25129== by 0x10941F: main (pm.cpp:49) | |
==25129== If you believe this happened as a result of a stack | |
==25129== overflow in your program's main thread (unlikely but | |
==25129== possible), you can try to increase the size of the | |
==25129== main thread stack using the --main-stacksize= flag. | |
==25129== The main thread stack size used in this run was 8388608. | |
--25129-- REDIR: 0x490e310 (libc.so.6:free) redirected to 0x4838910 (free) | |
==25129== | |
==25129== HEAP SUMMARY: | |
==25129== in use at exit: 0 bytes in 0 blocks | |
==25129== total heap usage: 0 allocs, 0 frees, 0 bytes allocated | |
==25129== | |
==25129== All heap blocks were freed -- no leaks are possible | |
==25129== | |
==25129== ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 0 from 0) | |
==25129== | |
==25129== 1 errors in context 1 of 3: | |
==25129== Invalid read of size 1 | |
==25129== at 0x483B155: __strncmp_sse42 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) | |
==25129== by 0x4975B50: process_long_option (getopt.c:212) | |
==25129== by 0x49764BE: _getopt_internal_r (getopt.c:650) | |
==25129== by 0x4976720: _getopt_internal (getopt.c:711) | |
==25129== by 0x497679D: getopt_long (getopt1.c:31) | |
==25129== by 0x10961B: pm_parse_version_arguments(int, char**) (pm.cpp:107) | |
==25129== by 0x109518: pm_parse_arguments(int, char**) (pm.cpp:79) | |
==25129== by 0x10941F: main (pm.cpp:49) | |
==25129== Address 0xc2 is not stack'd, malloc'd or (recently) free'd | |
==25129== | |
==25129== | |
==25129== 1 errors in context 2 of 3: | |
==25129== Use of uninitialised value of size 8 | |
==25129== at 0x483B155: __strncmp_sse42 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) | |
==25129== by 0x4975B50: process_long_option (getopt.c:212) | |
==25129== by 0x49764BE: _getopt_internal_r (getopt.c:650) | |
==25129== by 0x4976720: _getopt_internal (getopt.c:711) | |
==25129== by 0x497679D: getopt_long (getopt1.c:31) | |
==25129== by 0x10961B: pm_parse_version_arguments(int, char**) (pm.cpp:107) | |
==25129== by 0x109518: pm_parse_arguments(int, char**) (pm.cpp:79) | |
==25129== by 0x10941F: main (pm.cpp:49) | |
==25129== Uninitialised value was created by a stack allocation | |
==25129== at 0x109532: pm_parse_version_arguments(int, char**) (pm.cpp:95) | |
==25129== | |
==25129== | |
==25129== 1 errors in context 3 of 3: | |
==25129== Conditional jump or move depends on uninitialised value(s) | |
==25129== at 0x4975B74: process_long_option (getopt.c:211) | |
==25129== by 0x49764BE: _getopt_internal_r (getopt.c:650) | |
==25129== by 0x4976720: _getopt_internal (getopt.c:711) | |
==25129== by 0x497679D: getopt_long (getopt1.c:31) | |
==25129== by 0x10961B: pm_parse_version_arguments(int, char**) (pm.cpp:107) | |
==25129== by 0x109518: pm_parse_arguments(int, char**) (pm.cpp:79) | |
==25129== by 0x10941F: main (pm.cpp:49) | |
==25129== Uninitialised value was created by a stack allocation | |
==25129== at 0x109532: pm_parse_version_arguments(int, char**) (pm.cpp:95) | |
==25129== | |
==25129== ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 0 from 0) | |
Erreur de segmentation (core dumped) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment