Re: Help: PYMALLOC_DBUG and PIL

2012-07-05 Thread tom z
Thanks  Roman. of course, i use PYMALLOC_DEBUG with PYMALLOC.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Help: PYMALLOC_DBUG and PIL

2012-07-05 Thread Roman Putilov
2012/7/5 tom z 

> Hi~ all,
> 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
>
> [Switching to Thread 182897301792 (LWP 16102)]
> 0x004df264 in PyObject_Malloc (nbytes=64) at Objects/obmalloc.c:804
> 804 if ((pool->freeblock = *(block **)bp) != NULL) {
> Current language:  auto; currently c
> (gdb) bt
> #0  0x004df264 in PyObject_Malloc (nbytes=64) at
> Objects/obmalloc.c:804
> #1  0x004dfb97 in _PyObject_DebugMallocApi (id=109 'm', nbytes=32)
> at Objects/obmalloc.c:1461
> #2  0x004dfd22 in _PyObject_DebugReallocApi (api=109 'm', p=0x0,
> nbytes=32) at Objects/obmalloc.c:1523
> #3  0x004dfac0 in _PyMem_DebugRealloc (p=0x0, nbytes=32) at
> Objects/obmalloc.c:1416
> #4  0x004c68d9 in list_resize (self=0x2a988409b8, newsize=1) at
> Objects/listobject.c:62
> #5  0x004c6f63 in app1 (self=0x2a988409b8, v=0x2a958cea90) at
> Objects/listobject.c:277
> #6  0x004c6fdd in PyList_Append (op=0x2a988409b8,
> newitem=0x2a958cea90) at Objects/listobject.c:289
> #7  0x00558c7f in symtable_add_def (st=0x2a99a4ca68,
> name=0x2a958cea90, flag=4) at Python/symtable.c:910
> #8  0x0055a953 in symtable_visit_params (st=0x2a99a4ca68,
> args=0x924380, toplevel=1) at Python/symtable.c:1318
> #9  0x0055aaa7 in symtable_visit_arguments (st=0x2a99a4ca68,
> a=0x9243c8) at Python/symtable.c:1365
> #10 0x00558f3d in symtable_visit_stmt (st=0x2a99a4ca68,
> s=0x9244d0) at Python/symtable.c:1012
> #11 0x0055919e in symtable_visit_stmt (st=0x2a99a4ca68,
> s=0x924500) at Python/symtable.c:1029
> #12 0x005574d7 in PySymtable_Build (mod=0x931798,
> filename=0x7fbfffa2c0
> "../lib/python2.7/site-packages/PIL/BmpImagePlugin.py",
> future=0x2a9883aae0) at Python/symtable.c:240
> #13 0x00531f14 in PyAST_Compile (mod=0x931798,
> filename=0x7fbfffa2c0
> "../lib/python2.7/site-packages/PIL/BmpImagePlugin.py", flags=0x7fbfff9020,
> arena=0x8eedd0) at Python/compile.c:282
> #14 0x00545967 in parse_source_module (
> pathname=0x7fbfffa2c0
> "../lib/python2.7/site-packages/PIL/BmpImagePlugin.py", fp=0x91a060) at
> Python/import.c:843
> #15 0x00545e75 in load_source_module (name=0x7fbfffb3e0
> "PIL.BmpImagePlugin",
> pathname=0x7fbfffa2c0
> "../lib/python2.7/site-packages/PIL/BmpImagePlugin.py", fp=0x91a060) at
> Python/import.c:1027
>
> i've no idea about this, someone could get me help~
>
> ---
> thanks a lot
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
PYMALLOC_DEBUG requires WITH_PYMALLOC. It's enabled?
-- 
http://mail.python.org/mailman/listinfo/python-list


Help: PYMALLOC_DBUG and PIL

2012-07-04 Thread tom z
Hi~ all,
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

[Switching to Thread 182897301792 (LWP 16102)]
0x004df264 in PyObject_Malloc (nbytes=64) at Objects/obmalloc.c:804
804 if ((pool->freeblock = *(block **)bp) != NULL) {
Current language:  auto; currently c
(gdb) bt
#0  0x004df264 in PyObject_Malloc (nbytes=64) at
Objects/obmalloc.c:804
#1  0x004dfb97 in _PyObject_DebugMallocApi (id=109 'm', nbytes=32)
at Objects/obmalloc.c:1461
#2  0x004dfd22 in _PyObject_DebugReallocApi (api=109 'm', p=0x0,
nbytes=32) at Objects/obmalloc.c:1523
#3  0x004dfac0 in _PyMem_DebugRealloc (p=0x0, nbytes=32) at
Objects/obmalloc.c:1416
#4  0x004c68d9 in list_resize (self=0x2a988409b8, newsize=1) at
Objects/listobject.c:62
#5  0x004c6f63 in app1 (self=0x2a988409b8, v=0x2a958cea90) at
Objects/listobject.c:277
#6  0x004c6fdd in PyList_Append (op=0x2a988409b8,
newitem=0x2a958cea90) at Objects/listobject.c:289
#7  0x00558c7f in symtable_add_def (st=0x2a99a4ca68,
name=0x2a958cea90, flag=4) at Python/symtable.c:910
#8  0x0055a953 in symtable_visit_params (st=0x2a99a4ca68,
args=0x924380, toplevel=1) at Python/symtable.c:1318
#9  0x0055aaa7 in symtable_visit_arguments (st=0x2a99a4ca68,
a=0x9243c8) at Python/symtable.c:1365
#10 0x00558f3d in symtable_visit_stmt (st=0x2a99a4ca68, s=0x9244d0)
at Python/symtable.c:1012
#11 0x0055919e in symtable_visit_stmt (st=0x2a99a4ca68, s=0x924500)
at Python/symtable.c:1029
#12 0x005574d7 in PySymtable_Build (mod=0x931798,
filename=0x7fbfffa2c0
"../lib/python2.7/site-packages/PIL/BmpImagePlugin.py",
future=0x2a9883aae0) at Python/symtable.c:240
#13 0x00531f14 in PyAST_Compile (mod=0x931798,
filename=0x7fbfffa2c0
"../lib/python2.7/site-packages/PIL/BmpImagePlugin.py", flags=0x7fbfff9020,
arena=0x8eedd0) at Python/compile.c:282
#14 0x00545967 in parse_source_module (
pathname=0x7fbfffa2c0
"../lib/python2.7/site-packages/PIL/BmpImagePlugin.py", fp=0x91a060) at
Python/import.c:843
#15 0x00545e75 in load_source_module (name=0x7fbfffb3e0
"PIL.BmpImagePlugin",
pathname=0x7fbfffa2c0
"../lib/python2.7/site-packages/PIL/BmpImagePlugin.py", fp=0x91a060) at
Python/import.c:1027

i've no idea about this, someone could get me help~

---
thanks a lot
-- 
http://mail.python.org/mailman/listinfo/python-list