[Image-SIG] Segmentation fault in ImagingDestroyBlock

Konstantin Shaposhnikov k.shaposhnikov at gmail.com
Wed May 17 16:28:41 CEST 2006


Hello all,

I am developing script that should display character table using given
true type font.
Unfortunately my script fails with "Segmenation fault" message for some fonts.

I have attached simplified script and font file that can be used to
reproduce problem. It seems that bug occured only for certain
characters (f.e. capital 'J').

I am using freetype-2.1.9 and imaging-1.15, but I am not sure that bug
is related to
font handling, because error occured in free(), so I suppose some
problems with memory [de]allocation.

Additionally I've created core dump and extracted back trace:

#0  0xb7cffd8f in mallopt () from /lib/libc.so.6
#1  0xb7cfed29 in free () from /lib/libc.so.6
#2  0xb7827e9d in ImagingDestroyBlock (im=0xc548d468)
    at libImaging/Storage.c:307
#3  0xb7827d45 in ImagingDelete (im=0xbd3d01b8) at libImaging/Storage.c:241
#4  0xb78061d5 in _dealloc (imagep=0xb7c980a0) at _imaging.c:183
#5  0xb7eeadd3 in PyFrame_Fini () from /usr/lib/libpython2.4.so.1.0
#6  0xb7f3feee in PyEval_EvalCodeEx () from /usr/lib/libpython2.4.so.1.0
#7  0xb7f41e22 in PyEval_GetFuncDesc () from /usr/lib/libpython2.4.so.1.0
#8  0xb7f41994 in PyEval_GetFuncDesc () from /usr/lib/libpython2.4.so.1.0
#9  0xb7f3ee77 in PyEval_EvalFrame () from /usr/lib/libpython2.4.so.1.0
#10 0xb7f41f09 in PyEval_GetFuncDesc () from /usr/lib/libpython2.4.so.1.0
#11 0xb7f41994 in PyEval_GetFuncDesc () from /usr/lib/libpython2.4.so.1.0
#12 0xb7f3ee77 in PyEval_EvalFrame () from /usr/lib/libpython2.4.so.1.0
#13 0xb7f3fec5 in PyEval_EvalCodeEx () from /usr/lib/libpython2.4.so.1.0
#14 0xb7f3c975 in PyEval_EvalCode () from /usr/lib/libpython2.4.so.1.0
#15 0xb7f76189 in PyRun_FileExFlags () from /usr/lib/libpython2.4.so.1.0
#16 0xb7f755f3 in PyRun_SimpleFileExFlags () from /usr/lib/libpython2.4.so.1.0
#17 0xb7f74fb8 in PyRun_AnyFileExFlags () from /usr/lib/libpython2.4.so.1.0
#18 0xb7f7e2c1 in Py_Main () from /usr/lib/libpython2.4.so.1.0
#19 0x080486b9 in main ()

Any help and suggestions are highly appreciated.

Regards,
Konstantin

--
http://step-inside.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tools2.py
Type: text/x-python
Size: 555 bytes
Desc: not available
Url : http://mail.python.org/pipermail/image-sig/attachments/20060517/60b6abd1/attachment-0001.py 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: buggy-font.zip
Type: application/zip
Size: 18387 bytes
Desc: not available
Url : http://mail.python.org/pipermail/image-sig/attachments/20060517/60b6abd1/attachment-0001.zip 


More information about the Image-SIG mailing list