[Bug 18067] New: Large blocks not reported properly to valgrind by RtlAllocateHeap

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Apr 15 16:28:38 CDT 2009


http://bugs.winehq.org/show_bug.cgi?id=18067

           Summary: Large blocks not reported properly to valgrind by
                    RtlAllocateHeap
           Product: Wine
           Version: 1.1.19
          Platform: Other
        OS/Version: other
            Status: NEW
          Keywords: download, patch, source
          Severity: normal
          Priority: P2
         Component: ntdll
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: dank at kegel.com


Found while valgrinding chromium unit tests.  Here's a simple test case:

$ cat > foo.c <<_EOF_
#include <malloc.h>
int main()
{
    char *p = malloc(1000000);
    free(p);
}
_EOF_
$ i586-mingw32msvc-gcc foo.c
$ valgrind --trace-children=yes wine a.exe
...
==2953== Invalid free() / delete / delete[]
==2953==    at 0x6C80EDF: RtlFreeHeap dlls/ntdll/heap.c:1464

Looks like Eric missed a code path when he first added the valgrind hooks?


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list