==16195== Memcheck, a memory error detector for x86-linux. ==16195== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward et al. ==16195== Using valgrind-2.2.0, a program supervision framework for x86-linux. ==16195== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al. ==16195== ==16195== My PID = 16195, parent PID = 16106. Prog and args are: ==16195== pinfo ==16195== gcc ==16195== ==16195== Valgrind library directory: /usr/lib/valgrind ==16195== Command line ==16195== pinfo ==16195== gcc ==16195== Startup, with flags: ==16195== --tool=memcheck ==16195== --log-file=pinfocrash ==16195== --num-callers=8 ==16195== --leak-check=yes ==16195== -v ==16195== Contents of /proc/version: ==16195== Linux version 2.6.11.7-pwc (pq@lpr2-5ba.cable.inet.fi) (gcc version 3.3.5-20050130 (Gentoo Linux 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1)) #1 Fri Apr 29 20:21:49 EEST 2005 ==16195== Reading syms from /usr/bin/pinfo (0x8048000) ==16195== Reading syms from /lib/ld-2.3.4.so (0x1B8E4000) ==16195== object doesn't have a symbol table ==16195== object doesn't have any debug info ==16195== Reading syms from /usr/lib/valgrind/stage2 (0xB0000000) ==16195== Reading syms from /lib/ld-2.3.4.so (0xB1000000) ==16195== object doesn't have a symbol table ==16195== object doesn't have any debug info ==16195== Reading syms from /usr/lib/valgrind/vgskin_memcheck.so (0xB7CAA000) ==16195== Reading syms from /lib/tls/libc-2.3.4.so (0xB7ED6000) ==16195== object doesn't have a symbol table ==16195== object doesn't have any debug info ==16195== Reading syms from /lib/libdl-2.3.4.so (0xB7FEE000) ==16195== object doesn't have a symbol table ==16195== object doesn't have any debug info ==16195== Reading suppressions file: /usr/lib/valgrind/default.supp ==16195== REDIRECT soname:libc.so.6(__GI___errno_location) to soname:libpthread.so.0(__errno_location) ==16195== REDIRECT soname:libc.so.6(__errno_location) to soname:libpthread.so.0(__errno_location) ==16195== REDIRECT soname:libc.so.6(__GI___h_errno_location) to soname:libpthread.so.0(__h_errno_location) ==16195== REDIRECT soname:libc.so.6(__h_errno_location) to soname:libpthread.so.0(__h_errno_location) ==16195== REDIRECT soname:libc.so.6(__GI___res_state) to soname:libpthread.so.0(__res_state) ==16195== REDIRECT soname:libc.so.6(__res_state) to soname:libpthread.so.0(__res_state) ==16195== REDIRECT soname:libc.so.6(stpcpy) to *vgpreload_memcheck.so*(stpcpy) ==16195== REDIRECT soname:libc.so.6(strnlen) to *vgpreload_memcheck.so*(strnlen) ==16195== REDIRECT soname:ld-linux.so.2(stpcpy) to *vgpreload_memcheck.so*(stpcpy) ==16195== REDIRECT soname:ld-linux.so.2(strchr) to *vgpreload_memcheck.so*(strchr) ==16195== ==16195== Reading syms from /usr/lib/valgrind/vg_inject.so (0x1B8FC000) ==16195== Reading syms from /usr/lib/valgrind/vgpreload_memcheck.so (0x1B8FF000) ==16195== Reading syms from /lib/libreadline.so.4.3 (0x1B918000) ==16195== object doesn't have a symbol table ==16195== object doesn't have any debug info ==16195== Reading syms from /lib/libncurses.so.5.4 (0x1B946000) ==16195== object doesn't have a symbol table ==16195== object doesn't have any debug info ==16195== Reading syms from /lib/tls/libc-2.3.4.so (0x1B98D000) ==16195== object doesn't have a symbol table ==16195== object doesn't have any debug info ==16195== Reading syms from /lib/libgpm.so.1.19.0 (0x1BAA6000) ==16195== object doesn't have a symbol table ==16195== object doesn't have any debug info ==16195== Conditional jump or move depends on uninitialised value(s) ==16195== at 0x1B8ECEA2: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E5CD8: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8F2A87: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E4B5E: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E47E6: (within /lib/ld-2.3.4.so) ==16195== ==16195== Conditional jump or move depends on uninitialised value(s) ==16195== at 0x1B8ECEE5: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E5CD8: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8F2A87: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E4B5E: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E47E6: (within /lib/ld-2.3.4.so) ==16195== ==16195== Conditional jump or move depends on uninitialised value(s) ==16195== at 0x1B8ECD6D: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E5CD8: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8F2A87: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E4B5E: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E47E6: (within /lib/ld-2.3.4.so) ==16195== ==16195== Conditional jump or move depends on uninitialised value(s) ==16195== at 0x1B8ECD75: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E5CD8: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8F2A87: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E4B5E: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E47E6: (within /lib/ld-2.3.4.so) ==16195== ==16195== Conditional jump or move depends on uninitialised value(s) ==16195== at 0x1B8ECD6D: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E5D56: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8F2A87: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E4B5E: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E47E6: (within /lib/ld-2.3.4.so) ==16195== ==16195== Conditional jump or move depends on uninitialised value(s) ==16195== at 0x1B8ECD75: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E5D56: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8F2A87: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E4B5E: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E47E6: (within /lib/ld-2.3.4.so) ==16195== ==16195== Conditional jump or move depends on uninitialised value(s) ==16195== at 0x1B8ECEE5: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E5D56: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8F2A87: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E4B5E: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E47E6: (within /lib/ld-2.3.4.so) ==16195== TRANSLATE: 0x1B9EF340 redirected to 0x1B902C40 ==16195== TRANSLATE: 0x1B9EF570 redirected to 0x1B903840 ==16195== TRANSLATE: 0x1B9EF4C0 redirected to 0x1B903270 ==16195== TRANSLATE: 0x1B9F3C60 redirected to 0x1B9025B0 ==16195== TRANSLATE: 0x1B9F4ED0 redirected to 0x1B902870 ==16195== TRANSLATE: 0x1B9EFA70 redirected to 0x1B903770 ==16195== ==16195== Invalid write of size 1 ==16195== at 0x8057381: showscreen (video.c:70) ==16195== by 0x8050603: work (mainfunction.c:106) ==16195== by 0x804A3AD: main (pinfo.c:340) ==16195== Address 0x1BAB7D4F is 1 bytes before a block of size 1025 alloc'd ==16195== at 0x1B9038CA: realloc (vg_replace_malloc.c:197) ==16195== by 0x805678C: xrealloc (utils.c:148) ==16195== by 0x804C03F: read_item (filehandling_functions.c:225) ==16195== by 0x804A35D: main (pinfo.c:333) ==16195== ==16195== Invalid write of size 1 ==16195== at 0x80573E4: showscreen (video.c:80) ==16195== by 0x8050603: work (mainfunction.c:106) ==16195== by 0x804A3AD: main (pinfo.c:340) ==16195== Address 0x1BAB7D4F is 1 bytes before a block of size 1025 alloc'd ==16195== at 0x1B9038CA: realloc (vg_replace_malloc.c:197) ==16195== by 0x805678C: xrealloc (utils.c:148) ==16195== by 0x804C03F: read_item (filehandling_functions.c:225) ==16195== by 0x804A35D: main (pinfo.c:333) ==16195== ==16195== ERROR SUMMARY: 65 errors from 9 contexts (suppressed: 0 from 0) ==16195== ==16195== 1 errors in context 1 of 9: ==16195== Conditional jump or move depends on uninitialised value(s) ==16195== at 0x1B8ECEE5: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E5D56: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8F2A87: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E4B5E: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E47E6: (within /lib/ld-2.3.4.so) ==16195== ==16195== 1 errors in context 2 of 9: ==16195== Conditional jump or move depends on uninitialised value(s) ==16195== at 0x1B8ECD75: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E5D56: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8F2A87: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E4B5E: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E47E6: (within /lib/ld-2.3.4.so) ==16195== ==16195== 1 errors in context 3 of 9: ==16195== Conditional jump or move depends on uninitialised value(s) ==16195== at 0x1B8ECD6D: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E5D56: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8F2A87: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E4B5E: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E47E6: (within /lib/ld-2.3.4.so) ==16195== ==16195== 1 errors in context 4 of 9: ==16195== Conditional jump or move depends on uninitialised value(s) ==16195== at 0x1B8ECD75: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E5CD8: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8F2A87: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E4B5E: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E47E6: (within /lib/ld-2.3.4.so) ==16195== ==16195== 1 errors in context 5 of 9: ==16195== Conditional jump or move depends on uninitialised value(s) ==16195== at 0x1B8ECD6D: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E5CD8: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8F2A87: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E4B5E: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E47E6: (within /lib/ld-2.3.4.so) ==16195== ==16195== 7 errors in context 6 of 9: ==16195== Conditional jump or move depends on uninitialised value(s) ==16195== at 0x1B8ECEE5: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E5CD8: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8F2A87: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E4B5E: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E47E6: (within /lib/ld-2.3.4.so) ==16195== ==16195== 7 errors in context 7 of 9: ==16195== Conditional jump or move depends on uninitialised value(s) ==16195== at 0x1B8ECEA2: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E5CD8: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8F2A87: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E4B5E: (within /lib/ld-2.3.4.so) ==16195== by 0x1B8E47E6: (within /lib/ld-2.3.4.so) ==16195== ==16195== 23 errors in context 8 of 9: ==16195== Invalid write of size 1 ==16195== at 0x80573E4: showscreen (video.c:80) ==16195== by 0x8050603: work (mainfunction.c:106) ==16195== by 0x804A3AD: main (pinfo.c:340) ==16195== Address 0x1BAB7D4F is 1 bytes before a block of size 1025 alloc'd ==16195== at 0x1B9038CA: realloc (vg_replace_malloc.c:197) ==16195== by 0x805678C: xrealloc (utils.c:148) ==16195== by 0x804C03F: read_item (filehandling_functions.c:225) ==16195== by 0x804A35D: main (pinfo.c:333) ==16195== ==16195== 23 errors in context 9 of 9: ==16195== Invalid write of size 1 ==16195== at 0x8057381: showscreen (video.c:70) ==16195== by 0x8050603: work (mainfunction.c:106) ==16195== by 0x804A3AD: main (pinfo.c:340) ==16195== Address 0x1BAB7D4F is 1 bytes before a block of size 1025 alloc'd ==16195== at 0x1B9038CA: realloc (vg_replace_malloc.c:197) ==16195== by 0x805678C: xrealloc (utils.c:148) ==16195== by 0x804C03F: read_item (filehandling_functions.c:225) ==16195== by 0x804A35D: main (pinfo.c:333) ==16195== IN SUMMARY: 65 errors from 9 contexts (suppressed: 0 from 0) ==16195== ==16195== malloc/free: in use at exit: 156820 bytes in 343 blocks. ==16195== malloc/free: 5292 allocs, 4949 frees, 143597752 bytes allocated. ==16195== ==16195== searching for pointers to 343 not-freed blocks. ==16195== checked 2012692 bytes. ==16195== ==16195== ==16195== 27 bytes in 2 blocks are definitely lost in loss record 3 of 26 ==16195== at 0x1B902CBC: malloc (vg_replace_malloc.c:131) ==16195== by 0x1B9F390F: strdup (in /lib/tls/libc-2.3.4.so) ==16195== by 0x804BA44: matchfile (filehandling_functions.c:64) ==16195== by 0x804CE97: openinfo (filehandling_functions.c:714) ==16195== by 0x804A291: main (pinfo.c:258) ==16195== ==16195== LEAK SUMMARY: ==16195== definitely lost: 27 bytes in 2 blocks. ==16195== possibly lost: 0 bytes in 0 blocks. ==16195== still reachable: 156793 bytes in 341 blocks. ==16195== suppressed: 0 bytes in 0 blocks. ==16195== Reachable blocks (those to which a pointer was found) are not shown. ==16195== To see them, rerun with: --show-reachable=yes --16195-- TT/TC: 0 tc sectors discarded. --16195-- 10050 tt_fast misses. --16195-- translate: new 7948 (129032 -> 1675810; ratio 129:10) --16195-- discard 0 (0 -> 0; ratio 0:10). --16195-- chainings: 5986 chainings, 0 unchainings. --16195-- dispatch: 35950000 jumps (bb entries); of them 6481680 (18%) unchained. --16195-- 2186/20000 major/minor sched events. --16195-- reg-alloc: 1649 t-req-spill, 304352+12075 orig+spill uis, --16195-- 42124 total-reg-rank --16195-- sanity: 1970 cheap, 79 expensive checks. --16195-- ccalls: 28018 C calls, 55% saves+restores avoided (91756 bytes) --16195-- 37826 args, avg 0.86 setup instrs each (9942 bytes) --16195-- 0% clear the stack (83619 bytes) --16195-- 12304 retvals, 28% of reg-reg movs avoided (6872 bytes)