ID:               32775
 User updated by:  dirk dot msc at gmx dot de
 Reported By:      dirk dot msc at gmx dot de
-Status:           Feedback
+Status:           Open
 Bug Type:         Reproducible crash
 Operating System: Linux
 PHP Version:      5.0.4
 New Comment:

Backtracing outputs:

#0  0x400a2755 in gdImageSetPixel ()
   from /usr/local/gd-2.0.15-gif/lib/libgd.so.2
#1  0x400a2257 in gdImageSetPixel ()
   from /usr/local/gd-2.0.15-gif/lib/libgd.so.2
#2  0x400a3e3c in gdImageFill ()
   from /usr/local/gd-2.0.15-gif/lib/libgd.so.2
#3  0x400a3f54 in gdImageFill ()
   from /usr/local/gd-2.0.15-gif/lib/libgd.so.2
#4  0x400a3ff8 in gdImageFill ()
   from /usr/local/gd-2.0.15-gif/lib/libgd.so.2
#5  0x400a3f54 in gdImageFill ()
   from /usr/local/gd-2.0.15-gif/lib/libgd.so.2
#6  0x400a3ff8 in gdImageFill ()
   from /usr/local/gd-2.0.15-gif/lib/libgd.so.2
#7  0x400a3f54 in gdImageFill ()
   from /usr/local/gd-2.0.15-gif/lib/libgd.so.2
#8  0x400a3ff8 in gdImageFill ()
   from /usr/local/gd-2.0.15-gif/lib/libgd.so.2
#9  0x400a3f54 in gdImageFill ()
   from /usr/local/gd-2.0.15-gif/lib/libgd.so.2
#10 0x400a3ff8 in gdImageFill ()
   from /usr/local/gd-2.0.15-gif/lib/libgd.so.2
#11 0x400a3f54 in gdImageFill ()
   from /usr/local/gd-2.0.15-gif/lib/libgd.so.2
#12 0x400a3ff8 in gdImageFill ()
   from /usr/local/gd-2.0.15-gif/lib/libgd.so.2
#13 0x400a3f54 in gdImageFill ()
   from /usr/local/gd-2.0.15-gif/lib/libgd.so.2
#14 0x400a3ff8 in gdImageFill ()
   from /usr/local/gd-2.0.15-gif/lib/libgd.so.2
#15 0x400a3f54 in gdImageFill ()
   from /usr/local/gd-2.0.15-gif/lib/libgd.so.2
...

This goes on up to about 16,000.


Previous Comments:
------------------------------------------------------------------------

[2005-04-20 16:51:53] [EMAIL PROTECTED]

Please provide that backtrace as we requested...

------------------------------------------------------------------------

[2005-04-20 16:46:22] dirk dot msc at gmx dot de

Note: This does not happen with the Windows version of PHP5.

Backtracking the core dump with gdb indicates a crash in the
gdImageFill () function.

------------------------------------------------------------------------

[2005-04-20 11:49:57] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

------------------------------------------------------------------------

[2005-04-20 11:46:25] dirk dot msc at gmx dot de

Description:
------------
The following script produces a segmentation fault on Linux whereas it
works perfectly on Windows.
You can find the image here:
http://www.hdx4.com/neu/images/buttons/templates/border_top.gif

Please download it as the URL may change.

Reproduce code:
---------------
  $img = @imagecreatetruecolor (100, 21) or die ("Cannot Initialize new
GD image stream");
  $col_white=imagecolorallocate($img, 0xFF, 0xFF, 0xFF);
  imagefill($img, 0,0, $col_white);

  [EMAIL PROTECTED]("border_top.gif");
//  [EMAIL PROTECTED]("default.png");  // if I use this one it
works

  if ($top) {
    imagesettile($img, $top);
    imagefill($img, 0,0, IMG_COLOR_TILED);
  }
  
  header ("Content-type: image/png");
  imagepng($img);
  imagedestroy($img);
  imagedestroy($top);

Expected result:
----------------
Anything, but not a crash.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=32775&edit=1

Reply via email to