#19704 [Opn->Fbk]: ImageTrueColorToPalette() kills PHP
| From: | sniper@php.net | Date: | Wed, 02 Oct 2002 15:31:42 +0000 |
| Subject: | #19704 [Opn->Fbk]: ImageTrueColorToPalette() kills PHP | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-21283@lists.php.net to get a copy of this message | ||
ID: 19704
Updated by: sniper@php.net
Reported By: sprice@wisc.edu
-Status: Open
+Status: Feedback
Bug Type: GD related
Operating System: Darwin 6 (Mac OS 10.2)
PHP Version: 4CVS-2002-10-02
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2002-10-02 09:21:04] sprice@wisc.edu
"Kills PHP" means the same error as in the other bug.
here is what I see from top:
(1 sec)
1482 httpd 27.4% 0:10.96 1 8 164 3.77M- 13.1M+ 6.34M
38.2M+
(1 sec)
1514 c++filt3 0.0% 0:00.01 1 9 14 48K 396K 268K
1.37M
1513 crashdump 102.5% 0:01.35 2 15 405 25.2M+ 21.1M+ 33.2M+
59.7M+
1482 httpd 0.0% 0:10.96 1 8 164 3.77M 13.1M+ 6.34M
38.2M
(1 sec)
1514 c++filt3 0.0% 0:00.01 1 9 14 48K 396K 268K
1.37M
1513 crashdump 99.8% 0:02.40 2 15 405 25.2M 21.1M 33.2M
59.7M
1512 top 4.7% 0:00.42 1 15 18 208K 376K 488K
13.8M
1482 httpd 0.0% 0:10.96 1 8 164 3.77M 13.1M 6.34M
38.2M
I got a core, I don't know if it is of much help tho:
#0 0x90004c88 in __sfvwrite ()
#1 0x90005b24 in fwrite ()
#2 0x007ec104 in ?? ()
#3 0x007eb4f8 in ?? ()
#4 0x007ec8f4 in ?? ()
#5 0x009ba278 in ?? ()
#6 0x009c3888 in ?? ()
#7 0x009afdc4 in ?? ()
#8 0x009aff94 in ?? ()
#9 0x007ee058 in ?? ()
#10 0x007ed72c in ?? ()
#11 0x007f54fc in ?? ()
#12 0x007d00b4 in ?? ()
#13 0x009a42a4 in ?? ()
#14 0x0098bc58 in ?? ()
#15 0x009420c8 in ?? ()
#16 0x009aa04c in ?? ()
#17 0x009ab278 in ?? ()
#18 0x009ab2f8 in ?? ()
#19 0x0000c4b4 in ap_invoke_handler ()
#20 0x000160b4 in process_request_internal ()
#21 0x00016144 in ap_process_request ()
#22 0x00005b48 in child_main ()
#23 0x00005d08 in make_child ()
#24 0x00005e74 in startup_children ()
#25 0x00006470 in standalone_main ()
#26 0x00006ce8 in main ()
#27 0x00001bb0 in _start ()
#28 0x00001a30 in start ()
This is the first time that I have got a core dump, so I am not sure
that I did everything right. (just tell me :-)
------------------------------------------------------------------------
[2002-10-02 08:09:21] iliaa@php.net
'kills php'? Does this mean PHP crashes, if so, please provide a
backtrace of the crash. Otherwise, please provide more information
about this 'killing of php'.
Note: The test script works fine on both Linux & Windows running latest
CVS.
------------------------------------------------------------------------
[2002-10-01 22:15:25] sprice@wisc.edu
This code creates the same error as described here:
http://bugs.php.net/bug.php?id=19700
the two may be related.
If the "ImageTrueColorToPalette" line is commented out this works
fine.
<?php
header( "Content-type: image/png" );
$img = ImageCreateTrueColor( 800, 600 );
ImageTrueColorToPalette( $img, 'TRUE', 256 );
ImagePNG( $img );
ImageDestroy( $img );
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19704&edit=1