Your message dated Mon, 25 Apr 2005 03:21:43 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Debian Sarge : php crash (segmentation fault) when use
php4-imagick functions
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 7 Mar 2005 15:35:22 +0000
>From [EMAIL PROTECTED] Mon Mar 07 07:35:21 2005
Return-path: <[EMAIL PROTECTED]>
Received: from cian.daevel.net (daevel.net) [194.146.225.70]
by spohr.debian.org with smtp (Exim 3.35 1 (Debian))
id 1D8KGP-0007nN-00; Mon, 07 Mar 2005 07:35:21 -0800
Received: (qmail 621 invoked from network); 7 Mar 2005 15:34:51 -0000
Received: from unknown (HELO ?192.168.0.10?) (82.67.25.170)
by cian.daevel.net with SMTP; 7 Mar 2005 15:34:51 -0000
Message-ID: <[EMAIL PROTECTED]>
Date: Mon, 07 Mar 2005 16:32:55 +0100
From: Bool <[EMAIL PROTECTED]>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: fr, en
MIME-Version: 1.0
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Debian Sarge : php crash (segmentation fault) when use php4-imagick
functions
X-Priority: 1 (Highest)
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-2.4 required=4.0 tests=BAYES_00,HAS_PACKAGE,
HTML_MESSAGE,PRIORITY_NO_NAME,X_PRIORITY_HIGH autolearn=no
version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
Package: php4-imagick
Version: 0.9.11-0.1
I just done an "apt-get dist-upgrade", and now imagick functions crash PHP.
The source code was not modified.
It seems that PHP is now in ZTS mode, and before upgrade not.
The error msg in the Apache error_log : [Mon Mar 07 13:21:42 2005] [notice]
child pid 1215 exit signal Segmentation fault (11)
Debian : Sarge
Kernel : 2.6.8-2-k7-smp
Apache : apache2-mpm-prefork 2.0.53-5
PHP : php4 4.3.10-8
Imagick : libmagick6 6.0.6.2-2.1
(all are up to date Debian Sarge packets)
The PHP source code :
<?php
$image_source = './test_source.jpg';
$dest = array(
'./test_1280.jpg' => array( 'width' => 1280, 'height' => 1024, 'quality'
=> 90 ),
'./test_1024.jpg' => array( 'width' => 1024, 'height' => 768, 'quality' =>
90 ),
'./test_0800.jpg' => array( 'width' => 800, 'height' => 600, 'quality' =>
90 ),
'./test_0640.jpg' => array( 'width' => 640, 'height' => 480, 'quality' =>
90 ),
'./test_0200.jpg' => array( 'width' => 200, 'height' => 150, 'quality' =>
70 ),
'./test_0150.jpg' => array( 'width' => 150, 'height' => 112, 'quality' =>
70 ),
'./test_0100.jpg' => array( 'width' => 100, 'height' => 75, 'quality' =>
70 ),
);
foreach($dest as $img => $tmp)
{
@unlink( $img );
}
resize( $image_source, $dest );
foreach($dest as $img => $tmp)
{
echo '<img src="',basename($img),'" alt="Image ',$img,'" title="Image
',$img,'" / ><hr />';
}
function resize( $source_image, $wanted_images )
{
$src_handle = imagick_readimage( $source_image );
if( imagick_iserror( $src_handle ) )
{
echo '<h1>Read : '.imagick_failedreason( $src_handle )
.' ; '.imagick_faileddescription( $src_handle ) ,
'Redimensionnement de '.$source_image ."</h1>\n";
return false;
}
$nb_resize = count( $wanted_images );
foreach( $wanted_images as $dest_image => $opt )
{
echo $dest_image, '<br />';
$dest_height = $opt['height'];
$dest_width = $opt['width'];
$dest_quality = $opt['quality'];
if( $nb_resize === 1 )
$dest_handle = & $src_handle;
else $dest_handle = imagick_clonehandle( $src_handle );
imagick_set_image_quality( $dest_handle, $dest_quality );
if(! imagick_resize( $dest_handle, $dest_width, $dest_height,
IMAGICK_FILTER_GAUSSIAN, 1 ) )
{
echo '<h1>Resize : '.$dest_width.'x'.$dest_height.' '
.imagick_failedreason( $dest_handle ).' ;
'.imagick_faileddescription( $dest_handle ) ,
'Redimensionnement de '.$source_image ."</h1>\n";
imagick_destroyhandle( $src_handle );
@imagick_destroyhandle( $dest_handle );
return false;
}
@unlink( $dest_image );
if(! imagick_writeimage( $dest_handle, $dest_image ) )
{
echo '<h1>Write : '.$dest_image.' '
.imagick_failedreason( $dest_handle ).' ;
'.imagick_faileddescription( $dest_handle ) ,
'Redimensionnement de '.$source_image ."</h1>\n";
imagick_destroyhandle( $src_handle );
@imagick_destroyhandle( $dest_handle );
return false;
}
if( $nb_resize !== 1 )
imagick_destroyhandle( $dest_handle );
}
imagick_destroyhandle( $src_handle );
return true;
}
?>
---------------------------------------
Received: (at 298448-done) by bugs.debian.org; 25 Apr 2005 01:21:48 +0000
>From [EMAIL PROTECTED] Sun Apr 24 18:21:48 2005
Return-path: <[EMAIL PROTECTED]>
Received: from mail.irb.hr [161.53.22.8] (UNKNOWN)
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1DPsIG-0001xt-00; Sun, 24 Apr 2005 18:21:48 -0700
Received: from localhost (localhost [127.0.0.1])
by mail.irb.hr (8.13.3/8.13.3/Debian-6) with ESMTP id j3P1LkWU018977;
Mon, 25 Apr 2005 03:21:46 +0200
Received: from mail.irb.hr ([EMAIL PROTECTED] [127.0.0.1])
by mail.irb.hr (8.13.3/8.13.3/Debian-6) with ESMTP id j3P1Lhs9018970
(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT);
Mon, 25 Apr 2005 03:21:43 +0200
Received: (from [EMAIL PROTECTED])
by mail.irb.hr (8.13.3/8.13.3/Submit) id j3P1Lhf9018969;
Mon, 25 Apr 2005 03:21:43 +0200
Date: Mon, 25 Apr 2005 03:21:43 +0200
From: Matej Vela <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: Migiel de Vos <[EMAIL PROTECTED]>
Subject: Re: Debian Sarge : php crash (segmentation fault) when use
php4-imagick functions
Message-ID: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[EMAIL PROTECTED]>
User-Agent: Mutt/1.5.6+20040907i
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at irb.hr
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no
version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
On Mon, Mar 07, 2005 at 04:32:55PM +0100, Bool wrote:
> I just done an "apt-get dist-upgrade", and now imagick functions crash PHP.
> The source code was not modified.
>
> It seems that PHP is now in ZTS mode, and before upgrade not.
[...]
Your code works fine now that ZTS is disabled again.
Thanks for the report,
Matej
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]