PSD file save causes segmentation fault

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
golanp@wix.com
Posts: 5
Joined: 2011-06-14T01:31:04-07:00
Authentication code: 8675308

PSD file save causes segmentation fault

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: PSD file save causes segmentation fault

Post 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.
golanp@wix.com
Posts: 5
Joined: 2011-06-14T01:31:04-07:00
Authentication code: 8675308

Re: PSD file save causes segmentation fault

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: PSD file save causes segmentation fault

Post 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.
Post Reply