php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64853 Use of no longer available ini directives causes crash on TS build
Submitted: 2013-05-16 06:36 UTC Modified: 2013-05-16 06:46 UTC
From: ab@php.net Assigned: ab (profile)
Status: Closed Package: *Configuration Issues
PHP Version: 5.5Git-2013-05-16 (Git) OS: irrelevant
Private report: No CVE-ID: None
 [2013-05-16 06:36 UTC] ab@php.net
Description:
------------
Basically it's the test 
ext/standard/tests/general_functions/get_cfg_var_variation8.phpt crashing on 
windows TS build with the following BT

	php5ts_debug.dll!zend_get_class_entry(const _zval_struct * zobject, void 
* * * tsrm_ls) Line 237	C
 	php5ts_debug.dll!zend_exception_error(_zval_struct * exception, int 
severity, void * * * tsrm_ls) Line 799	C
 	php5ts_debug.dll!zend_error(int type, const char * format, ...) Line 
1045	C
 	php5ts_debug.dll!php_module_startup(_sapi_module_struct * sf, 
_zend_module_entry * additional_modules, unsigned 

int num_additional_modules) Line 2298	C
 	php.exe!php_cli_startup(_sapi_module_struct * sapi_module) Line 417	
C
 	php.exe!main(int argc, char * * argv) Line 1357	C


On linux there's no crash, but one can observe this valgrind trace

==53484== Conditional jump or move depends on uninitialised value(s)
==53484==    at 0xA6531C: zend_error (zend.c:1033)
==53484==    by 0x9A7908: php_module_startup (main.c:2293)
==53484==    by 0xB25833: php_cli_startup (php_cli.c:417)
==53484==    by 0xB28594: main (php_cli.c:1357)
==53484==
==53484== Conditional jump or move depends on uninitialised value(s)
==53484==    at 0xAA35CA: zend_objects_store_mark_destructed 
(zend_objects_API.c:70)
==53484==    by 0x9A39A4: php_error_cb (main.c:1164)
==53484==    by 0x78624F: soap_error_handler (soap.c:2130)
==53484==    by 0xA656C4: zend_error (zend.c:1110)
==53484==    by 0x9A7908: php_module_startup (main.c:2293)
==53484==    by 0xB25833: php_cli_startup (php_cli.c:417)
==53484==    by 0xB28594: main (php_cli.c:1357)
==53484==



Test script:
---------------
ext/standard/tests/general_functions/get_cfg_var_variation8.phpt

Expected result:
----------------
test pass

Actual result:
--------------
crash

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-05-16 06:36 UTC] ab@php.net
-Assigned To: +Assigned To: ab
 [2013-05-16 06:45 UTC] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=d82704b6779cf54e9c8bd16ecc78c612892b4c9d
Log: Fixed bug #64853Use of no longer available ini directives causes crash on TS build
 [2013-05-16 06:46 UTC] ab@php.net
-Status: Assigned +Status: Closed
 [2013-05-16 06:46 UTC] ab@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2014-10-07 23:19 UTC] stas@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=d82704b6779cf54e9c8bd16ecc78c612892b4c9d
Log: Fixed bug #64853Use of no longer available ini directives causes crash on TS build
 [2014-10-07 23:30 UTC] stas@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=d82704b6779cf54e9c8bd16ecc78c612892b4c9d
Log: Fixed bug #64853Use of no longer available ini directives causes crash on TS build
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC