From:             [EMAIL PROTECTED]
Operating system: Linux 2.6.19
PHP version:      5.2.0
PHP Bug Type:     GD related
Bug description:  Segfault with external gd and imagefill

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 bug report at http://bugs.php.net/?id=40153&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40153&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40153&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40153&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40153&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40153&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40153&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40153&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40153&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40153&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40153&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40153&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40153&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40153&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40153&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40153&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40153&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40153&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40153&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40153&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40153&r=mysqlcfg

Reply via email to