Bug #55819 [Asn]: segfault on mbstring tests
| From: | laruence@php.net | Date: | Thu, 06 Oct 2011 13:23:31 +0000 |
| Subject: | Bug #55819 [Asn]: segfault on mbstring tests | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164120@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55819&edit=1
ID: 55819
Updated by: laruence@php.net
Reported by: laruence@php.net
Summary: segfault on mbstring tests
Status: Assigned
Type: Bug
Package: mbstring related
-PHP Version: 5.3SVN-2011-09-30 (SVN)
+PHP Version: 5.4SVN-2011-09-30 (SVN)
-Assigned To: hirokawa
+Assigned To: laruence
Block user comment: N
Private report: N
New Comment:
Assign to myself, and will cc to hirokawa, ask for his review.
Previous Comments:
------------------------------------------------------------------------
[2011-10-01 04:06:34] laruence@php.net
this segfault only exists in svn trunk now.
------------------------------------------------------------------------
[2011-09-30 15:16:00] laruence@php.net
hirokawa, plz look at this, thanks :)
------------------------------------------------------------------------
[2011-09-30 15:14:54] laruence@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] laruence@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