> Jani Taskinen writes:
> This was actually fixed long time ago in CVS..
>
I use 2.0.4 with the gif stuff hacked in, and current CVS from
about 5 minutes ago segfaults when using the gif stuff. Might be
a problem with the gd lib I'm using... backtrace as follows
(couldn't get a core file).
Regards
Mike Robinson
Starting program: /usr/local/apache/bin/httpd -X
Program received signal SIGSEGV, Segmentation fault.
0x40599842 in compress (init_bits=3, outfile=0x81614fc, im=0x8166c00) at
gd_lzw_out.c:534
534 if ( HashTabOf (i) == fcode ) {
(gdb) bt
#0 0x40599842 in compress (init_bits=3, outfile=0x81614fc,
im=0x8166c00) at gd_lzw_out.c:534
#1 0x405996c5 in GIFEncode (fp=0x81614fc, GWidth=365, GHeight=599,
GInterlace=0, Background=0,
Transparent=-1, BitsPerPixel=1, Red=0x8166c10, Green=0x8167010,
Blue=0x8167410, im=0x8166c00)
at gd_lzw_out.c:349
#2 0x40599139 in gdImageLzwCtx (im=0x8166c00, out=0x81614fc) at
gd_lzw_out.c:67
#3 0x4059807b in gdImageGifCtx (im=0x8166c00, out=0x81614fc) at
gd_gif_out.c:23
#4 0x4014d413 in _php_image_output_ctx (ht=1, return_value=0x81612dc,
this_ptr=0x0, return_value_used=0,
image_type=1, tn=0x402c77de "GIF", func_p=0x4059805a
<gdImageGifCtx>)
at /usr/local/src/phpcvs/php4/ext/gd/gd_ctx.c:98
#5 0x40150987 in zif_imagegif (ht=1, return_value=0x81612dc,
this_ptr=0x0, return_value_used=0)
at /usr/local/src/phpcvs/php4/ext/gd/gd.c:1642
#6 0x4023e336 in execute (op_array=0x81512e4) at
/usr/local/src/phpcvs/php4/Zend/zend_execute.c:1595
#7 0x40231c15 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at /usr/local/src/phpcvs/php4/Zend/zend.c:840
#8 0x4020d20c in php_execute_script (primary_file=0xbffff6c0) at
/usr/local/src/phpcvs/php4/main/main.c:1560
#9 0x40241efe in apache_php_module_main (r=0x8144f1c,
display_source_mode=0)
at /usr/local/src/phpcvs/php4/sapi/apache/sapi_apache.c:55
#10 0x402428c5 in send_php (r=0x8144f1c, display_source_mode=0,
filename=0x0)
at /usr/local/src/phpcvs/php4/sapi/apache/mod_php4.c:556
#11 0x40242a5a in send_parsed_php (r=0x8144f1c) at
/usr/local/src/phpcvs/php4/sapi/apache/mod_php4.c:571
#12 0x080542c0 in ap_invoke_handler ()
#13 0x0806876a in process_request_internal ()
#14 0x080687ca in ap_process_request ()
#15 0x0805fb8e in child_main ()
#16 0x0805fd54 in make_child ()
#17 0x0805febb in startup_children ()
#18 0x080604e8 in standalone_main ()
#19 0x08060d20 in main ()
#20 0x420158d4 in __libc_start_main () from /lib/i686/libc.so.6
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php