php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68958 Segfault in zend_parse_va_args called from from zif_strpos
Submitted: 2015-01-30 09:24 UTC Modified: 2015-02-08 04:22 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: sindrepm at gmail dot com Assigned:
Status: No Feedback Package: Strings related
PHP Version: 5.5.21 OS: CentOS 6.6
Private report: No CVE-ID: None
 [2015-01-30 09:24 UTC] sindrepm at gmail dot com
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>)



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-01-31 15:51 UTC] laruence@php.net
-Status: Open +Status: Feedback
 [2015-01-31 15:51 UTC] laruence@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.


 [2015-02-08 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC