Bug #68958 [NEW]: Segfault in zend_parse_va_args called from from zif_strpos
| From: | sindrepm at gmail dot com | Date: | Fri, 30 Jan 2015 09:24:59 +0000 |
| Subject: | Bug #68958 [NEW]: Segfault in zend_parse_va_args called from from zif_strpos | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-190346@lists.php.net to get a copy of this message | ||
From: sindrepm at gmail dot com
Operating system: CentOS 6.6
PHP version: 5.5.21
Package: Strings related
Bug Type: Bug
Bug description:Segfault in zend_parse_va_args called from from zif_strpos
Description:
------------
On a Magento web site I am getting the following segfault on both PHP
5.4.37 and PHP 5.5.20. Gdb backtrace:
Program terminated with signal 11, Segmentation fault.
#0 0x00000000007d1a06 in zend_parse_va_args (num_args=2,
type_spec=0x92e49e "sz|l",
va=0x7fff4d6b7030, flags=0) at
/usr/local/lsws/phpbuild/php-5.5.20/Zend/zend_API.c:730
#0 0x00000000007d1a06 in zend_parse_va_args (num_args=2,
type_spec=0x92e49e "sz|l",
va=0x7fff4d6b7030, flags=0) at
/usr/local/lsws/phpbuild/php-5.5.20/Zend/zend_API.c:730
#1 0x00000000007d23c5 in zend_parse_parameters (num_args=2,
type_spec=<value optimized out>)
at /usr/local/lsws/phpbuild/php-5.5.20/Zend/zend_API.c:924
#2 0x00000000006f9180 in zif_strpos (ht=<value optimized out>,
return_value=0x78a6ff8,
return_value_ptr=<value optimized out>, this_ptr=<value optimized
out>,
return_value_used=<value optimized out>)
at /usr/local/lsws/phpbuild/php-5.5.20/ext/standard/string.c:1823
#3 0x0000000000849b03 in zend_do_fcall_common_helper_SPEC
(execute_data=<value optimized out>)
at /usr/local/lsws/phpbuild/php-5.5.20/Zend/zend_vm_execute.h:550
#4 0x000000000083b380 in execute_ex (execute_data=0x7902db8)
at /usr/local/lsws/phpbuild/php-5.5.20/Zend/zend_vm_execute.h:363
#5 0x0000000000849fa9 in zend_do_fcall_common_helper_SPEC
(execute_data=0x7902640)
at /usr/local/lsws/phpbuild/php-5.5.20/Zend/zend_vm_execute.h:584
#6 0x000000000083b380 in execute_ex (execute_data=0x7902640)
at /usr/local/lsws/phpbuild/php-5.5.20/Zend/zend_vm_execute.h:363
#7 0x00000000007b9efe in zend_call_function (fci=0x7fff4d6b7520,
fci_cache=<value optimized out>)
at /usr/local/lsws/phpbuild/php-5.5.20/Zend/zend_execute_API.c:937
#8 0x00000000007e0017 in zend_call_method (object_pp=0x7fff4d6b7648,
obj_ce=<value optimized out>, fn_proxy=0x41499b0,
function_name=0xa69dd6 "__call",
function_name_len=<value optimized out>,
retval_ptr_ptr=0x7fff4d6b7658, param_count=2,
arg1=0x78dec48, arg2=0x78de818)
at /usr/local/lsws/phpbuild/php-5.5.20/Zend/zend_interfaces.c:97
#9 0x00000000007ee9ad in zend_std_call_user_call (ht=<value optimized
out>,
return_value=0x78a6ec0, return_value_ptr=<value optimized out>,
this_ptr=0x41219e0,
return_value_used=<value optimized out>)
--
Edit bug report at https://bugs.php.net/bug.php?id=68958&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68958&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68958&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68958&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68958&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68958&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68958&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68958&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68958&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68958&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68958&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68958&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68958&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68958&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68958&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68958&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68958&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68958&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68958&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68958&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68958&r=mysqlcfg