Segmentation fault

diego.veiga at embraer.com.br diego.veiga at embraer.com.br
Fri Mar 19 11:11:30 UTC 2004






Hi all,

Does anyone have ever seen something like this.
 The install of php with libpng is ok, and php is a module from apache. By
php i'm creating an image in png.

  Header("Content-type: image/png");
  $fonte = $DOCUMENT_ROOT."/_tools/ttf/ARIAL.TTF";
  $s=8;
  $im = ImageCreateFromPNG("../images/menu_base.png");
  $blue = ImageColorAllocate($im, 0x2B,0x52,0x9C);
  $text = urldecode($text);
  ImageTTFText($im, $s, 0, 22, 12, $blue, $fonte, "$text");
  Imagepng($im);
  ImageDestroy($im);

The function ImageCreateFromPNG is creating an erro in apache log when the
php file is browse:

[Fri Mar 19 08:07:40 2004] [notice] child pid 2856 exit signal Segmentation
fault (11)
[Fri Mar 19 08:07:40 2004] [notice] child pid 2857 exit signal Segmentation
fault (11)
[Fri Mar 19 08:07:40 2004] [notice] child pid 2858 exit signal Segmentation
fault (11)
[Fri Mar 19 08:07:40 2004] [notice] child pid 2859 exit signal Segmentation
fault (11)

Regards,

Diego Brito Veiga
Technical Publications
Phone: +55 (12) 39274293
Fax: +55 (12) 39273342





More information about the redhat-list mailing list