Thanks Denis. I've tried Valgrind. Well the problem may not be memory leak but rather poor memory management. I use malloc_hook and it seems the problem is related to too many invocations of block_Alloc in misc/block.c.<div>

I'm just detecting the exact caller which causes the problem.</div><div class="gmail_extra"><br clear="all"><div><font color="#666666">==========</font></div><font color="#666666">Shi FENG (冯时)</font><div><div><font color="#666666"><br>

</font></div><div><span style="background-color:transparent"><font color="#666666">PACMAN Group</font></span></div><div><font color="#666666">Institute of High Performance Computing</font></div><div><font color="#666666">Department of Computer Science and Technology</font></div>

<div><font color="#666666">Tsinghua University</font></div><div><font color="#666666">Haidian District, Beijing, China</font></div></div><br>
<br><br><div class="gmail_quote">On Sun, Dec 2, 2012 at 6:17 PM, Rémi Denis-Courmont <span dir="ltr"><<a href="mailto:remi@remlab.net" target="_blank">remi@remlab.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

        Hello,<br>
<br>
Le mardi 27 novembre 2012 10:27:28, Shi FENG a écrit :<br>
<div class="im">> I'm ready to devote myself on this issue but couldn't find any clue related<br>
> to it. Did any one experience similar problem or may you locate the problem<br>
> by intuition?<br>
<br>
</div>It is likely that some other people hit the problem, but it is unlikely that<br>
they read the developer's mailing list.<br>
<br>
Personally, I always start with valgrind. It does not always detect the<br>
problem, but when it does, it saves a lot of time.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Rémi Denis-Courmont<br>
<a href="http://www.remlab.net/" target="_blank">http://www.remlab.net/</a><br>
</font></span></blockquote></div><br></div>