[6.4.3.6] FreeBSD/amd64: identify create 4 GB sparse file in

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
keltia

[6.4.3.6] FreeBSD/amd64: identify create 4 GB sparse file in

Post by keltia »

Hello, I'm using ImageMagick mostly with gallery2 (PHP-based photo gallery) on a FreeBSD 7.0/amd64 (64 bit) machine nder Apache 2.2.9. I recently upgraded my IM up to 6.4.3.6 and tried to create another instance of gallery2. It is hanging everytime whie installing/configuring the IM plugin.I've found that during the installation process, gallery2 uses identify on several files located in its own tree in order to find out which file formats are supported.

I managed to find identify created one or two 4GB sparse files in /var/tmp and tried to fill them hence filling up the partition so quickly that I could not recover from "no space left on device"... I've created a vmware instance to test that to avoid crashing my main machine and managed to find that the probem seem t be with the test.svg file (apparently whether SVG is compiled in the IM instance or not does not seem to matter).

I'm wondering if that could be a 64 bit problem in IM (at least identify). Any other report close to this one?

Code: Select all

-r--r--r--  1 www  www  10220 Aug  5  2005 cmyk.jpg
-r--r--r--  1 www  www    504 Aug  5  2005 test.bmp
-r--r--r--  1 www  www   3141 Aug  5  2005 test.eps
-r--r--r--  1 www  www    232 Aug  5  2005 test.gif
-r--r--r--  1 www  www   1102 Aug  5  2005 test.jp2
-r--r--r--  1 www  www    763 Aug  5  2005 test.jpg
-r--r--r--  1 www  www  30712 Aug  5  2005 test.pdf
-r--r--r--  1 www  www    730 Aug  5  2005 test.png
-r--r--r--  1 www  www  65770 Aug  5  2005 test.psd
-r--r--r--  1 www  www   8033 Aug  5  2005 test.svg
-r--r--r--  1 www  www     54 Jan 12  2006 test.tga
-r--r--r--  1 www  www   2729 Aug  5  2005 test.tif
-r--r--r--  1 www  www    408 Oct 10  2005 test.wmf
-r--r--r--  1 www  www  30585 Aug  5  2005 testProfile.jpg
-r--r--r--  1 www  www   4096 Aug  5  2005 truncated.pcd
IM has been compiled with the following options (specific to the FreeBSD port but should indicate which modules are in)

Code: Select all

# This file is auto-generated by 'make config'.
# No user-servicable parts inside!
# Options for ImageMagick-nox11-6.4.3.6
_OPTIONS_READ=ImageMagick-nox11-6.4.3.6
WITHOUT_X11=true
WITHOUT_IMAGEMAGICK_TESTS=true
WITHOUT_IMAGEMAGICK_OPENMP=true
WITH_IMAGEMAGICK_PERL=true
WITHOUT_IMAGEMAGICK_MODULES=true
WITH_IMAGEMAGICK_BZLIB=true
WITH_IMAGEMAGICK_16BIT_PIXEL=true
WITHOUT_IMAGEMAGICK_DJVU=true
WITH_IMAGEMAGICK_LCMS=true
WITHOUT_IMAGEMAGICK_HDRI=true
WITH_IMAGEMAGICK_TTF=true
WITH_IMAGEMAGICK_FONTCONFIG=true
WITH_IMAGEMAGICK_JPEG=true
WITHOUT_IMAGEMAGICK_OPENEXR=true
WITH_IMAGEMAGICK_PNG=true
WITH_IMAGEMAGICK_TIFF=true
WITHOUT_IMAGEMAGICK_FPX=true
WITH_IMAGEMAGICK_JBIG=true
WITH_IMAGEMAGICK_JPEG2000=true
WITH_IMAGEMAGICK_DOT=true
WITHOUT_IMAGEMAGICK_WMF=true
WITHOUT_IMAGEMAGICK_SVG=true
WITH_IMAGEMAGICK_PDF=true
WITHOUT_IMAGEMAGICK_GSLIB=true
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: [6.4.3.6] FreeBSD/amd64: identify create 4 GB sparse file in

Post by magick »

ImageMagick can render SVG with the RSVG delegate library or its internal renderer. Type
  • identify -list configure
is rsvg associated with the DELEGATES tag. If so, the problem may be within the RSVG library otherwise MagickCore. Can you post a URL to your SVG image to see if we can reproduce the problem (or send it as a PM).

ImageMagick 6.4.3-7 is out. Does the problem occur when you use it?
keltia

Re: [6.4.3.6] FreeBSD/amd64: identify create 4 GB sparse file in

Post by keltia »

magick wrote:ImageMagick can render SVG with the RSVG delegate library or its internal renderer. Type

identify -list configure

is rsvg associated with the DELEGATES tag. If so, the problem may be within the RSVG library otherwise MagickCore. Can you post a URL to your SVG image to see if we can reproduce the problem (or send it as a PM).

ImageMagick 6.4.3-7 is out. Does the problem occur when you use it?
I'm currently downloading it.

configure shows a with--rsvg=no and svg is not on the DELEGATES line.

The svg file itself can be found here

Thanks
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: [6.4.3.6] FreeBSD/amd64: identify create 4 GB sparse file in

Post by magick »

We tried test.svg with ImageMagick 6.4.3-7 with and without the RSVG delegate library and it rendered without complaint.
Post Reply