hi,all.<br>i'm a new guy using jemalloc.<br>there is a strange thing.when i <b>new</b> a objct and then <b>free</b> it,you know,mismatched free in valgrind, the jemalloc will crash under valgrind.<br>code like this:<br>
#include <stdio.h><br>#include <stdlib.h><br><br>int  main()<br>{<br>    int *pInt = new int();<br>    printf("%d\n",*pInt);<br>    free(pInt);<br>    return 0;<br>}<br><br>jemalloc output "src/jemalloc.c:1201: Failed assertion: "malloc_initialized || IS_INITIALIZER", and then abort.<br>
<br>my jemalloc version is 3.0,and debug enabled.<br><br>but using another shared library my <span id="result_box" class="short_text" lang="en"><span class="">colleague compiled on red hat 4.3(x64) using gcc 3.x, it works well.<br>
my os is debian 6.0.5(x64),and gcc is 4.6.2.<br></span></span>