PHP 4.0 Bug #3779: Crash in syntax hilighter
| From: | stas at zend dot com | Date: | Thu, 09 Mar 2000 08:54:28 +0000 |
| Subject: | PHP 4.0 Bug #3779: Crash in syntax hilighter | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-16563@lists.php.net to get a copy of this message | ||
From: stas@zend.com
Operating system: Linux
PHP version: 4.0 Latest CVS (09/03/2000)
PHP Bug Type: Reproduceable crash
Bug description: Crash in syntax hilighter
Syntax hilighter crashes with the following dump:
Program received signal SIGSEGV, Segmentation fault.
0x808eb68 in _efree (ptr=0x839a30c) at ../../Zend/zend_alloc.c:186
186 REMOVE_POINTER_FROM_LIST(p);
(gdb) where
#0 0x808eb68 in _efree (ptr=0x839a30c) at ../../Zend/zend_alloc.c:186
#1 0x80f1603 in zend_highlight (syntax_highlighter_ini=0xbfffc8b4)
at ../../Zend/zend_highlight.c:152
#2 0x809f7a1 in highlight_string (str=0x83785bc,
syntax_highlighter_ini=0xbfffc8b4) at ../../Zend/zend-scanner.l:626
#3 0x80be46f in php_if_highlight_string (ht=1, return_value=0x8394a4c,
this_ptr=0x0, return_value_used=0)
at /home/php/php4/ext/standard/basic_functions.c:1210
#4 0x80ec259 in execute (op_array=0x82ce468) at ../../Zend/zend_execute.c:1598
#5 0x80ec431 in execute (op_array=0x82e0fc0) at ../../Zend/zend_execute.c:1637
#6 0x80ec431 in execute (op_array=0x81d65e4) at ../../Zend/zend_execute.c:1637
#7 0x8088495 in php_execute_script (primary_file=0xbffffa84)
at /home/php/php4/./main.c:1146
#8 0x80a2b03 in apache_php_module_main (r=0x81d056c, fd=20,
display_source_mode=0) at /home/php/php4/sapi/apache/sapi_apache.c:88
#9 0x8084421 in send_php (r=0x81d056c, display_source_mode=0,
filename=0x81d11d4 "/home/httpd/html/zend/codex.php") at mod_php4.c:491
#10 0x808446e in send_parsed_php (r=0x81d056c) at mod_php4.c:503
#11 0x80fb503 in ap_invoke_handler (r=0x81d056c) at http_config.c:508
#12 0x810e7a9 in process_request_internal (r=0x81d056c) at http_request.c:1214
#13 0x810e80c in ap_process_request (r=0x81d056c) at http_request.c:1230
#14 0x810620e in child_main (child_num_arg=0) at http_main.c:4035
#15 0x810639c in make_child (s=0x81969bc, slot=0, now=952591512)
(gdb) info locals
ptr = (void *) 0x839a30c
p = (zend_mem_header *) 0x839a300