[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 302800] New: valgrind change the operator new's alloctor into system's
From:       egmkang wang <egmkang () gmail ! com>
Date:       2012-06-30 14:52:17
Message-ID: bug-302800-17878 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=302800

            Bug ID: 302800
          Severity: normal
           Version: unspecified
          Priority: NOR
          Assignee: jseward@acm.org
           Summary: valgrind change the operator new's alloctor into
                    system's
    Classification: Unclassified
                OS: Linux
          Reporter: egmkang@gmail.com
          Hardware: Other
            Status: UNCONFIRMED
         Component: memcheck
           Product: valgrind

codes like this:
#include <stdlib.h>

int main()
{
    int *p = new int();
    free(p);
    return 0;
}

when i using system's alloctor,it works well.and i got a mismatched warning.
but when i using jemalloc, it will abort.

when i added a global operator new in it,it will work.but the mismatched free
is gone,that should be there.
why?

-- 
You are receiving this mail because:
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic