#40153 [Opn->Bgs]: Segfault with external gd and imagefill
| From: | pajoye@php.net | Date: | Wed, 17 Jan 2007 12:59:01 +0000 |
| Subject: | #40153 [Opn->Bgs]: Segfault with external gd and imagefill | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-107680@lists.php.net to get a copy of this message | ||
ID: 40153
Updated by: pajoye@php.net
Reported By: kore@php.net
-Status: Open
+Status: Bogus
Bug Type: GD related
Operating System: Linux 2.6.19
PHP Version: 5.2.0
-Assigned To:
+Assigned To: pajoye
New Comment:
It is not a php bug.
See http://bugs.libgd.org/4
Previous Comments:
------------------------------------------------------------------------
[2007-01-17 12:53:02] kore@php.net
Description:
------------
Segfault occurs when using imagefill() with external GD library.
Extract from
php -i
Configure Command => './configure' ... '--with-gd=/usr' ...
GD Support => enabled
GD Version => 2.0 or higher
Installed GD version: gd-2.0.33 (Gentoo)
Reproduce code:
---------------
<?php
$image = imagecreatetruecolor( 400, 200 );
$bgColor = imagecolorallocatealpha( $image, 255, 255, 255, 127 );
imagefill( $image, 1, 1, $bgColor );
?>
Expected result:
----------------
Image filled with transparent white
Actual result:
--------------
Segfault
(gdb) run bug_9870_2.php
Starting program: /usr/bin/php bug_9870_2.php
[Thread debugging using libthread_db enabled]
[New Thread -1220794704 (LWP 4989)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1220794704 (LWP 4989)]
0xb7d46dd2 in gdImageSetPixel () from /usr/lib/libgd.so.2
(gdb) bt
#0 0xb7d46dd2 in gdImageSetPixel () from /usr/lib/libgd.so.2
#1 0x00000000 in ?? ()
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40153&edit=1