php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #654 Server hangs on calling the following script ( goes to 100% swap )
Submitted: 1998-08-14 05:48 UTC Modified: 1998-09-02 16:31 UTC
From: sroegner at fh-lausitz dot de Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0.2a OS: Linux 2.0.34
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sroegner at fh-lausitz dot de
New email:
PHP Version: OS:

 

 [1998-08-14 05:48 UTC] sroegner at fh-lausitz dot de
php is compiled with the following options:
--with-adabas --with-unified-odbc --with-apache=../apache1.3.1 --enable-track-vars

script image.phtml ( one of my first try's )

<HTML><HEAD><TITLE>
Test der Imagefunktionen von php3
</TITLE>
<BODY>

<H1>Test mit Image-Funktionen<H1>

<HR>
<?
  $name = "Hallo.gif";
  $pic = imagecreate( 40, 40);
  imagefill( $pic, 40, 40, 10);
  imagegif( $pic, $name );
  echo "<IMG SRC=\"$name\" BORDER=\"2\" ALT=\"Mein Testbild\">";
  ?>
</BODY>
</HTML>         

On calling this file, my server completely hangs 
( cpu- and memory usage of the process httpd get very high ...) 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-09-02 16:31 UTC] zeev
That is a bug in the GD library, at least version 1.2.
If the center of imagefill is specified at the border
of the image, gdImageFill() stucks (any other value,
in this case larger or smaller than 40, would work).
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Sep 22 18:01:26 2019 UTC