Page 1 of 1

PSD file save causes segmentation fault

Posted: 2011-06-14T03:43:15-07:00
by golanp@wix.com
I am using imagemagick 6.6.7 (latest build of today 06/14/2011) in my application to resize psd files. at there are cases in which when I saving the image to disk I get segmentation fault.

Trying the resize via convert halt also generates segmentation fault.

I can send this psd file when necessary.

here is back trace of my crashed program:

Program terminated with signal 11, Segmentation fault.
#0 0x00007fb6b0e42e2b in raise () from /lib/libpthread.so.0
(gdb) bt
#0 0x00007fb6b0e42e2b in raise () from /lib/libpthread.so.0
#1 0x00007fb6af3809af in MagickSignalHandler () from /opt/prospero/lib/libMagickCore.so.4
#2 <signal handler called>
#3 0x00007fb6b0127287 in memmove () from /lib/libc.so.6
#4 0x00007fb6af3821b5 in CopyMagickMemory () from /opt/prospero/lib/libMagickCore.so.4
#5 0x00007fb6af4c1a02 in RemoveResolutionFromResourceBlock ()
from /opt/prospero/lib/libMagickCore.so.4
#6 0x00007fb6af4c21f3 in WritePSDImage () from /opt/prospero/lib/libMagickCore.so.4
#7 0x00007fb6af2de1f9 in WriteImage () from /opt/prospero/lib/libMagickCore.so.4

Re: PSD file save causes segmentation fault

Posted: 2011-06-14T06:13:42-07:00
by magick
Post a URL to your PSD image and the command you use that produces the fault. We need to reproduce the problem before we can comment.

Re: PSD file save causes segmentation fault

Posted: 2011-06-18T01:41:02-07:00
by golanp@wix.com
here is a link to the file:
https://docs.google.com/leaf?id=0B5qM0b ... y=CLu1krEK

the command is:
convert 1.psd -resize 25% 2.psd

Re: PSD file save causes segmentation fault

Posted: 2011-06-18T06:50:22-07:00
by magick
We can reproduce the problem you posted and have a patch in ImageMagick 6.7.0-9 Beta available by sometime tomorrow. Thanks.