No subject
egmkang.wang
egmkang at gmail.com
Sat Jun 30 00:04:46 PDT 2012
hi,all.
i'm a new guy using jemalloc.
there is a strange thing.when i *new* a objct and then *free* it,you
know,mismatched free in valgrind, the jemalloc will crash under valgrind.
code like this:
#include <stdio.h>
#include <stdlib.h>
int main()
{
int *pInt = new int();
printf("%d\n",*pInt);
free(pInt);
return 0;
}
jemalloc output "src/jemalloc.c:1201: Failed assertion: "malloc_initialized
|| IS_INITIALIZER", and then abort.
my jemalloc version is 3.0,and debug enabled.
but using another shared library my colleague compiled on red hat 4.3(x64)
using gcc 3.x, it works well.
my os is debian 6.0.5(x64),and gcc is 4.6.2.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jemalloc.net/mailman/jemalloc-discuss/attachments/20120630/288a134d/attachment.html>
More information about the jemalloc-discuss
mailing list