php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67872 Crash on Zend\tests\bug40815.phpt
Submitted: 2014-08-20 12:23 UTC Modified: 2014-08-21 14:03 UTC
From: ab@php.net Assigned: ab (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: master-Git-2014-08-20 (Git) OS: windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ab@php.net
New email:
PHP Version: OS:

 

 [2014-08-20 12:23 UTC] ab@php.net
Description:
------------
When running Zend\tests\bug40815.phpt on master 64 bit windows build, php crashes with the following error msg:

Stack area around _alloca memory reserver by this function is corrupted

and it points to zend/zend_api.c:2916

The backtrace:

 	php7ts_debug.dll!failwithmessage(void * retaddr, int crttype, int errnum, const char * msg) Line 248	C++
 	php7ts_debug.dll!_RTC_AllocaFailure(void * retaddr, _RTC_ALLOCA_NODE * pn, int num) Line 424	C++
 	php7ts_debug.dll!_RTC_CheckStackVars2(void * frame, _RTC_framedesc * v, _RTC_ALLOCA_NODE * allocaList) Line 184	C++
>	php7ts_debug.dll!zend_is_callable_check_class(_zend_string * name, _zend_fcall_info_cache * fcc, int * strict_class, char * * error, void * * * tsrm_ls) Line 2916	C
 	php7ts_debug.dll!zend_is_callable_check_func(int check_flags, _zval_struct * callable, _zend_fcall_info_cache * fcc, int strict_class, char * * error, void * * * tsrm_ls) Line 2994	C
 	php7ts_debug.dll!zend_is_callable_ex(_zval_struct * callable, _zend_object * object, unsigned int check_flags, _zend_string * * callable_name, _zend_fcall_info_cache * fcc, char * * error, void * * * tsrm_ls) Line 3256	C
 	php7ts_debug.dll!zend_is_callable(_zval_struct * callable, unsigned int check_flags, _zend_string * * callable_name, void * * * tsrm_ls) Line 3403	C
 	php7ts_debug.dll!zif_set_exception_handler(unsigned int param_count, _zval_struct * return_value, void * * * tsrm_ls) Line 1648	C
 	php7ts_debug.dll!ZEND_DO_FCALL_SPEC_HANDLER(_zend_execute_data * execute_data, void * * * tsrm_ls) Line 596	C
 	php7ts_debug.dll!execute_ex(_zend_execute_data * execute_data, void * * * tsrm_ls) Line 354	C
 	php7ts_debug.dll!zend_execute(_zend_op_array * op_array, _zval_struct * return_value, void * * * tsrm_ls) Line 384	C
 	php7ts_debug.dll!zend_execute_scripts(int type, void * * * tsrm_ls, _zval_struct * retval, int file_count, ...) Line 1320	C
 	php7ts_debug.dll!php_execute_script(_zend_file_handle * primary_file, void * * * tsrm_ls) Line 2564	C
 	php.exe!do_cli(int argc, char * * argv, void * * * tsrm_ls) Line 981	C
 	php.exe!main(int argc, char * * argv) Line 1358	C


Test script:
---------------
Zend\tests\bug40815.phpt


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-08-20 12:28 UTC] ab@php.net
The same is reproducable with ext\standard\tests\strings\parse_str_basic4.phpt , on linux those tests pass with and without valgrind.
 [2014-08-21 09:09 UTC] ab@php.net
-Assigned To: +Assigned To: ab
 [2014-08-21 14:03 UTC] ab@php.net
-Status: Assigned +Status: Closed
 [2014-08-21 14:03 UTC] ab@php.net
fixed in rev b9a5db2b5534f696ca102fc161b302eabacd401f
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 21:00:02 2026 UTC