|
From: David H. <hu...@bt...> - 2004-06-23 00:39:42
|
Hi,
When i #include <iostream> i get a definitely lost memleak. Is this natural, a bug in valgrind, a bug in gcc 3.4.0?? Anyone know?
----------------------------------
Program:
#include <iostream>
int main(){}
----------------------------------
valgrind:
hubnerd:~/soul/src/src$ valgrind --tool=memcheck --leak-check=yes ./a.out
==604== Memcheck, a memory error detector for x86-linux.
==604== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward.
==604== Using valgrind-2.1.1, a program supervision framework for x86-linux.
==604== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward.
==604== For more details, rerun with: -v
==604==
==604== Conditional jump or move depends on uninitialised value(s)
==604== at 0x3C00160C: elf_dynamic_do_rel.4 (do-rel.h:69)
==604== by 0x3C0018A9: _dl_start (rtld.c:189)
==604== by 0x3C0013B5: (within /lib/ld-2.2.5.so)
==604==
==604== Conditional jump or move depends on uninitialised value(s)
==604== at 0x3C001614: elf_dynamic_do_rel.4 (do-rel.h:88)
==604== by 0x3C0018A9: _dl_start (rtld.c:189)
==604== by 0x3C0013B5: (within /lib/ld-2.2.5.so)
==604==
==604== Conditional jump or move depends on uninitialised value(s)
==604== at 0x3C00164B: elf_dynamic_do_rel.4 (do-rel.h:97)
==604== by 0x3C0018A9: _dl_start (rtld.c:189)
==604== by 0x3C0013B5: (within /lib/ld-2.2.5.so)
==604==
==604== Conditional jump or move depends on uninitialised value(s)
==604== at 0x3C008BBF: elf_dynamic_do_rel.4 (do-rel.h:55)
==604== by 0x3C008E8A: _dl_relocate_object (dl-reloc.c:155)
==604== by 0x3C002091: dl_main (rtld.c:1086)
==604== by 0x3C00C841: _dl_sysdep_start (../sysdeps/generic/dl-sysdep.c:208)
==604==
==604== Conditional jump or move depends on uninitialised value(s)
==604== at 0x3C008BC3: elf_dynamic_do_rel.4 (do-rel.h:58)
==604== by 0x3C008E8A: _dl_relocate_object (dl-reloc.c:155)
==604== by 0x3C002091: dl_main (rtld.c:1086)
==604== by 0x3C00C841: _dl_sysdep_start (../sysdeps/generic/dl-sysdep.c:208)
==604==
==604== ERROR SUMMARY: 5 errors from 5 contexts (suppressed: 0 from 0)
==604== malloc/free: in use at exit: 80 bytes in 2 blocks.
==604== malloc/free: 2 allocs, 0 frees, 80 bytes allocated.
==604== For counts of detected errors, rerun with: -v
==604== searching for pointers to 2 not-freed blocks.
==604== checked 2409280 bytes.
==604==
==604==
==604== 16 bytes in 1 blocks are definitely lost in loss record 1 of 2
==604== at 0x3C01E38D: malloc (vg_replace_malloc.c:105)
==604== by 0x3C01EBDB: realloc (vg_replace_malloc.c:154)
==604== by 0x3C1AE947: argz_append (argz-append.c:30)
==604== by 0x3C15B7F4: __newlocale (newlocale.c:100)
==604==
==604== LEAK SUMMARY:
==604== definitely lost: 16 bytes in 1 blocks.
==604== possibly lost: 0 bytes in 0 blocks.
==604== still reachable: 64 bytes in 1 blocks.
==604== suppressed: 0 bytes in 0 blocks.
==604== Reachable blocks (those to which a pointer was found) are not shown.
==604== To see them, rerun with: --show-reachable=yes
--
David Hubner
hu...@bt...
"If you are going through hell, keep going."
- Sir Winston Churchill (1874-1965)
|