[PHP-DEV] Bug #12894 Updated: GD crashes PHP by using GD Format

2001-10-03 Thread alberty

ID: 12894
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Open
Bug Type: GD related
Operating System: i686-pc-linux-gnu
PHP Version: 4.0.7-dev (latest CVS)
New Comment:

oops, i have post a message to this problem in php.dev under: GD seg fault on save

however, here is another code example to reproduce
the problem:

?php
$im_main=ImageCreateFromGD('2.gd');
ImageJPEG($im_main);
?

The problem is _not_ ImageJPEG! You can reproduce the problem also with 
ImagePNG.

here is the backtrace:

Program received signal SIGSEGV, Segmentation fault.
gdImageJpegCtx (im=???, outfile=???, quality=???) at gd_jpeg.c:207
207   int val = im-tpixels[i][j];
(gdb) bt
#0  gdImageJpegCtx (im=???, outfile=???, quality=???) at gd_jpeg.c:207
---

you can download the '2.gd' file under:
http://www.alberty.de/2.gd


Previous Comments:


[2001-10-02 19:05:23] [EMAIL PROTECTED]

No feedback and not enought information. If problem still
exists with latest CVS / GD reopen with required information.




[2001-08-30 22:36:22] [EMAIL PROTECTED]

I can not reproduce this. Does this happen with that
example script included in this report?
Does this crash happen with specific images? Where could
I get those images? What was the configure line like
for configuring PHP ?

--Jani




[2001-08-27 08:50:44] [EMAIL PROTECTED]

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,

-- 
Steve



[2001-08-22 13:04:34] [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] [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



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/?id=12894


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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12894 Updated: GD crashes PHP by using GD Format

2001-10-03 Thread sniper

ID: 12894
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: GD related
Operating System: i686-pc-linux-gnu
PHP Version: 4.0.7-dev (latest CVS)
New Comment:

Your example GD file crashes even the GD binaries (gdtopng)
and also the backtrace indicates that the problem is not in
PHP but in GD library itself. Please report this to the GD
library author instead.

--Jani


Previous Comments:


[2001-10-03 08:04:38] [EMAIL PROTECTED]

oops, i have post a message to this problem in php.dev under: GD seg fault on save

however, here is another code example to reproduce
the problem:

?php
$im_main=ImageCreateFromGD('2.gd');
ImageJPEG($im_main);
?

The problem is _not_ ImageJPEG! You can reproduce the problem also with 
ImagePNG.

here is the backtrace:

Program received signal SIGSEGV, Segmentation fault.
gdImageJpegCtx (im=???, outfile=???, quality=???) at gd_jpeg.c:207
207   int val = im-tpixels[i][j];
(gdb) bt
#0  gdImageJpegCtx (im=???, outfile=???, quality=???) at gd_jpeg.c:207
---

you can download the '2.gd' file under:
http://www.alberty.de/2.gd




[2001-10-02 19:05:23] [EMAIL PROTECTED]

No feedback and not enought information. If problem still
exists with latest CVS / GD reopen with required information.




[2001-08-30 22:36:22] [EMAIL PROTECTED]

I can not reproduce this. Does this happen with that
example script included in this report?
Does this crash happen with specific images? Where could
I get those images? What was the configure line like
for configuring PHP ?

--Jani




[2001-08-27 08:50:44] [EMAIL PROTECTED]

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,

-- 
Steve



[2001-08-22 13:04:34] [EMAIL PROTECTED]

I can't get your scripts to crash.
Could you please generate a GDB backtrace of the crash?

--Jani




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/?id=12894


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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12894 Updated: GD crashes PHP by using GD Format

2001-10-02 Thread sniper

ID: 12894
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: GD related
Operating System: i686-pc-linux-gnu
PHP Version: 4.0.7-dev (latest CVS)
New Comment:

No feedback and not enought information. If problem still
exists with latest CVS / GD reopen with required information.


Previous Comments:


[2001-08-30 22:36:22] [EMAIL PROTECTED]

I can not reproduce this. Does this happen with that
example script included in this report?
Does this crash happen with specific images? Where could
I get those images? What was the configure line like
for configuring PHP ?

--Jani




[2001-08-27 08:50:44] [EMAIL PROTECTED]

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,

-- 
Steve



[2001-08-22 13:04:34] [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] [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] [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




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/?id=12894


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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12894 Updated: GD crashes PHP by using GD Format

2001-08-30 Thread sniper

ID: 12894
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: GD related
Operating System: i686-pc-linux-gnu
PHP Version: 4.0.7-dev (latest CVS)
New Comment:

I can not reproduce this. Does this happen with that
example script included in this report?
Does this crash happen with specific images? Where could
I get those images? What was the configure line like
for configuring PHP ?

--Jani


Previous Comments:


[2001-08-27 08:50:44] [EMAIL PROTECTED]

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,

-- 
Steve



[2001-08-22 13:04:34] [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] [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] [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] [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=12894edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12894 Updated: GD crashes PHP by using GD Format

2001-08-27 Thread alberty

ID: 12894
User updated by: [EMAIL PROTECTED]
Reported By: [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,

-- 
Steve

Previous Comments:


[2001-08-22 13:04:34] [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] [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] [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] [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=12894edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12894 Updated: GD crashes PHP by using GD Format

2001-08-22 Thread sniper

ID: 12894
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: GD related
Operating System: i686-pc-linux-gnu
PHP Version: 4.0.6
New Comment:

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


Previous Comments:


[2001-08-22 09:20:30] [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=12894edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12894 Updated: GD crashes PHP by using GD Format

2001-08-22 Thread alberty

ID: 12894
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: GD related
Operating System: i686-pc-linux-gnu
PHP Version: 4.0.6
New Comment:

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

Previous Comments:


[2001-08-22 10:57:00] [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] [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=12894edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12894 Updated: GD crashes PHP by using GD Format

2001-08-22 Thread sniper

ID: 12894
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Bogus
Status: Feedback
Bug Type: GD related
Operating System: i686-pc-linux-gnu
Old PHP Version: 4.0.6
PHP Version: 4.0.7-dev (latest CVS)
New Comment:

I can't get your scripts to crash.
Could you please generate a GDB backtrace of the crash?

--Jani


Previous Comments:


[2001-08-22 12:13:54] [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] [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] [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=12894edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]