Ok, I ran Valgrind but I'm not sure if I'm doing it right or not. I got these messages and I don't know if they are good or bad. Sorry, this is my first time running the program. Not sure how to use it much.
$ valgrind --tool=memcheck --leak-check=yes --show-reachable=yes -v envy
==18134== Memcheck, a memory error detector for x86-linux.
==18134== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward et al.
==18134== Using valgrind-2.2.0, a program supervision framework for x86-linux.
==18134== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al.
==18134== Valgrind library directory: /usr/lib/valgrind
==18134== Command line
==18134== envy
==18134== Startup, with flags:
==18134== --tool=memcheck
==18134== --leak-check=yes
==18134== --show-reachable=yes
==18134== -v
==18134== Contents of /proc/version:
==18134== Linux version 2.6.11-1.27_FC3 (bhcompile@porky.build.redhat.com) (gcc version 3.4.3 20050227 (Red Hat 3.4.3-22)) #1 Tue May 17 20:27:37 EDT 2005
==18134== Reading syms from /home/adminmud/prod/Envy20/src/envy (0x8048000)
==18134== Reading syms from /lib/ld-2.3.5.so (0x1B8E4000)
==18134== object doesn't have any debug info
==18134== Reading syms from /usr/lib/valgrind/stage2 (0xB0000000)
==18134== Reading syms from /lib/ld-2.3.5.so (0xB1000000)
==18134== object doesn't have any debug info
==18134== Reading syms from /usr/lib/valgrind/vgskin_memcheck.so (0xB7BA4000)
==18134== Reading syms from /lib/tls/libc-2.3.5.so (0xB7DCE000)
==18134== object doesn't have any debug info
==18134== Reading syms from /lib/libdl-2.3.5.so (0xB7EF8000)
==18134== object doesn't have any debug info
==18134== Reading suppressions file: /usr/lib/valgrind/default.supp
==18134== REDIRECT soname:libc.so.6(__GI___errno_location) to soname:libpthread.so.0(__errno_location)
==18134== REDIRECT soname:libc.so.6(__errno_location) to soname:libpthread.so.0(__errno_location)
==18134== REDIRECT soname:libc.so.6(__GI___h_errno_location) to soname:libpthread.so.0(__h_errno_location)
==18134== REDIRECT soname:libc.so.6(__h_errno_location) to soname:libpthread.so.0(__h_errno_location)
==18134== REDIRECT soname:libc.so.6(__GI___res_state) to soname:libpthread.so.0(__res_state)
==18134== REDIRECT soname:libc.so.6(__res_state) to soname:libpthread.so.0(__res_state)
==18134== REDIRECT soname:libc.so.6(stpcpy) to *vgpreload_memcheck.so*(stpcpy)
==18134== REDIRECT soname:libc.so.6(strnlen) to *vgpreload_memcheck.so*(strnlen)
==18134== REDIRECT soname:ld-linux.so.2(stpcpy) to *vgpreload_memcheck.so*(stpcpy)
==18134== REDIRECT soname:ld-linux.so.2(strchr) to *vgpreload_memcheck.so*(strchr)
==18134==
==18134== Reading syms from /usr/lib/valgrind/vg_inject.so (0x1B8FD000)
==18134== Reading syms from /usr/lib/valgrind/vgpreload_memcheck.so (0x1B900000)
==18134== TRANSLATE: 0x1B8F5F60 redirected to 0x1B90320C
==18134== Reading syms from /lib/libcrypt-2.3.5.so (0x612C000)
==18134== object doesn't have any debug info
==18134== Reading syms from /lib/tls/libc-2.3.5.so (0x9CB000)
==18134== object doesn't have any debug info
==18134== TRANSLATE: 0x1B8E47A0 redirected to 0x52BFF040
==18134== TRANSLATE: 0xA2EE80 redirected to 0x1B903A04
==18134== TRANSLATE: 0xA2CDB0 redirected to 0x1B903F30
==18134== TRANSLATE: 0xA33D20 redirected to 0x1B9033DC
==18134== TRANSLATE: 0xA2EBA0 redirected to 0x1B904380
==18134==
==18134== Process terminating with default action of signal 2 (SIGINT)
==18134== at 0xA24C31: _IO_getc (in /lib/tls/libc-2.3.5.so)
==18134== by 0x80713E1: fread_string (db.c:2927)
==18134== by 0x806E735: load_mobiles (db.c:824)
==18134== by 0x806E04F: boot_db (db.c:496)
==18134==
==18134== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 13 from 1)
--18134--
--18134-- supp: 13 dl_relocate_object/dl_main
==18134== malloc/free: in use at exit: 10788799 bytes in 17 blocks.
==18134== malloc/free: 35 allocs, 18 frees, 10795135 bytes allocated.
==18134==
==18134== searching for pointers to 17 not-freed blocks.
==18134== checked 13512940 bytes.
==18134==
==18134== 15 bytes in 1 blocks are still reachable in loss record 1 of 6
==18134== at 0x1B903A90: malloc (vg_replace_malloc.c:131)
==18134== by 0xA339EF: strdup (in /lib/tls/libc-2.3.5.so)
==18134== by 0xA46991: tzset_internal (in /lib/tls/libc-2.3.5.so)
==18134== by 0xA47619: __tz_convert (in /lib/tls/libc-2.3.5.so)
==18134==
==18134==
==18134== 60 bytes in 5 blocks are still reachable in loss record 2 of 6
==18134== at 0x1B903A90: malloc (vg_replace_malloc.c:131)
==18134== by 0xA46849: __tzstring (in /lib/tls/libc-2.3.5.so)
==18134== by 0xA47EED: __tzfile_read (in /lib/tls/libc-2.3.5.so)
==18134== by 0xA469AE: tzset_internal (in /lib/tls/libc-2.3.5.so)
==18134==
==18134==
==18134== 1056 bytes in 3 blocks are still reachable in loss record 3 of 6
==18134== at 0x1B903A90: malloc (vg_replace_malloc.c:131)
==18134== by 0xA1DC4E: __fopen_internal (in /lib/tls/libc-2.3.5.so)
==18134== by 0xA1DD0C: _IO_fopen@@GLIBC_2.1 (in /lib/tls/libc-2.3.5.so)
==18134== by 0x80678FD: main (comm.c:464)
==18134==
==18134==
==18134== 1236 bytes in 1 blocks are still reachable in loss record 4 of 6
==18134== at 0x1B903A90: malloc (vg_replace_malloc.c:131)
==18134== by 0xA47ADB: __tzfile_read (in /lib/tls/libc-2.3.5.so)
==18134== by 0xA469AE: tzset_internal (in /lib/tls/libc-2.3.5.so)
==18134== by 0xA47619: __tz_convert (in /lib/tls/libc-2.3.5.so)
==18134==
Next post
|