Page 1 of 1

memory.c assertion failed

Posted: 2011-09-13T04:44:04-07:00
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

Re: memory.c assertion failed

Posted: 2011-09-13T06:00:26-07:00
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.

Re: memory.c assertion failed

Posted: 2011-09-13T07:33:34-07:00
by Andruxa
Thank you for your response!

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

Andrey