Package: valgrind
Version: 1:3.2.3-3
Severity: normal

Hi,

valgrind on my powerbook G4 reports several thousands of false (?)
positives even for trivial programs.  This makes valgrind unusable
because any real problem reports will be drowned in the generated
noise.

Example: compile the following simple program "xxx.c"

    #include <stdio.h>

    int
    main()
    {
      puts("hi");
      return 0;
    }

using the following commands:

    [EMAIL PROTECTED] [~/project/jvterm] gcc -o xxx -g -O xxx.c
    [EMAIL PROTECTED] [~/project/jvterm] gcc -g -O -Wall xxx.c -o xxx
    [EMAIL PROTECTED] [~/project/jvterm] ./xxx
    hi

Running valgrind on the resulting binary gives the following output:

    ==7169== Memcheck, a memory error detector.
    ==7169== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
    ==7169== Using LibVEX rev 1732, a library for dynamic binary translation.
    ==7169== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
    ==7169== Using valgrind-3.2.3-Debian, a dynamic binary instrumentation 
framework.
    ==7169== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
    ==7169== For more details, rerun with: -v
    ==7169== 
    ==7169== My PID = 7169, parent PID = 7130.  Prog and args are:
    ==7169==    ./xxx
    ==7169== 
    ==7169== Conditional jump or move depends on uninitialised value(s)
    ==7169==    at 0x40027AC: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4016784: (within /lib/ld-2.6.1.so)
    ==7169== 
    ==7169== Conditional jump or move depends on uninitialised value(s)
    ==7169==    at 0x40027E0: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4016784: (within /lib/ld-2.6.1.so)
    ==7169== 
    ==7169== Use of uninitialised value of size 4
    ==7169==    at 0x40068DC: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x400921C: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4004864: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4015AA8: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x40023CC: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002938: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4016784: (within /lib/ld-2.6.1.so)
    ==7169== 
    ==7169== Use of uninitialised value of size 4
    ==7169==    at 0x400692C: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x400921C: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4004864: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4015AA8: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x40023CC: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002938: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4016784: (within /lib/ld-2.6.1.so)
    ==7169== 
    ==7169== Syscall param mmap(length) contains uninitialised byte(s)
    ==7169==    at 0x4018364: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4016518: malloc (in /lib/ld-2.6.1.so)
    ==7169==    by 0x40069A8: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x400921C: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4004864: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4015AA8: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x40023CC: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002938: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4016784: (within /lib/ld-2.6.1.so)
    ==7169== 
    ==7169== Use of uninitialised value of size 4
    ==7169==    at 0x4006834: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x400921C: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4004864: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4015AA8: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x40023CC: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002938: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4016784: (within /lib/ld-2.6.1.so)
    ==7169== 
    ==7169== Use of uninitialised value of size 4
    ==7169==    at 0x4019C00: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x7ED210CC: ???
    ==7169==    by 0x4008BB4: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4009800: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002CB4: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x400E838: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002C10: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4005FB4: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4015AA8: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x40023CC: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002938: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4016784: (within /lib/ld-2.6.1.so)
    ==7169== 
    ==7169== Use of uninitialised value of size 4
    ==7169==    at 0x4019C08: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x7ED210CC: ???
    ==7169==    by 0x4008BB4: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4009800: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002CB4: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x400E838: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002C10: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4005FB4: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4015AA8: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x40023CC: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002938: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4016784: (within /lib/ld-2.6.1.so)
    ==7169== 
    ==7169== Use of uninitialised value of size 4
    ==7169==    at 0x4019C14: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x7ED210CC: ???
    ==7169==    by 0x4008BB4: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4009800: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002CB4: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x400E838: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002C10: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4005FB4: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4015AA8: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x40023CC: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002938: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4016784: (within /lib/ld-2.6.1.so)
    ==7169== 
    ==7169== Use of uninitialised value of size 4
    ==7169==    at 0x4019C28: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x7ED210CC: ???
    ==7169==    by 0x4008BB4: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4009800: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002CB4: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x400E838: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002C10: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4005FB4: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4015AA8: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x40023CC: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002938: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4016784: (within /lib/ld-2.6.1.so)
    ==7169== 
    ==7169== Syscall param open(filename) contains uninitialised byte(s)
    ==7169==    at 0x40181B4: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4009830: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002CB4: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x400E838: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002C10: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4005FB4: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4015AA8: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x40023CC: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002938: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4016784: (within /lib/ld-2.6.1.so)
    ==7169== 
    ==7169== Use of uninitialised value of size 4
    ==7169==    at 0x400BAD0: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x40079F8: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4009884: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002CB4: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x400E838: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002C10: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4005FB4: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4015AA8: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x40023CC: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002938: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4016784: (within /lib/ld-2.6.1.so)
    ==7169== 
    ==7169== Use of uninitialised value of size 4
    ==7169==    at 0x400BAD4: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x40079F8: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4009884: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002CB4: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x400E838: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002C10: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4005FB4: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4015AA8: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x40023CC: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002938: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4016784: (within /lib/ld-2.6.1.so)
    ==7169== 
    ==7169== Use of uninitialised value of size 4
    ==7169==    at 0x4019C00: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4016518: malloc (in /lib/ld-2.6.1.so)
    ==7169==    by 0x400BADC: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x40079F8: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4009884: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002CB4: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x400E838: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002C10: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4005FB4: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4015AA8: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x40023CC: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002938: (within /lib/ld-2.6.1.so)
    ==7169== 
    ==7169== Use of uninitialised value of size 4
    ==7169==    at 0x4019C08: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4016518: malloc (in /lib/ld-2.6.1.so)
    ==7169==    by 0x400BADC: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x40079F8: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4009884: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002CB4: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x400E838: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002C10: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4005FB4: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4015AA8: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x40023CC: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002938: (within /lib/ld-2.6.1.so)
    ==7169== 
    ==7169== Use of uninitialised value of size 4
    ==7169==    at 0x4019C14: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4016518: malloc (in /lib/ld-2.6.1.so)
    ==7169==    by 0x400BADC: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x40079F8: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4009884: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002CB4: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x400E838: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002C10: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4005FB4: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4015AA8: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x40023CC: (within /lib/ld-2.6.1.so)
    ==7169==    by 0x4002938: (within /lib/ld-2.6.1.so)
    ==7169== 
    ... more than 4000 lines skipped ...
    ==7169== 
    ==7169== Use of uninitialised value of size 4
    ==7169==    at 0xFF6ACDC: (within /lib/libc-2.6.1.so)
    ==7169==    by 0xFF6A59C: __libc_freeres (in /lib/libc-2.6.1.so)
    ==7169==    by 0xFFDF228: _vgnU_freeres (vg_preloaded.c:60)
    ==7169==    by 0xFEE60C4: _Exit (in /lib/libc-2.6.1.so)
    ==7169==    by 0xFE76708: exit (in /lib/libc-2.6.1.so)
    ==7169==    by 0xFE5B360: (within /lib/libc-2.6.1.so)
    ==7169==    by 0xFE5B5A0: (below main) (in /lib/libc-2.6.1.so)
    ==7169== 
    ==7169== ERROR SUMMARY: 5979 errors from 480 contexts (suppressed: 1236 
from 1)
    ==7169== malloc/free: in use at exit: 0 bytes in 0 blocks.
    ==7169== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
    ==7169== For counts of detected errors, rerun with: -v
    ==7169== All heap blocks were freed -- no leaks are possible.

Maybe valgrind just needs to be told about something libc does
routinely on powerpc?

I hope this helps,
Jochen

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.22-2-powerpc
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages valgrind depends on:
ii  libc6                         2.6.1-4    GNU C Library: Shared libraries

Versions of packages valgrind recommends:
ii  gdb                           6.6.dfsg-3 The GNU Debugger

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to