Jemalloc debug mode

Nan WANG wangnan at cnnic.cn
Mon Feb 2 17:35:51 PST 2015


I encounted the same problem, double free was not detected while linking 
with jemalloc.
在 2015-2-3 1:21, Rogier 'DocWilco' Mulhuijzen 写道:
>
> Are you sure you have linked to jemalloc? That's something I've messed 
> up in the past.
>
> On 2 Feb 2015 06:24, "SNL" <snl20465 at gmail.com 
> <mailto:snl20465 at gmail.com>> wrote:
>
>     Any inputs will be really helpful.
>
>     On Fri, Jan 30, 2015 at 8:48 PM, SNL <snl20465 at gmail.com
>     <mailto:snl20465 at gmail.com>> wrote:
>
>
>
>         Two questions:
>
>
>         1. I am using jemalloc-dev version and configured it as follows
>
>         ./configure --enable-debug --enable-fill --enable-ivsalloc
>         --disable-tcache
>
>
>         I am running following simple test case but double free is not
>         detected, what am I missing ?
>
>
>         int main()
>         {
>             char * ptr = malloc(1024);
>             free(ptr);
>             free(ptr);
>             return 0;
>         }
>
>
>         2.  Is quarantine basically a per thread free list ? How does
>         it interact with tcache ?
>
>
>         Cheers.
>
>
>
>
>     -- 
>
>     Cheers,
>     Sunny.
>
>     _______________________________________________
>     jemalloc-discuss mailing list
>     jemalloc-discuss at canonware.com <mailto:jemalloc-discuss at canonware.com>
>     http://www.canonware.com/mailman/listinfo/jemalloc-discuss
>
>
>
> _______________________________________________
> jemalloc-discuss mailing list
> jemalloc-discuss at canonware.com
> http://www.canonware.com/mailman/listinfo/jemalloc-discuss

-- 
王楠    技术研发中心
---------------------------------
==专业·责任·服务==
中国互联网络信息中心 CNNIC
网 址: www.cnnic.cn
中国互联网络信息中心.中国
地 址: 北京市海淀区中关村南4街4号
北京349信箱6分箱(100080)
---------------------------------
Nan WANG
Research&Development Center
= =Profession • Responsibility • Service= =
China Internet Network Information Center (CNNIC)
Website: www.cnnic.cn
          中国互联网络信息中心.中国
Add: 4th Zhongguancun Nansijie, Haidian District, Beijing 100190, China
POB: Beijing 349, Branch 6

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jemalloc.net/mailman/jemalloc-discuss/attachments/20150203/826795aa/attachment.html>


More information about the jemalloc-discuss mailing list