raul_
June 12th, 2008, 04:09 AM
Ok so I was debugging this program, and valgrind kept giving me errors. I went to the point of commenting ALL of my code, and I was still getting errors.
So I went desperate and did this "program":
int main(){
return 0;
}
Seriously. No includes, no nothing.
[kde4@horus ~]$ g++ proj.cpp
yey, so far so good!
[kde4@horus ~]$ valgrind ./a.out
==20073== Memcheck, a memory error detector.
==20073== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==20073== Using LibVEX rev 1804, a library for dynamic binary translation.
==20073== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==20073== Using valgrind-3.3.0, a dynamic binary instrumentation framework.
==20073== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==20073== For more details, rerun with: -v
==20073==
==20073== Conditional jump or move depends on uninitialised value(s)
==20073== at 0x400AC2B: _dl_relocate_object (in /lib/ld-2.8.so)
==20073== by 0x4003788: dl_main (in /lib/ld-2.8.so)
==20073== by 0x4014460: _dl_sysdep_start (in /lib/ld-2.8.so)
==20073== by 0x4001187: _dl_start (in /lib/ld-2.8.so)
==20073== by 0x40007F6: (within /lib/ld-2.8.so)
==20073==
==20073== Conditional jump or move depends on uninitialised value(s)
==20073== at 0x400AC33: _dl_relocate_object (in /lib/ld-2.8.so)
==20073== by 0x4003788: dl_main (in /lib/ld-2.8.so)
==20073== by 0x4014460: _dl_sysdep_start (in /lib/ld-2.8.so)
==20073== by 0x4001187: _dl_start (in /lib/ld-2.8.so)
==20073== by 0x40007F6: (within /lib/ld-2.8.so)
==20073==
==20073== Conditional jump or move depends on uninitialised value(s)
==20073== at 0x400BB61: _dl_relocate_object (in /lib/ld-2.8.so)
==20073== by 0x4003788: dl_main (in /lib/ld-2.8.so)
==20073== by 0x4014460: _dl_sysdep_start (in /lib/ld-2.8.so)
==20073== by 0x4001187: _dl_start (in /lib/ld-2.8.so)
==20073== by 0x40007F6: (within /lib/ld-2.8.so)
==20073==
==20073== Conditional jump or move depends on uninitialised value(s)
==20073== at 0x400ADE0: _dl_relocate_object (in /lib/ld-2.8.so)
==20073== by 0x4003788: dl_main (in /lib/ld-2.8.so)
==20073== by 0x4014460: _dl_sysdep_start (in /lib/ld-2.8.so)
==20073== by 0x4001187: _dl_start (in /lib/ld-2.8.so)
==20073== by 0x40007F6: (within /lib/ld-2.8.so)
==20073==
==20073== Conditional jump or move depends on uninitialised value(s)
==20073== at 0x400BC74: _dl_relocate_object (in /lib/ld-2.8.so)
==20073== by 0x4003788: dl_main (in /lib/ld-2.8.so)
==20073== by 0x4014460: _dl_sysdep_start (in /lib/ld-2.8.so)
==20073== by 0x4001187: _dl_start (in /lib/ld-2.8.so)
==20073== by 0x40007F6: (within /lib/ld-2.8.so)
==20073==
==20073== Conditional jump or move depends on uninitialised value(s)
==20073== at 0x400AC2B: _dl_relocate_object (in /lib/ld-2.8.so)
==20073== by 0x40038B3: dl_main (in /lib/ld-2.8.so)
==20073== by 0x4014460: _dl_sysdep_start (in /lib/ld-2.8.so)
==20073== by 0x4001187: _dl_start (in /lib/ld-2.8.so)
==20073== by 0x40007F6: (within /lib/ld-2.8.so)
==20073==
==20073== Conditional jump or move depends on uninitialised value(s)
==20073== at 0x400AC33: _dl_relocate_object (in /lib/ld-2.8.so)
==20073== by 0x40038B3: dl_main (in /lib/ld-2.8.so)
==20073== by 0x4014460: _dl_sysdep_start (in /lib/ld-2.8.so)
==20073== by 0x4001187: _dl_start (in /lib/ld-2.8.so)
==20073== by 0x40007F6: (within /lib/ld-2.8.so)
==20073==
==20073== Conditional jump or move depends on uninitialised value(s)
==20073== at 0x400ADE0: _dl_relocate_object (in /lib/ld-2.8.so)
==20073== by 0x40038B3: dl_main (in /lib/ld-2.8.so)
==20073== by 0x4014460: _dl_sysdep_start (in /lib/ld-2.8.so)
==20073== by 0x4001187: _dl_start (in /lib/ld-2.8.so)
==20073== by 0x40007F6: (within /lib/ld-2.8.so)
==20073==
==20073== ERROR SUMMARY: 19 errors from 8 contexts (suppressed: 0 from 0)
==20073== malloc/free: in use at exit: 0 bytes in 0 blocks.
==20073== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
==20073== For counts of detected errors, rerun with: -v
==20073== All heap blocks were freed -- no leaks are possible.
[kde4@horus ~]$
I mean WTF!!!!!!!!!!!!!
I swear I'm not running another program. It gives me the exact amount of errors everytime, the same number as the other program.
:guitar: Sometimes I just wanna throw computers in the garbage
So I went desperate and did this "program":
int main(){
return 0;
}
Seriously. No includes, no nothing.
[kde4@horus ~]$ g++ proj.cpp
yey, so far so good!
[kde4@horus ~]$ valgrind ./a.out
==20073== Memcheck, a memory error detector.
==20073== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==20073== Using LibVEX rev 1804, a library for dynamic binary translation.
==20073== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==20073== Using valgrind-3.3.0, a dynamic binary instrumentation framework.
==20073== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==20073== For more details, rerun with: -v
==20073==
==20073== Conditional jump or move depends on uninitialised value(s)
==20073== at 0x400AC2B: _dl_relocate_object (in /lib/ld-2.8.so)
==20073== by 0x4003788: dl_main (in /lib/ld-2.8.so)
==20073== by 0x4014460: _dl_sysdep_start (in /lib/ld-2.8.so)
==20073== by 0x4001187: _dl_start (in /lib/ld-2.8.so)
==20073== by 0x40007F6: (within /lib/ld-2.8.so)
==20073==
==20073== Conditional jump or move depends on uninitialised value(s)
==20073== at 0x400AC33: _dl_relocate_object (in /lib/ld-2.8.so)
==20073== by 0x4003788: dl_main (in /lib/ld-2.8.so)
==20073== by 0x4014460: _dl_sysdep_start (in /lib/ld-2.8.so)
==20073== by 0x4001187: _dl_start (in /lib/ld-2.8.so)
==20073== by 0x40007F6: (within /lib/ld-2.8.so)
==20073==
==20073== Conditional jump or move depends on uninitialised value(s)
==20073== at 0x400BB61: _dl_relocate_object (in /lib/ld-2.8.so)
==20073== by 0x4003788: dl_main (in /lib/ld-2.8.so)
==20073== by 0x4014460: _dl_sysdep_start (in /lib/ld-2.8.so)
==20073== by 0x4001187: _dl_start (in /lib/ld-2.8.so)
==20073== by 0x40007F6: (within /lib/ld-2.8.so)
==20073==
==20073== Conditional jump or move depends on uninitialised value(s)
==20073== at 0x400ADE0: _dl_relocate_object (in /lib/ld-2.8.so)
==20073== by 0x4003788: dl_main (in /lib/ld-2.8.so)
==20073== by 0x4014460: _dl_sysdep_start (in /lib/ld-2.8.so)
==20073== by 0x4001187: _dl_start (in /lib/ld-2.8.so)
==20073== by 0x40007F6: (within /lib/ld-2.8.so)
==20073==
==20073== Conditional jump or move depends on uninitialised value(s)
==20073== at 0x400BC74: _dl_relocate_object (in /lib/ld-2.8.so)
==20073== by 0x4003788: dl_main (in /lib/ld-2.8.so)
==20073== by 0x4014460: _dl_sysdep_start (in /lib/ld-2.8.so)
==20073== by 0x4001187: _dl_start (in /lib/ld-2.8.so)
==20073== by 0x40007F6: (within /lib/ld-2.8.so)
==20073==
==20073== Conditional jump or move depends on uninitialised value(s)
==20073== at 0x400AC2B: _dl_relocate_object (in /lib/ld-2.8.so)
==20073== by 0x40038B3: dl_main (in /lib/ld-2.8.so)
==20073== by 0x4014460: _dl_sysdep_start (in /lib/ld-2.8.so)
==20073== by 0x4001187: _dl_start (in /lib/ld-2.8.so)
==20073== by 0x40007F6: (within /lib/ld-2.8.so)
==20073==
==20073== Conditional jump or move depends on uninitialised value(s)
==20073== at 0x400AC33: _dl_relocate_object (in /lib/ld-2.8.so)
==20073== by 0x40038B3: dl_main (in /lib/ld-2.8.so)
==20073== by 0x4014460: _dl_sysdep_start (in /lib/ld-2.8.so)
==20073== by 0x4001187: _dl_start (in /lib/ld-2.8.so)
==20073== by 0x40007F6: (within /lib/ld-2.8.so)
==20073==
==20073== Conditional jump or move depends on uninitialised value(s)
==20073== at 0x400ADE0: _dl_relocate_object (in /lib/ld-2.8.so)
==20073== by 0x40038B3: dl_main (in /lib/ld-2.8.so)
==20073== by 0x4014460: _dl_sysdep_start (in /lib/ld-2.8.so)
==20073== by 0x4001187: _dl_start (in /lib/ld-2.8.so)
==20073== by 0x40007F6: (within /lib/ld-2.8.so)
==20073==
==20073== ERROR SUMMARY: 19 errors from 8 contexts (suppressed: 0 from 0)
==20073== malloc/free: in use at exit: 0 bytes in 0 blocks.
==20073== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
==20073== For counts of detected errors, rerun with: -v
==20073== All heap blocks were freed -- no leaks are possible.
[kde4@horus ~]$
I mean WTF!!!!!!!!!!!!!
I swear I'm not running another program. It gives me the exact amount of errors everytime, the same number as the other program.
:guitar: Sometimes I just wanna throw computers in the garbage