From: php at cipri dot com Operating system: Linux PHP version: 4.3.2RC1 PHP Bug Type: GD related Bug description: Seg fault with ImageFillToBorder and ImageColorAllocate
[php] $im = ImageCreate(1000, 768); ImageColorAllocate($im, 255, 255, 255); $color = ImageColorAllocate($im, 255, 255, 000); ImageFillToBorder($im, 1500, 384, $color, $color); [/php] This will crash with a Seg-fault. After swapping the two lines with the ICA() call no crash happens. PHP was compiled with: ./configure --enable-debug --with-gd=shared,/usr --with-png-dir=shared,/usr --with-zlib --with-zlib-dir=/usr I then ran php -q ~/test.php It dumped a core, and when I ran a bt in gdb I got the following output. #0 0x401ce59e in gdImageGetPixel () from /usr/lib/libgd.so.1 #1 0x401cef7e in gdImageFillToBorder () from /usr/lib/libgd.so.1 #2 0x401cf023 in gdImageFillToBorder () from /usr/lib/libgd.so.1 #3 0x401cf0a0 in gdImageFillToBorder () from /usr/lib/libgd.so.1 #4 0x401cf023 in gdImageFillToBorder () from /usr/lib/libgd.so.1 After this, line 3 and 4 repeat indefinately, it seems. -- Edit bug report at http://bugs.php.net/?id=22965&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22965&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22965&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22965&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22965&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22965&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22965&r=support Expected behavior: http://bugs.php.net/fix.php?id=22965&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22965&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22965&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22965&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22965&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22965&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22965&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22965&r=gnused
