Re: imagick constructor fail

From: Date: Tue, 13 Sep 2011 11:09:02 +0000
Subject: Re: imagick constructor fail
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-8529@lists.php.net to get a copy of this message
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. > Hi, > It stops running the following code at line with imagick constructor: > <?php > error_reporting( E_ALL ); > ini_set( "display_errors", 1 ); > $path = "sample.png"; > $imagick = new Imagick(); //it stops here > $imagick->readImageBlob(file_get_contents($path)); > $imagick->setImageFormat('png'); > $fw = fopen( "result.png", "wb" ); > if ( $fw ) > { > $imagick->writeImageFile( $fw ); > fclose( $fw ); > } > $imagick->clear(); > $imagick = null; ?>> > There is no any error messages and exceptions. Apache returns 200 > response code. > I tried to restart Apache. The first execution of script was fine. > After that (all the next times) I have the same issue. > Another interesting thing: The script works fine in CLI every time. > I run at: > FreeBSD 8.2-RELEASE > apache-2.2.19 > pecl-imagick-3.1.0RC1 (Before that I tried pecl-imagick-3.0.1 from > ports with the same result) > ImageMagick-nox11-6.7.1.10 > php52-5.2.17_1 > Hope anyone can help me out here > Andrey Ilyin

« previous php.pecl.dev (#8529) next »