Date: 08/27/01
- Next message: teo <email protected>: "Re: [PHP-DEV] A couple of session issues"
- Previous message: repe: "[PHP-DEV] Re: Bug #12944 Updated: new date() and getdate() feature"
- In reply to: alberty <email protected>: "[PHP-DEV] Bug #12894: GD crashes PHP by using GD Format"
- Next in thread: sniper <email protected>: "[PHP-DEV] Bug #12894 Updated: GD crashes PHP by using GD Format"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 12894
User updated by: alberty <email protected>
Reported By: alberty <email protected>
Old Status: Feedback
Status: Open
Bug Type: GD related
Operating System: i686-pc-linux-gnu
PHP Version: 4.0.7-dev (latest CVS)
New Comment:
Hi Jani,
here is the backtrace of the second script:
Program received signal SIGSEGV, Segmentation fault.
0x40411786 in gd_module_entry () from /usr/local/apache/current/libexec/libphp4.so
(gdb) bt
#0 0x40411786 in gd_module_entry () from /usr/local/apache/current/libexec/libphp4.so
(gdb)
the script fails only if you call ImagePNG after the ImageCreateFromGD.
Also ImageGD2 creates corrupted files, but this is another bug ...
Regards,
-- StevePrevious Comments: ------------------------------------------------------------------------
[2001-08-22 13:04:34] sniper <email protected>
I can't get your scripts to crash. Could you please generate a GDB backtrace of the crash?
--Jani
------------------------------------------------------------------------
[2001-08-22 12:13:54] alberty <email protected>
Sorry, my submitted PHP Version was wrong. I mean 4.0.7-dev from the latest CVS.
The script crash under cvs version.
Regards,
Steve
------------------------------------------------------------------------
[2001-08-22 10:57:00] sniper <email protected>
I doubt that you could crash PHP by using functions that don't exist..
Both imageGD2 and ImageCreateFromGD where added AFTER PHP 4.0.6 was released. So they are only available in the CVS.
And with the latest CVS version, both of your scripts work just fine.
--Jani
------------------------------------------------------------------------
[2001-08-22 09:20:30] alberty <email protected>
Hi,
the follow 2 different scripts using ImageCreateFromGD & ImageGD2 and crashes PHP.
(using gd2.0.1 and 4.0.6)
<?php $im_main=ImageCreateFromPNG("./images/some_picture.png");
ImageGD2($im_main,"./images/some_picture.gd2");
ImageDestroy($im_main); ?>
// the gd image is created with pngtogd from the gd lib package.
<?php $im_main=ImageCreateFromGD("./images/some_picture.gd"); ImagePNG($im_main,"./images/some_picture.png"); ImageDestroy($im_main); ?>
Regards,
-- Steve
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12894&edit=1
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: teo <email protected>: "Re: [PHP-DEV] A couple of session issues"
- Previous message: repe: "[PHP-DEV] Re: Bug #12944 Updated: new date() and getdate() feature"
- In reply to: alberty <email protected>: "[PHP-DEV] Bug #12894: GD crashes PHP by using GD Format"
- Next in thread: sniper <email protected>: "[PHP-DEV] Bug #12894 Updated: GD crashes PHP by using GD Format"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

