Memory assertion with --enable-embeddable

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
velter

Memory assertion with --enable-embeddable

Post by velter »

I'm using a custom build of imagemagick on windows/mingw :

./configure --disable-ltdl-install --disable-shared --disable-installed --enable-embeddable --with-quantum-depth=8 --without-modules --without-magick-plus-plus --without-perl --without-dps --without-gslib --without-xml --without-x --with-wmf --without-jp2 --disable-openmp

I'm currently using 6.5.7 and got an assert in memory.c line 756 (RelinquishMagickMemory sanity check for embeded memory allocator) while reading a jp2 image.

I tried to build the latest release (6.6.4) and things are worse. Now I get an assert while calling MagickWandGenesis.

By looking at the code there seem to be a lot of mismatch in memory allocation/free.

For example in locale.c : Allocate Node with AcquireAlignedMemory and free it with RelinquishMagickMemory. AcquireAlignedMemory use malloc while RelinquishMagickMemory use the internal allocator. There seem to be a lot of those mismatch.

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

Re: Memory assertion with --enable-embeddable

Post by magick »

We can reproduce the problem you reported and will have a patch to fix the problem in the next point release of ImageMagick within a week or two. Thanks.
Post Reply