ID: 27728 Updated by: [EMAIL PROTECTED] Reported By: mail at patrickwitte dot de -Status: Open +Status: Assigned Bug Type: Reproducible crash Operating System: * PHP Version: 5.0.0RC1 -Assigned To: +Assigned To: ilia New Comment:
Valgrind reports errors while parsing the parameter. Perhaps we free the __FILE__ stuff too early? Assigning to Ilia :) ==3720== Invalid read of size 4 ==3720== at 0x8293343: zend_parse_arg_impl (zend_API.c:301) ==3720== by 0x8293887: zend_parse_arg (zend_API.c:450) ==3720== by 0x8293BC1: zend_parse_va_args (zend_API.c:542) ==3720== by 0x8293C43: zend_parse_parameters (zend_API.c:569) ==3720== by 0x81BF10C: zif_php_check_syntax (basic_functions.c:2247) ==3720== by 0x82B89D4: zend_do_fcall_common_helper (zend_execute.c:2689) ==3720== by 0x82B90D0: zend_do_fcall_handler (zend_execute.c:2818) ==3720== by 0x82B53C6: execute (zend_execute.c:1381) ==3720== Address 0x4B20E38C is not stack'd, malloc'd or free'd ==3720== Previous Comments: ------------------------------------------------------------------------ [2004-03-27 07:47:38] mail at patrickwitte dot de Description: ------------ This happens no matter if the checked file is syntactically ok or not or even doesn't exists. In all cases the result of php_check_syntax() is the expexted, but if exit (or die()) is called afterwards you get a segfault. Experienced with sapi-module and cli on linux and cli on win32. (win32-sapi not tested) Reproduce code: --------------- <?php echo php_check_syntax(__FILE__) ? "Ok" : "failed"; exit; ?> Expected result: ---------------- Ok Actual result: -------------- Ok segfault Backtrace: #0 _emalloc (size=Cannot access memory at address 0xc ) at /home/patrick/php-5.0.0RC1/Zend/zend_alloc.c:140 140 CALCULATE_REAL_SIZE_AND_CACHE_INDEX(size); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27728&edit=1
