Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==18054== Memcheck, a memory error detector
- ==18054== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
- ==18054== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info
- ==18054== Command: ./boxpack 01_offlinetest Miep
- ==18054==
- --18054-- Valgrind options:
- --18054-- --leak-check=full
- --18054-- --track-origins=yes
- --18054-- --show-reachable=yes
- --18054-- -v
- --18054-- Contents of /proc/version:
- --18054-- Linux version 3.16.0-45-generic (buildd@lgw01-23) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #60~14.04.1-Ubuntu SMP Fri Jul 24 21:16:23 UTC 2015
- --18054-- Arch and hwcaps: AMD64, amd64-cx16-rdtscp-sse3-avx
- --18054-- Page sizes: currently 4096, max supported 4096
- --18054-- Valgrind library directory: /usr/lib/valgrind
- --18054-- Reading syms from /home/viktor/NetBeansProjects/C_Projekt/offlinetest/boxpack
- --18054-- Reading syms from /lib/x86_64-linux-gnu/ld-2.19.so
- --18054-- Considering /lib/x86_64-linux-gnu/ld-2.19.so ..
- --18054-- .. CRC mismatch (computed 4cbae35e wanted 8d683c31)
- --18054-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.19.so ..
- --18054-- .. CRC is valid
- --18054-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux
- --18054-- Considering /usr/lib/valgrind/memcheck-amd64-linux ..
- --18054-- .. CRC mismatch (computed 37cdde19 wanted adc367dd)
- --18054-- object doesn't have a symbol table
- --18054-- object doesn't have a dynamic symbol table
- --18054-- Scheduler: using generic scheduler lock implementation.
- --18054-- Reading suppressions file: /usr/lib/valgrind/default.supp
- ==18054== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-18054-by-viktor-on-???
- ==18054== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-18054-by-viktor-on-???
- ==18054== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-18054-by-viktor-on-???
- ==18054==
- ==18054== TO CONTROL THIS PROCESS USING vgdb (which you probably
- ==18054== don't want to do, unless you know exactly what you're doing,
- ==18054== or are doing some strange experiment):
- ==18054== /usr/lib/valgrind/../../bin/vgdb --pid=18054 ...command...
- ==18054==
- ==18054== TO DEBUG THIS PROCESS USING GDB: start GDB like this
- ==18054== /path/to/gdb ./boxpack
- ==18054== and then give GDB the following command
- ==18054== target remote | /usr/lib/valgrind/../../bin/vgdb --pid=18054
- ==18054== --pid is optional if only one valgrind process is running
- ==18054==
- --18054-- REDIR: 0x4019ca0 (strlen) redirected to 0x38068331 (???)
- --18054-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so
- --18054-- Considering /usr/lib/valgrind/vgpreload_core-amd64-linux.so ..
- --18054-- .. CRC mismatch (computed 329d6860 wanted c0186920)
- --18054-- object doesn't have a symbol table
- --18054-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
- --18054-- Considering /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so ..
- --18054-- .. CRC mismatch (computed 1fb85af8 wanted 2e9e3c16)
- --18054-- object doesn't have a symbol table
- ==18054== WARNING: new redirection conflicts with existing -- ignoring it
- --18054-- old: 0x04019ca0 (strlen ) R-> (0000.0) 0x38068331 ???
- --18054-- new: 0x04019ca0 (strlen ) R-> (2007.0) 0x04c2e1a0 strlen
- --18054-- REDIR: 0x4019a50 (index) redirected to 0x4c2dd50 (index)
- --18054-- REDIR: 0x4019c70 (strcmp) redirected to 0x4c2f2f0 (strcmp)
- --18054-- REDIR: 0x401a9c0 (mempcpy) redirected to 0x4c31da0 (mempcpy)
- --18054-- Reading syms from /lib/x86_64-linux-gnu/libc-2.19.so
- --18054-- Considering /lib/x86_64-linux-gnu/libc-2.19.so ..
- --18054-- .. CRC mismatch (computed dc620abc wanted 148cbd6e)
- --18054-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.19.so ..
- --18054-- .. CRC is valid
- --18054-- REDIR: 0x4ec3d60 (strcasecmp) redirected to 0x4a25720 (_vgnU_ifunc_wrapper)
- --18054-- REDIR: 0x4ec6050 (strncasecmp) redirected to 0x4a25720 (_vgnU_ifunc_wrapper)
- --18054-- REDIR: 0x4ec3530 (memcpy@GLIBC_2.2.5) redirected to 0x4a25720 (_vgnU_ifunc_wrapper)
- --18054-- REDIR: 0x4ec17c0 (rindex) redirected to 0x4c2da30 (rindex)
- --18054-- REDIR: 0x4eb9750 (malloc) redirected to 0x4c2ab10 (malloc)
- --18054-- REDIR: 0x4ec2410 (__GI_strstr) redirected to 0x4c32030 (__strstr_sse2)
- ==18054== Use of uninitialised value of size 8
- ==18054== at 0x4E74527: ____strtol_l_internal (strtol_l.c:298)
- ==18054== by 0x4E70F5F: atoi (atoi.c:27)
- ==18054== by 0x4010E5: verarbeiter (boxpack.c:180)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054== Uninitialised value was created by a stack allocation
- ==18054== at 0x400EF9: verarbeiter (boxpack.c:154)
- ==18054==
- ==18054== Conditional jump or move depends on uninitialised value(s)
- ==18054== at 0x4E74548: ____strtol_l_internal (strtol_l.c:300)
- ==18054== by 0x4E70F5F: atoi (atoi.c:27)
- ==18054== by 0x4010E5: verarbeiter (boxpack.c:180)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054== Uninitialised value was created by a stack allocation
- ==18054== at 0x400EF9: verarbeiter (boxpack.c:154)
- ==18054==
- ==18054== Conditional jump or move depends on uninitialised value(s)
- ==18054== at 0x4E74552: ____strtol_l_internal (strtol_l.c:305)
- ==18054== by 0x4E70F5F: atoi (atoi.c:27)
- ==18054== by 0x4010E5: verarbeiter (boxpack.c:180)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054== Uninitialised value was created by a stack allocation
- ==18054== at 0x400EF9: verarbeiter (boxpack.c:154)
- ==18054==
- ==18054== Conditional jump or move depends on uninitialised value(s)
- ==18054== at 0x4E74564: ____strtol_l_internal (strtol_l.c:310)
- ==18054== by 0x4E70F5F: atoi (atoi.c:27)
- ==18054== by 0x4010E5: verarbeiter (boxpack.c:180)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054== Uninitialised value was created by a stack allocation
- ==18054== at 0x400EF9: verarbeiter (boxpack.c:154)
- ==18054==
- ==18054== Conditional jump or move depends on uninitialised value(s)
- ==18054== at 0x4E7456E: ____strtol_l_internal (strtol_l.c:314)
- ==18054== by 0x4E70F5F: atoi (atoi.c:27)
- ==18054== by 0x4010E5: verarbeiter (boxpack.c:180)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054== Uninitialised value was created by a stack allocation
- ==18054== at 0x400EF9: verarbeiter (boxpack.c:154)
- ==18054==
- ==18054== Conditional jump or move depends on uninitialised value(s)
- ==18054== at 0x4E745B1: ____strtol_l_internal (strtol_l.c:438)
- ==18054== by 0x4E70F5F: atoi (atoi.c:27)
- ==18054== by 0x4010E5: verarbeiter (boxpack.c:180)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054== Uninitialised value was created by a stack allocation
- ==18054== at 0x400EF9: verarbeiter (boxpack.c:154)
- ==18054==
- ==18054== Conditional jump or move depends on uninitialised value(s)
- ==18054== at 0x4E745DD: ____strtol_l_internal (strtol_l.c:442)
- ==18054== by 0x4E70F5F: atoi (atoi.c:27)
- ==18054== by 0x4010E5: verarbeiter (boxpack.c:180)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054== Uninitialised value was created by a stack allocation
- ==18054== at 0x400EF9: verarbeiter (boxpack.c:154)
- ==18054==
- ==18054== Use of uninitialised value of size 8
- ==18054== at 0x4E7474D: ____strtol_l_internal (strtol_l.c:466)
- ==18054== by 0x4E70F5F: atoi (atoi.c:27)
- ==18054== by 0x4010E5: verarbeiter (boxpack.c:180)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054== Uninitialised value was created by a stack allocation
- ==18054== at 0x400EF9: verarbeiter (boxpack.c:154)
- ==18054==
- --18054-- REDIR: 0x4ec35c0 (memset) redirected to 0x4c31350 (memset)
- --18054-- REDIR: 0x4eb9df0 (free) redirected to 0x4c2bd80 (free)
- ==18054== Invalid write of size 1
- ==18054== at 0x401021: verarbeiter (boxpack.c:167)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054== Address 0x51fc450 is 0 bytes inside a block of size 3 free'd
- ==18054== at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==18054== by 0x401124: verarbeiter (boxpack.c:189)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054==
- ==18054== Invalid read of size 1
- ==18054== at 0x4010CB: verarbeiter (boxpack.c:178)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054== Address 0x51fc450 is 0 bytes inside a block of size 3 free'd
- ==18054== at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==18054== by 0x401124: verarbeiter (boxpack.c:189)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054==
- ==18054== Invalid free() / delete / delete[] / realloc()
- ==18054== at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==18054== by 0x401124: verarbeiter (boxpack.c:189)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054== Address 0x51fc450 is 0 bytes inside a block of size 3 free'd
- ==18054== at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==18054== by 0x401124: verarbeiter (boxpack.c:189)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054==
- ==18054== Invalid read of size 1
- ==18054== at 0x401070: verarbeiter (boxpack.c:171)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054== Address 0x51fc319 is 0 bytes after a block of size 9 alloc'd
- ==18054== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==18054== by 0x400A92: main (boxpack.c:57)
- ==18054==
- --18054-- REDIR: 0x4ebe070 (strcmp) redirected to 0x4a25720 (_vgnU_ifunc_wrapper)
- --18054-- REDIR: 0x4f77200 (__strcmp_ssse3) redirected to 0x4c2f1b0 (strcmp)
- ==18054== Invalid read of size 1
- ==18054== at 0x4C2F1C8: strcmp (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==18054== by 0x4013EF: SortingTime (boxpack.c:244)
- ==18054== by 0x400CC1: main (boxpack.c:80)
- ==18054== Address 0x51fc363 is 0 bytes after a block of size 3 alloc'd
- ==18054== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==18054== by 0x400BB5: main (boxpack.c:67)
- ==18054==
- --18054-- REDIR: 0x4ecaac0 (strchrnul) redirected to 0x4c319b0 (strchrnul)
- ==18054==
- ==18054== HEAP SUMMARY:
- ==18054== in use at exit: 1,145 bytes in 5 blocks
- ==18054== total heap usage: 8 allocs, 6 frees, 1,161 bytes allocated
- ==18054==
- ==18054== Searching for pointers to 5 not-freed blocks
- ==18054== Checked 82,968 bytes
- ==18054==
- ==18054== 9 bytes in 3 blocks are definitely lost in loss record 1 of 3
- ==18054== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==18054== by 0x400BB5: main (boxpack.c:67)
- ==18054==
- ==18054== 568 bytes in 1 blocks are still reachable in loss record 2 of 3
- ==18054== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==18054== by 0x4EA544C: __fopen_internal (iofopen.c:73)
- ==18054== by 0x400A52: main (boxpack.c:52)
- ==18054==
- ==18054== 568 bytes in 1 blocks are still reachable in loss record 3 of 3
- ==18054== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==18054== by 0x4EA544C: __fopen_internal (iofopen.c:73)
- ==18054== by 0x401D98: Dateiausgabe (boxpack.c:403)
- ==18054== by 0x400CE5: main (boxpack.c:82)
- ==18054==
- ==18054== LEAK SUMMARY:
- ==18054== definitely lost: 9 bytes in 3 blocks
- ==18054== indirectly lost: 0 bytes in 0 blocks
- ==18054== possibly lost: 0 bytes in 0 blocks
- ==18054== still reachable: 1,136 bytes in 2 blocks
- ==18054== suppressed: 0 bytes in 0 blocks
- ==18054==
- ==18054== ERROR SUMMARY: 28 errors from 14 contexts (suppressed: 0 from 0)
- ==18054==
- ==18054== 1 errors in context 1 of 14:
- ==18054== Invalid read of size 1
- ==18054== at 0x401070: verarbeiter (boxpack.c:171)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054== Address 0x51fc319 is 0 bytes after a block of size 9 alloc'd
- ==18054== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==18054== by 0x400A92: main (boxpack.c:57)
- ==18054==
- ==18054==
- ==18054== 1 errors in context 2 of 14:
- ==18054== Use of uninitialised value of size 8
- ==18054== at 0x4E7474D: ____strtol_l_internal (strtol_l.c:466)
- ==18054== by 0x4E70F5F: atoi (atoi.c:27)
- ==18054== by 0x4010E5: verarbeiter (boxpack.c:180)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054== Uninitialised value was created by a stack allocation
- ==18054== at 0x400EF9: verarbeiter (boxpack.c:154)
- ==18054==
- ==18054==
- ==18054== 1 errors in context 3 of 14:
- ==18054== Conditional jump or move depends on uninitialised value(s)
- ==18054== at 0x4E745DD: ____strtol_l_internal (strtol_l.c:442)
- ==18054== by 0x4E70F5F: atoi (atoi.c:27)
- ==18054== by 0x4010E5: verarbeiter (boxpack.c:180)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054== Uninitialised value was created by a stack allocation
- ==18054== at 0x400EF9: verarbeiter (boxpack.c:154)
- ==18054==
- ==18054==
- ==18054== 1 errors in context 4 of 14:
- ==18054== Conditional jump or move depends on uninitialised value(s)
- ==18054== at 0x4E745B1: ____strtol_l_internal (strtol_l.c:438)
- ==18054== by 0x4E70F5F: atoi (atoi.c:27)
- ==18054== by 0x4010E5: verarbeiter (boxpack.c:180)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054== Uninitialised value was created by a stack allocation
- ==18054== at 0x400EF9: verarbeiter (boxpack.c:154)
- ==18054==
- ==18054==
- ==18054== 1 errors in context 5 of 14:
- ==18054== Conditional jump or move depends on uninitialised value(s)
- ==18054== at 0x4E7456E: ____strtol_l_internal (strtol_l.c:314)
- ==18054== by 0x4E70F5F: atoi (atoi.c:27)
- ==18054== by 0x4010E5: verarbeiter (boxpack.c:180)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054== Uninitialised value was created by a stack allocation
- ==18054== at 0x400EF9: verarbeiter (boxpack.c:154)
- ==18054==
- ==18054==
- ==18054== 1 errors in context 6 of 14:
- ==18054== Conditional jump or move depends on uninitialised value(s)
- ==18054== at 0x4E74564: ____strtol_l_internal (strtol_l.c:310)
- ==18054== by 0x4E70F5F: atoi (atoi.c:27)
- ==18054== by 0x4010E5: verarbeiter (boxpack.c:180)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054== Uninitialised value was created by a stack allocation
- ==18054== at 0x400EF9: verarbeiter (boxpack.c:154)
- ==18054==
- ==18054==
- ==18054== 1 errors in context 7 of 14:
- ==18054== Conditional jump or move depends on uninitialised value(s)
- ==18054== at 0x4E74552: ____strtol_l_internal (strtol_l.c:305)
- ==18054== by 0x4E70F5F: atoi (atoi.c:27)
- ==18054== by 0x4010E5: verarbeiter (boxpack.c:180)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054== Uninitialised value was created by a stack allocation
- ==18054== at 0x400EF9: verarbeiter (boxpack.c:154)
- ==18054==
- ==18054==
- ==18054== 1 errors in context 8 of 14:
- ==18054== Conditional jump or move depends on uninitialised value(s)
- ==18054== at 0x4E74548: ____strtol_l_internal (strtol_l.c:300)
- ==18054== by 0x4E70F5F: atoi (atoi.c:27)
- ==18054== by 0x4010E5: verarbeiter (boxpack.c:180)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054== Uninitialised value was created by a stack allocation
- ==18054== at 0x400EF9: verarbeiter (boxpack.c:154)
- ==18054==
- ==18054==
- ==18054== 1 errors in context 9 of 14:
- ==18054== Use of uninitialised value of size 8
- ==18054== at 0x4E74527: ____strtol_l_internal (strtol_l.c:298)
- ==18054== by 0x4E70F5F: atoi (atoi.c:27)
- ==18054== by 0x4010E5: verarbeiter (boxpack.c:180)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054== Uninitialised value was created by a stack allocation
- ==18054== at 0x400EF9: verarbeiter (boxpack.c:154)
- ==18054==
- ==18054==
- ==18054== 3 errors in context 10 of 14:
- ==18054== Invalid read of size 1
- ==18054== at 0x4C2F1C8: strcmp (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==18054== by 0x4013EF: SortingTime (boxpack.c:244)
- ==18054== by 0x400CC1: main (boxpack.c:80)
- ==18054== Address 0x51fc363 is 0 bytes after a block of size 3 alloc'd
- ==18054== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==18054== by 0x400BB5: main (boxpack.c:67)
- ==18054==
- ==18054==
- ==18054== 3 errors in context 11 of 14:
- ==18054== Invalid free() / delete / delete[] / realloc()
- ==18054== at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==18054== by 0x401124: verarbeiter (boxpack.c:189)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054== Address 0x51fc450 is 0 bytes inside a block of size 3 free'd
- ==18054== at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==18054== by 0x401124: verarbeiter (boxpack.c:189)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054==
- ==18054==
- ==18054== 3 errors in context 12 of 14:
- ==18054== Invalid write of size 1
- ==18054== at 0x401021: verarbeiter (boxpack.c:167)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054== Address 0x51fc450 is 0 bytes inside a block of size 3 free'd
- ==18054== at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==18054== by 0x401124: verarbeiter (boxpack.c:189)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054==
- ==18054==
- ==18054== 9 errors in context 13 of 14:
- ==18054== Invalid read of size 1
- ==18054== at 0x4010CB: verarbeiter (boxpack.c:178)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054== Address 0x51fc450 is 0 bytes inside a block of size 3 free'd
- ==18054== at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==18054== by 0x401124: verarbeiter (boxpack.c:189)
- ==18054== by 0x400C98: main (boxpack.c:75)
- ==18054==
- ==18054== ERROR SUMMARY: 28 errors from 14 contexts (suppressed: 0 from 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement