ID:               28084
 Comment by:       dietrich dot ayala at foundstone dot com
 Reported By:      doormat at sequence-omega dot net
 Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: Windows 2000 SP3
 PHP Version:      4.3.6
 New Comment:

here is a simple reproduction script.

the crash only occurs when writing the image to file, and is
reproducible 100% of the time.

<?php

$string = "i crash.";
$font  = 4;
$width  = ImageFontWidth($font) * strlen($string);
$height = ImageFontHeight($font);
          
$im = @imagecreate ($width,$height);

$background_color = imagecolorallocate($im, 255, 255, 255);
$text_color = imagecolorallocate($im, 0, 0,0);

imagestring($im, $font, 0, 0,  $string, $text_color);
imagejpeg($im,'test_sample.jpg');
?>


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

[2004-05-04 07:49:16] dietrich dot ayala at foundstone dot com

another comment: this is a regression. our code works fine in 4.3.2,
but is broken b/c of this so we cannot upgrade.

here's a quote from the jpgraph people:

"There seems to be a bug with some versions of PHP on Windows. It has a
(known) problem with simultaneous accessing the TTF libraries, (perhaps
some thread-safety issues ?). No known workaround exists (apart from
moving away from Win2000) as far as I'm aware."

is anyone familiar w/ this issue?

thanks, d.

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

[2004-05-04 07:32:10] dietrich dot ayala at foundstone dot com

sorry, i left a piece of information out: php.exe is crashing for me,
not the webserver. that's the only behavioral difference between what
i'm experiencing from the original bug report.

every time i load my graph scripts, php.exe goes boom.

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

[2004-05-04 07:28:32] dietrich dot ayala at foundstone dot com

i'm getting this also. it's reproducible 100% of the time. also using
jpGraph.

i'm working on getting this isolated, but as jpGraph is many thousands
of lines long, it's difficult.

i'm using IIS/WinXP&2k/PHP-4.3.6 & 4.3.7-dev.

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

[2004-04-25 18:21:18] [EMAIL PROTECTED]

Please make a script (as short as possible) that can be 
used to consistently replicate the crash. 

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

[2004-04-21 18:24:12] doormat at sequence-omega dot net

I'm using Apache 1.3.29. I'm not quite sure how to show that  it
crashes in 10 lines or less, especially since the problem only seems to
happen when multiple images are being generated at the same moment (a
page is requested with multiple images, many images are generated with
php/GD, if the page has a bunch of graphs, apache typically crashes).
I'll work on it and get back to you though.

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/28084

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

Reply via email to