Package: valgrind
Version: 1:3.5.0-3

Hi,

With the default suppressions, even a simple “hello world” program
appears to have errors:

$ cat hello.c
#include <stdio.h>

int main(void)
{
        puts("hello");
        return 0;
}
$ gcc -Wall -W -o hello hello.c
$ valgrind ./hello
==22017== Memcheck, a memory error detector
==22017== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et
al.
==22017== Using Valgrind-3.5.0-Debian and LibVEX; rerun with -h for
copyright info
==22017== Command: ./hello
==22017== 
==22017== Conditional jump or move depends on uninitialised value(s)
==22017==    at 0x400C561: _dl_relocate_object (do-rel.h:104)
==22017==    by 0x4003402: dl_main (rtld.c:2234)
==22017==    by 0x4015030: _dl_sysdep_start (dl-sysdep.c:243)
==22017==    by 0x4000C7F: _dl_start (rtld.c:338)
==22017==    by 0x4000856: ??? (in /lib/ld-2.11.1.so)
==22017== 
==22017== Conditional jump or move depends on uninitialised value(s)
==22017==    at 0x400ADBC: _dl_relocate_object (do-rel.h:117)
==22017==    by 0x4003402: dl_main (rtld.c:2234)
==22017==    by 0x4015030: _dl_sysdep_start (dl-sysdep.c:243)
==22017==    by 0x4000C7F: _dl_start (rtld.c:338)
==22017==    by 0x4000856: ??? (in /lib/ld-2.11.1.so)
[ and so on ]

Probably ld.so is using some optimization that involves reading
uninitialized data.  I work around this by using a suppression file
to ignore everything from ld.so.

Is this a known problem?  How can I help to fix it?

$ COLUMNS=72 dpkg -l libc6 libc6-dbg  | tail -2
ii  libc6          2.11-0exp4     Embedded GNU C Library: Shared libraries
ii  libc6-dbg      2.11-0exp4     Embedded GNU C Library: detached debugging s
$ uname -r
2.6.33-2-686
$



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to