<div class="gmail_quote">2012/7/5 tom z <span dir="ltr"><<a href="mailto:maillist.tom@gmail.com" target="_blank">maillist.tom@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi~ all,<div>I encounter a odd problem, when i compile Python with PYMALLOC_DEBUG, the PIL module can't work fine, it always make core-dump like this</div><div><br></div><div><div>[Switching to Thread 182897301792 (LWP 16102)]</div>

<div>0x00000000004df264 in PyObject_Malloc (nbytes=64) at Objects/obmalloc.c:804</div><div>804                 if ((pool->freeblock = *(block **)bp) != NULL) {</div><div>Current language:  auto; currently c</div><div>
(gdb) bt</div>
<div>#0  0x00000000004df264 in PyObject_Malloc (nbytes=64) at Objects/obmalloc.c:804</div><div>#1  0x00000000004dfb97 in _PyObject_DebugMallocApi (id=109 'm', nbytes=32) at Objects/obmalloc.c:1461</div><div>#2  0x00000000004dfd22 in _PyObject_DebugReallocApi (api=109 'm', p=0x0, nbytes=32) at Objects/obmalloc.c:1523</div>

<div>#3  0x00000000004dfac0 in _PyMem_DebugRealloc (p=0x0, nbytes=32) at Objects/obmalloc.c:1416</div><div>#4  0x00000000004c68d9 in list_resize (self=0x2a988409b8, newsize=1) at Objects/listobject.c:62</div><div>#5  0x00000000004c6f63 in app1 (self=0x2a988409b8, v=0x2a958cea90) at Objects/listobject.c:277</div>

<div>#6  0x00000000004c6fdd in PyList_Append (op=0x2a988409b8, newitem=0x2a958cea90) at Objects/listobject.c:289</div><div>#7  0x0000000000558c7f in symtable_add_def (st=0x2a99a4ca68, name=0x2a958cea90, flag=4) at Python/symtable.c:910</div>

<div>#8  0x000000000055a953 in symtable_visit_params (st=0x2a99a4ca68, args=0x924380, toplevel=1) at Python/symtable.c:1318</div><div>#9  0x000000000055aaa7 in symtable_visit_arguments (st=0x2a99a4ca68, a=0x9243c8) at Python/symtable.c:1365</div>

<div>#10 0x0000000000558f3d in symtable_visit_stmt (st=0x2a99a4ca68, s=0x9244d0) at Python/symtable.c:1012</div><div>#11 0x000000000055919e in symtable_visit_stmt (st=0x2a99a4ca68, s=0x924500) at Python/symtable.c:1029</div>

<div>#12 0x00000000005574d7 in PySymtable_Build (mod=0x931798, </div><div>    filename=0x7fbfffa2c0 "../lib/python2.7/site-packages/PIL/BmpImagePlugin.py", future=0x2a9883aae0) at Python/symtable.c:240</div><div>

#13 0x0000000000531f14 in PyAST_Compile (mod=0x931798, </div><div>    filename=0x7fbfffa2c0 "../lib/python2.7/site-packages/PIL/BmpImagePlugin.py", flags=0x7fbfff9020, arena=0x8eedd0) at Python/compile.c:282</div>

<div>#14 0x0000000000545967 in parse_source_module (</div><div>    pathname=0x7fbfffa2c0 "../lib/python2.7/site-packages/PIL/BmpImagePlugin.py", fp=0x91a060) at Python/import.c:843</div><div>#15 0x0000000000545e75 in load_source_module (name=0x7fbfffb3e0 "PIL.BmpImagePlugin", </div>

<div>    pathname=0x7fbfffa2c0 "../lib/python2.7/site-packages/PIL/BmpImagePlugin.py", fp=0x91a060) at Python/import.c:1027</div></div><div><br></div><div>i've no idea about this, someone could get me help~</div>

<div><br></div><div>---</div><div>thanks a lot</div>
<br>--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
<br></blockquote></div><br><pre>PYMALLOC_DEBUG requires WITH_PYMALLOC. It's enabled?</pre><br>