GD seg fault on save: (bt) - 2.gd [0/1]
| From: | Steve Alberty | Date: | Wed, 26 Sep 2001 17:45:41 +0000 |
| Subject: | GD seg fault on save: (bt) - 2.gd [0/1] | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-66670@lists.php.net to get a copy of this message | ||
Hi,
i have create a gd image with the gd tools and the follow code produces
a seg fault.
<?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
----
I have attached the gd file.
Regards,
--
Steve