Edit report at https://bugs.php.net/bug.php?id=55819&edit=1
ID: 55819 Updated by: larue...@php.net Reported by: larue...@php.net Summary: segfault on mbstring tests Status: Open Type: Bug Package: mbstring related -PHP Version: 5.3.8 +PHP Version: 5.4.0beta1 -Assigned To: +Assigned To: hirokawa Block user comment: N Private report: N New Comment: hirokawa, plz look at this, thanks :) Previous Comments: ------------------------------------------------------------------------ [2011-09-30 15:14:54] larue...@php.net The following patch has been added/updated: Patch Name: bug55819.diff Revision: 1317395694 URL: https://bugs.php.net/patch-display.php?bug=55819&patch=bug55819.diff&revision=1317395694 ------------------------------------------------------------------------ [2011-09-30 08:06:43] larue...@php.net Description: ------------ there are two segfault when run test of mbstring: Test mb_ereg_replace() function : usage variations [ext/mbstring/tests/mb_ereg_replace_variation2.phpt] Test mb_ereg_replace() function : usage variations [ext/mbstring/tests/mb_ereg_replace_variation3.phpt] Expected result: ---------------- pass Actual result: -------------- segfault: #0 0x0000000000653edc in _php_mb_regex_ereg_replace_exec (ht=4, return_value=0x2a95de6768, return_value_ptr=0x0, this_ptr=0x0, return_value_used=1, options=0, is_callable=0) at /home/huixc/opensource/php-src/trunk/ext/mbstring/php_mbregex.c:924 924 if ((replace_len - i) >= 2 && fwd == 1 && (gdb) bt #0 0x0000000000653edc in _php_mb_regex_ereg_replace_exec (ht=4, return_value=0x2a95de6768, return_value_ptr=0x0, this_ptr=0x0, return_value_used=1, options=0, is_callable=0) at /home/huixc/opensource/php-src/trunk/ext/mbstring/php_mbregex.c:924 #1 0x000000000065531f in zif_mb_ereg_replace (ht=4, return_value=0x2a95de6768, return_value_ptr=0x0, this_ptr=0x0, return_value_used=1) at /home/huixc/opensource/php-src/trunk/ext/mbstring/php_mbregex.c:1031 #2 0x00000000008d3de6 in zend_do_fcall_common_helper_SPEC (execute_data=0x2a95dac0e8) at /home/huixc/opensource/php- src/trunk/Zend/zend_vm_execute.h:642 #3 0x00000000008da583 in ZEND_DO_FCALL_SPEC_CONST_HANDLER (execute_data=0x2a95dac0e8) at /home/huixc/opensource/php- src/trunk/Zend/zend_vm_execute.h:2215 #4 0x00000000008d2aea in execute (op_array=0x2a95de03b0) at /home/huixc/opensource/php-src/trunk/Zend/zend_vm_execute.h:410 #5 0x000000000089b19f in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/huixc/opensource/php-src/trunk/Zend/zend.c:1271 #6 0x000000000081bb23 in php_execute_script (primary_file=0x7fbffff400) at /home/huixc/opensource/php-src/trunk/main/main.c:2391 #7 0x00000000009bb061 in do_cli (argc=66, argv=0x7fbffff6e8) at /home/huixc/opensource/php-src/trunk/sapi/cli/php_cli.c:983 #8 0x00000000009bbf02 in main (argc=66, argv=0x7fbffff6e8) at /home/huixc/opensource/php-src/trunk/sapi/cli/php_cli.c:1356 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55819&edit=1