FS#9134 - Imagemagick 6.3.7.9 segfaults on eps->png conversion

Attached to Project: Arch Linux
Opened by Graziano Giuliani (Graziano) - Tuesday, 08 January 2008, 17:42 GMT
Last edited by Aaron Griffin (phrakture) - Wednesday, 11 February 2009, 20:18 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Eric Belanger (Snowman)
Architecture x86_64
Severity High
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

Have an eps image, and convert image.eps image.png segfaults

Additional info:
Conversion was OK on 6.3.7.0, no problem whatsoever.

To have a test eps, try the "classic" tiger.eps in the ghostscript examples directory.

Steps to reproduce:

convert tiger.eps tiger.png
Segmentation fault
This task depends upon

Closed by  Aaron Griffin (phrakture)
Wednesday, 11 February 2009, 20:18 GMT
Reason for closing:  Fixed
Additional comments about closing:  Whoopsie - see the last few comments
Comment by Graziano Giuliani (Graziano) - Friday, 11 January 2008, 09:45 GMT
Different behaviour on i686:

$convert -verbose tiger.eps tiger.png
"gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g550x568 "-sOutputFile=/tmp/magick-XXlAiNR3" "-f/tmp/magick-XXyzxTs6" "-f/tmp/magick-XXrKH738"
convert: image size exceeds user limits in IHDR `/tmp/magick-XXlAiNR3'.
convert: Corrupt image `/tmp/magick-XXlAiNR3'.
convert: Postscript delegate failed `tiger.eps': No such file or directory.
convert: missing an image filename `tiger.png'.
Comment by Flavien Bridault (vlaaad) - Monday, 14 January 2008, 17:07 GMT
Same problem here ! :-/

[18:06:15]vlaaad@Frodon rapports/thèse/Images $ convert -verbose balci2.eps balci2.png
"gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g330x477 "-sOutputFile=/tmp/magick-XXntAUP9" "-f/tmp/magick-XXlewhEZ" "-f/tmp/magick-XXClqOsP"
convert: image size exceeds user limits in IHDR `/tmp/magick-XXntAUP9'.
convert: Corrupt image `/tmp/magick-XXntAUP9'.
convert: Postscript delegate failed `balci2.eps': No such file or directory.
convert: missing an image filename `balci2.png'.
Comment by Graziano Giuliani (Graziano) - Tuesday, 15 January 2008, 09:20 GMT
Aggressive compilation flags?

(gdb) where
#0 0x00002ba1180b5cc5 in free () from /lib/libc.so.6
#1 0x00002ba115b8275e in RelinquishMagickMemory ()
from /usr/lib/libMagick.so.10
#2 0x00002ba11c5c188c in png_IM_free ()
from /usr/lib/ImageMagick-6.3.7/modules-Q16/coders/png.so
#3 0x00002ba1192e0854 in png_free_data () from /usr/lib/libgs.so.8
#4 0x00002ba11a35871c in png_info_destroy () from /usr/lib/libpng12.so.0
#5 0x00002ba11a3631d1 in png_read_destroy () from /usr/lib/libpng12.so.0
#6 0x00002ba11a363513 in png_destroy_read_struct ()
from /usr/lib/libpng12.so.0
#7 0x00002ba11c5c617f in ReadOnePNGImage ()
from /usr/lib/ImageMagick-6.3.7/modules-Q16/coders/png.so
#8 0x00002ba11c5cdd91 in ReadPNGImage ()
from /usr/lib/ImageMagick-6.3.7/modules-Q16/coders/png.so
#9 0x00002ba115b12dd5 in ReadImage () from /usr/lib/libMagick.so.10
#10 0x00002ba118deceaf in ReadPSImage ()
from /usr/lib/ImageMagick-6.3.7/modules-Q16/coders/ps.so
#11 0x00002ba115b12dd5 in ReadImage () from /usr/lib/libMagick.so.10
#12 0x00002ba115edb55d in ConvertImageCommand () from /usr/lib/libWand.so.10
#13 0x0000000000400e0d in ?? ()
#14 0x00002ba118063164 in __libc_start_main () from /lib/libc.so.6
Comment by Flavien Bridault (vlaaad) - Tuesday, 15 January 2008, 10:25 GMT
Same problem here ! :-/

[18:06:15]vlaaad@Frodon rapports/thèse/Images $ convert -verbose balci2.eps balci2.png
"gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g330x477 "-sOutputFile=/tmp/magick-XXntAUP9" "-f/tmp/magick-XXlewhEZ" "-f/tmp/magick-XXClqOsP"
convert: image size exceeds user limits in IHDR `/tmp/magick-XXntAUP9'.
convert: Corrupt image `/tmp/magick-XXntAUP9'.
convert: Postscript delegate failed `balci2.eps': No such file or directory.
convert: missing an image filename `balci2.png'.
Comment by Flavien Bridault (vlaaad) - Tuesday, 15 January 2008, 10:26 GMT
Oops excuse me for the extra comment, just a bad refresh on firefox... :-/
Comment by jason harrop (jharrop) - Monday, 05 January 2009, 20:46 GMT
  • Field changed: Percent Complete (100% → 0%)
Eric, Could you please explain how you fixed this? The svn log at http://repos.archlinux.org/viewvc.cgi/imagemagick/repos/extra-i686/PKGBUILD?view=log
doesn't go back this far...
thanks, Jason
Comment by Aaron Griffin (phrakture) - Monday, 05 January 2009, 20:47 GMT
Re-opened due to a request for more info. Not sure if it's relevant... My guess as to the answer would be that it's fixed in a new upstream version?
Comment by Eric Belanger (Snowman) - Monday, 05 January 2009, 22:08 GMT
I set --with-modules=no. Using --with-modules=yes might work now. I haven't tested it lately.
The old cvs is still available on web svn. You need to select it in the Repository combo box.
Comment by jason harrop (jharrop) - Tuesday, 06 January 2009, 11:10 GMT
Thanks very much for that Eric. --with-modules=no solved my problem (which was this seg fault occurring on Ubuntu 7.10 with 2.6.22 kernel)
cheers!
Comment by jason harrop (jharrop) - Wednesday, 11 February 2009, 19:58 GMT
  • Field changed: Percent Complete (100% → 0%)
Eric, Could you please explain how you fixed this? The svn log at http://repos.archlinux.org/viewvc.cgi/imagemagick/repos/extra-i686/PKGBUILD?view=log
doesn't go back this far...
thanks, Jason
Comment by Eric Belanger (Snowman) - Wednesday, 11 February 2009, 20:10 GMT
Why was this re-opened? I already explained in a comment above. Add the --with-modules=no configure switch.
You need to check the old cvs logs:
http://repos.archlinux.org/viewvc.cgi/extra/multimedia/imagemagick/PKGBUILD?root=extra&view=log
Comment by Aaron Griffin (phrakture) - Wednesday, 11 February 2009, 20:18 GMT
Hmmm, probably a duplicate in the "Reopen request", I assumed it was valid - my fault

Loading...