php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62313 Zend\tests\errmsg_021.phpt fails
Submitted: 2012-06-13 11:46 UTC Modified: 2012-08-22 10:00 UTC
From: ab@php.net Assigned: ab (profile)
Status: Closed Package: Reproducible crash
PHP Version: 5.4Git-2012-06-13 (snap) OS: windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ab@php.net
New email:
PHP Version: OS:

 

 [2012-06-13 11:46 UTC] ab@php.net
Description:
------------
Test diff:

002- Done

What is really going on behind the scenes is a crash. The strange thing here is - it fails only on the snapshots, running the test on a self compiled binary passes.

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

Actual result:
--------------
test fail

Patches

62313.patch (last revision 2012-06-27 17:35 UTC by ab@php.net)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-06-15 09:38 UTC] ab@php.net
The following patch has been added/updated:

Patch Name: 62313.patch
Revision:   1339753108
URL:        https://bugs.php.net/patch-display.php?bug=62313&patch=62313.patch&revision=1339753108
 [2012-06-15 09:39 UTC] ab@php.net
The fail seems to be caused only in builds using PGO, the patch disables it for the relevant place.
 [2012-06-15 10:38 UTC] pajoye@php.net
Disable optimization for the new handler is going to kill many perf improvements 
in 5.4+.
 
I am sure the issue occurs later on, inside the error management or the ini 
fetching code. But I cannot let this patch in as it is now, disabling optimization 
for new is no-no :)
 [2012-06-15 15:52 UTC] ab@php.net
The following patch has been added/updated:

Patch Name: 62313.patch
Revision:   1339775574
URL:        https://bugs.php.net/patch-display.php?bug=62313&patch=62313.patch&revision=1339775574
 [2012-06-15 15:53 UTC] ab@php.net
the patch was updated to exlude zend_disable_class only from optimization
 [2012-06-17 14:37 UTC] ab@php.net
Debugging the snapshot ra18cede the backtrace is incomplete:

php5.dll!ZEND_NEW_SPEC_HANDLER(_zend_execute_data * execute_data)  Line 816 + 0xf bytes	C
00000001()	
php5.dll!52bd0c2f() 	

Custom compilation with PGO gives more:


php5ts.dll!ZEND_NEW_SPEC_HANDLER(_zend_execute_data * execute_data, void * * * tsrm_ls)  Line 816 + 0x12 bytes	C
php5ts.dll!execute(_zend_op_array * op_array, void * * * tsrm_ls)  Line 410 + 0xb bytes	C
php5ts.dll!zend_execute_scripts(int type, void * * * tsrm_ls, _zval_struct * * retval, int file_count, ...)  Line 1280	C
php5ts.dll!php_execute_script(_zend_file_handle * primary_file, void * * * tsrm_ls)  Line 2473 + 0x12 bytes	C
php.exe!do_cli(int argc, char * * argv, void * * * tsrm_ls)  Line 989	C
php.exe!main(int argc, char * * argv)  Line 1361 + 0x14 bytes	C
php.exe!__tmainCRTStartup()  Line 582 + 0x17 bytes	C
kernel32.dll!7603ed6c()
[Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]	
ntdll.dll!77b7377b()
ntdll.dll!77b7374e()
 [2012-06-27 17:35 UTC] ab@php.net
The following patch has been added/updated:

Patch Name: 62313.patch
Revision:   1340818555
URL:        https://bugs.php.net/patch-display.php?bug=62313&patch=62313.patch&revision=1340818555
 [2012-08-22 09:50 UTC] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=22f55d56659d31a3546556dd39f3833af6d1fa3d
Log: Fixed bug #62313 Zend\tests\errmsg_021.phpt fails
 [2012-08-22 10:00 UTC] ab@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ab
 [2012-08-22 10:00 UTC] ab@php.net
This bug has been fixed in SVN.

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:22 UTC] stas@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=22f55d56659d31a3546556dd39f3833af6d1fa3d
Log: Fixed bug #62313 Zend\tests\errmsg_021.phpt fails
 [2014-10-07 23:33 UTC] stas@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=22f55d56659d31a3546556dd39f3833af6d1fa3d
Log: Fixed bug #62313 Zend\tests\errmsg_021.phpt fails
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Jan 26 05:01:24 2020 UTC