Package: valgrind
Version: 1:3.5.0-2
Severity: grave
Justification: renders package unusable


Valgrind 3.5 doesn't know that mremap may move the map address anymore
which make valgrind totally unusable as soon mremap has been used,
because the mremap related errors poison the output making it pretty
much useless.

Meanwhile the following code can be used, but it's impractical as it means you
have to rebuild everything using the mremap syscall.

    #include <valgrind/valgrind.h>
    #include <valgrind/memcheck.h>

    static inline void *
    mremap_for_valgrind(void *old_address, size_t old_size, size_t new_size, 
int flags)
    {
        void *mres = mremap(old_address, old_size, new_size, flags);

        if (mres != MAP_FAILED) {
            VALGRIND_MAKE_MEM_NOACCESS(old_address, old_size);
            VALGRIND_MAKE_MEM_DEFINED(mres, new_size);
        }

        return mres;
    }
    #define mremap(...) mremap_for_valgrind(__VA_ARGS__)



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages valgrind depends on:
ii  libc6                         2.10.1-3   GNU C Library: Shared libraries

Versions of packages valgrind recommends:
ii  gdb                           7.0-1      The GNU Debugger

Versions of packages valgrind suggests:
pn  alleyoop                      <none>     (no description available)
pn  kcachegrind                   <none>     (no description available)
ii  libc6-dbg                     2.10.1-3   GNU C Library: detached debugging 

-- no debconf information



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

Reply via email to