[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#479390: libmudflap0 doesn't wrap memalign



Package: libmudflap0
Version: 4.3.0-4
Severity: normal

Hi,

libmudflap0 doesn't wrap memalign, this make imposible to use
application that use it for allocating memory.

for example :
#include <malloc.h>
int main()
{
    char *p = memalign(4, 2);
    p[0] = 4;
}
will failed with
*******
mudflap violation 1 (check/write): time=1209915680.530272 ptr=0x80cb360 size=1
pc=0xa7e0e2bd location=`toto.c:5 (main)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xa7e0e2bd]
      ./a.out(main+0x94) [0x80487c8]
      /usr/lib/libmudflap.so.0(__wrap_main+0x4f) [0xa7e0dabf]
number of nearby objects: 0

PS : I suppose same pb happen with posix_memalign and valloc.
-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24.2 (PREEMPT)
Locale: LANG=C, LC_CTYPE=C (charmap=ISO-8859-1) (ignored: LC_ALL set to fr_FR)
Shell: /bin/sh linked to /bin/dash

Versions of packages libmudflap0 depends on:
ii  gcc-4.3-base                  4.3.0-4    The GNU Compiler Collection (base 
ii  libc6                         2.7-10     GNU C Library: Shared libraries

libmudflap0 recommends no packages.

-- no debconf information



Reply to: