php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26729 ImageTTFText - Segmentation Fault
Submitted: 2003-12-27 13:07 UTC Modified: 2004-01-01 20:47 UTC
From: jury at hightech dot lv Assigned:
Status: No Feedback Package: GD related
PHP Version: 4.3.4 OS: Linux Slackware 2.4.20
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
39 + 36 = ?
Subscribe to this entry?

 
 [2003-12-27 13:07 UTC] jury at hightech dot lv
Description:
------------
Apache child crashes after performing all code, on cleanup

In Error Log:
[Sat Dec 27 20:01:19 2003] [notice] child pid 7513 exit signal Segmentation fault (11)

As I Understand - Bug is returned????
GDB Trace will create tomorow.

Reproduce code:
---------------
$image_path = "images/test.jpg";
$src_img = ImageCreateFromJPEG($image_path);
$src_w = ImageSX($src_img);
$src_h = ImageSY($src_img);

//
// create empty true color canvas, def bg is black
$txt_img = ImageCreateTrueColor($src_w,$src_h);
//
// define colors
$white = ImageColorAllocate ($txt_img, 255, 255, 255);
$black = ImageColorAllocate ($txt_img, 0, 0, 0);
//

// add your white text
$font = getcwd() . "/ariblk.ttf";
ImageTTFText ($txt_img, 25, 45, 20, 35, $white, $font, "Inbox");
//
// make black bg transparent
ImageColorTransparent($txt_img, $black);
//

//
ImageJPEG($src_img,'',100);   // quality 70


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-27 20:11 UTC] derick@php.net
Setting it to feedback until a backtrace is received.
 [2004-01-01 20:47 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 12 23:01:30 2024 UTC