memory.c assertion failed

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
Andruxa
Posts: 2
Joined: 2011-09-13T04:36:09-07:00
Authentication code: 8675308

memory.c assertion failed

Post by Andruxa »

Found an error message in apache log:

child pid 71520 exit signal Abort trap (6)
Assertion failed: ((*BlockHeader(NextBlock(block)) & PreviousBlockBit) == 0), function AcquireBlock, file magick/memory.c, line 341.
Assertion failed: ((*BlockHeader(NextBlock(block)) & PreviousBlockBit) == 0), function AcquireBlock, file magick/memory.c, line 341.
Assertion failed: (semaphore_info != (SemaphoreInfo *) NULL), function LockSemaphoreInfo, file magick/semaphore.c, line 262.
Assertion failed: (semaphore_info != (SemaphoreInfo *) NULL), function LockSemaphoreInfo, file magick/semaphore.c, line 262.

FreeBSD 8.2-RELEASE
ImageMagick-nox11-6.7.1.10
apache-2.2.19
php52-5.2.17_1

pecl-imagick-3.0.1
php-magickwand-1.0.8_5
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: memory.c assertion failed

Post by magick »

Your ImageMagick distribution is using the self-contained, embeddable, zero-configuration edition of ImageMagick. One fix is to build ImageMagick and not use the --enable-embeddable option on the configure script command line. In the mean-time we'll take a look at the internal ImageMagick memory allocator and check for thread race conditions.
Andruxa
Posts: 2
Joined: 2011-09-13T04:36:09-07:00
Authentication code: 8675308

Re: memory.c assertion failed

Post by Andruxa »

Thank you for your response!

I have turned off --enable-embeddable option in config.
It works magically now!

Andrey
Post Reply