FS#6484 - Valgrind reports errors with libld-2.5
|
Details
The compilation of a simple "hello world" file with gcc when
run with valgrind indicates 13 memory related errors. I've
never gotten any errors
with similar programs on other Linux systems I've run. I've also never submitted a bug report before so if there's anything I haven't done that I should, please say so. :) ####### program text: hello.c ######### #include <stdio.h> int main( void ) { printf( "Hello, world!\n" ); return 0; } ### gcc compilation and version info ### $ gcc hello.c -o hello $ gcc --version gcc (GCC) 4.1.2 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. #### Valgrind output #### $ valgrind ./hello ==6822== Memcheck, a memory error detector. ==6822== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al. ==6822== Using LibVEX rev 1606, a library for dynamic binary translation. ==6822== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP. ==6822== Using valgrind-3.2.0, a dynamic binary instrumentation framework. ==6822== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al. ==6822== For more details, rerun with: -v ==6822== ==6822== Conditional jump or move depends on uninitialised value(s) ==6822== at 0x400A889: _dl_relocate_object (in /lib/ld-2.5.so) ==6822== by 0x4003EC7: dl_main (in /lib/ld-2.5.so) ==6822== by 0x40135C5: _dl_sysdep_start (in /lib/ld-2.5.so) ==6822== by 0x40011E1: _dl_start (in /lib/ld-2.5.so) ==6822== by 0x4000846: (within /lib/ld-2.5.so) ==6822== ==6822== Conditional jump or move depends on uninitialised value(s) ==6822== at 0x400A891: _dl_relocate_object (in /lib/ld-2.5.so) ==6822== by 0x4003EC7: dl_main (in /lib/ld-2.5.so) ==6822== by 0x40135C5: _dl_sysdep_start (in /lib/ld-2.5.so) ==6822== by 0x40011E1: _dl_start (in /lib/ld-2.5.so) ==6822== by 0x4000846: (within /lib/ld-2.5.so) ==6822== ==6822== Conditional jump or move depends on uninitialised value(s) ==6822== at 0x400AD59: _dl_relocate_object (in /lib/ld-2.5.so) ==6822== by 0x4003EC7: dl_main (in /lib/ld-2.5.so) ==6822== by 0x40135C5: _dl_sysdep_start (in /lib/ld-2.5.so) ==6822== by 0x40011E1: _dl_start (in /lib/ld-2.5.so) ==6822== by 0x4000846: (within /lib/ld-2.5.so) ==6822== ==6822== Conditional jump or move depends on uninitialised value(s) ==6822== at 0x400A9D4: _dl_relocate_object (in /lib/ld-2.5.so) ==6822== by 0x4003EC7: dl_main (in /lib/ld-2.5.so) ==6822== by 0x40135C5: _dl_sysdep_start (in /lib/ld-2.5.so) ==6822== by 0x40011E1: _dl_start (in /lib/ld-2.5.so) ==6822== by 0x4000846: (within /lib/ld-2.5.so) ==6822== ==6822== Conditional jump or move depends on uninitialised value(s) ==6822== at 0x400B161: _dl_relocate_object (in /lib/ld-2.5.so) ==6822== by 0x4003EC7: dl_main (in /lib/ld-2.5.so) ==6822== by 0x40135C5: _dl_sysdep_start (in /lib/ld-2.5.so) ==6822== by 0x40011E1: _dl_start (in /lib/ld-2.5.so) ==6822== by 0x4000846: (within /lib/ld-2.5.so) ==6822== ==6822== Conditional jump or move depends on uninitialised value(s) ==6822== at 0x400A889: _dl_relocate_object (in /lib/ld-2.5.so) ==6822== by 0x4003D64: dl_main (in /lib/ld-2.5.so) ==6822== by 0x40135C5: _dl_sysdep_start (in /lib/ld-2.5.so) ==6822== by 0x40011E1: _dl_start (in /lib/ld-2.5.so) ==6822== by 0x4000846: (within /lib/ld-2.5.so) ==6822== ==6822== Conditional jump or move depends on uninitialised value(s) ==6822== at 0x400A891: _dl_relocate_object (in /lib/ld-2.5.so) ==6822== by 0x4003D64: dl_main (in /lib/ld-2.5.so) ==6822== by 0x40135C5: _dl_sysdep_start (in /lib/ld-2.5.so) ==6822== by 0x40011E1: _dl_start (in /lib/ld-2.5.so) ==6822== by 0x4000846: (within /lib/ld-2.5.so) ==6822== ==6822== Conditional jump or move depends on uninitialised value(s) ==6822== at 0x400A9D4: _dl_relocate_object (in /lib/ld-2.5.so) ==6822== by 0x4003D64: dl_main (in /lib/ld-2.5.so) ==6822== by 0x40135C5: _dl_sysdep_start (in /lib/ld-2.5.so) ==6822== by 0x40011E1: _dl_start (in /lib/ld-2.5.so) ==6822== by 0x4000846: (within /lib/ld-2.5.so) Hello, world! ==6822== ==6822== ERROR SUMMARY: 13 errors from 8 contexts (suppressed: 0 from 0) ==6822== malloc/free: in use at exit: 0 bytes in 0 blocks. ==6822== malloc/free: 0 allocs, 0 frees, 0 bytes allocated. ==6822== For counts of detected errors, rerun with: -v ==6822== All heap blocks were freed -- no leaks are possible. |
This task depends upon