php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64382 ZIP PHPTs crash with 5.5 built with VC11 compiler
Submitted: 2013-03-08 09:13 UTC Modified: 2013-03-21 17:53 UTC
From: mattficken@php.net Assigned: ab
Status: Closed Package: Zip Related
PHP Version: 5.5.0alpha5 OS: Windows
Private report: No CVE-ID:
 [2013-03-08 09:13 UTC] mattficken@php.net
Description:
------------
These 3 PHPTs crash 5.5.0a6 on Windows when built with VC11 compiler:
ext/zip/tests/oo_addfile.phpt
ext/zip/tests/oo_rename.phpt
ext/zip/tests/oo_getnameindex.phpt

These crashes are intermittent, about 1 in 10 test runs.

I think there has to be a bunch of PHPTs run between the runs of these 3 Zip PHPTs (ie, just running these 3 PHPTs 10 times won't work... however, this issue is also reproducable by running thse 3 PHPTs a few hundred times).



Expected result:
----------------
Test pass

Actual result:
--------------
037ef060 776febc1 ntdll!RtlpNtEnumerateSubKey+0x1b26
037ef070 776feca1 ntdll!RtlpNtEnumerateSubKey+0x2a2c
037ef0a4 776ade10 ntdll!RtlpNtEnumerateSubKey+0x2b0c
037ef0d4 75a314d1 ntdll!RtlUlonglongByteSwap+0xb70
037ef0e8 6f0ddcc2 kernel32!HeapFree+0x14
037ef0fc 6d99cd78 MSVCR110!free+0x1a
037ef110 6d99c9b3 php5ts!_zip_dirent_finalize+0x18 [c:\php-sdk\snap_5_5\vc11\x86\ts-windows-vc11-x86\ext\zip\lib\zip_dirent.c @ 164]
037ef198 6d99a945 php5ts!zip_close+0x6d3 [c:\php-sdk\snap_5_5\vc11\x86\ts-windows-vc11-x86\ext\zip\lib\zip_close.c @ 307]
037ef1a0 6d767912 php5ts!php_zip_object_free_storage+0x15 [c:\php-sdk\snap_5_5\vc11\x86\ts-windows-vc11-x86\ext\zip\php_zip.c @ 1054]
037ef258 6d767698 php5ts!zend_objects_store_del_ref_by_handle_ex+0x1a2 [c:\php-sdk\snap_5_5\vc11\x86\ts-windows-vc11-x86\zend\zend_objects_api.c @ 221]
037ef270 6da20abf php5ts!zend_objects_store_del_ref+0x18 [c:\php-sdk\snap_5_5\vc11\x86\ts-windows-vc11-x86\zend\zend_objects_api.c @ 173]
037ef288 6d7147f9 php5ts!_zval_dtor_func+0x30bd3f [c:\php-sdk\snap_5_5\vc11\x86\ts-windows-vc11-x86\zend\zend_variables.c @ 54]
037ef2a0 6d728f5e php5ts!_zval_ptr_dtor+0x59 [c:\php-sdk\snap_5_5\vc11\x86\ts-windows-vc11-x86\zend\zend_execute_api.c @ 428]
037ef2b8 6d7b0051 php5ts!zend_hash_reverse_apply+0xbe [c:\php-sdk\snap_5_5\vc11\x86\ts-windows-vc11-x86\zend\zend_hash.c @ 804]
037ef324 6d7affb9 php5ts!shutdown_destructors+0x71 [c:\php-sdk\snap_5_5\vc11\x86\ts-windows-vc11-x86\zend\zend_execute_api.c @ 218]
037ef37c 6d70bae8 php5ts!zend_call_destructors+0x49 [c:\php-sdk\snap_5_5\vc11\x86\ts-windows-vc11-x86\zend\zend.c @ 924]
037ef688 6efa1566 php5ts!php_request_shutdown+0x108 [c:\php-sdk\snap_5_5\vc11\x86\ts-windows-vc11-x86\main\main.c @ 1743]
037ef7bc 6efe41d5 php5apache2_4!php_handler+0x486 [c:\php-sdk\snap_5_5\vc11\x86\ts-windows-vc11-x86\sapi\apache2handler\sapi_apache2.c @ 680]
037ef7d4 6efe356d libhttpd!ap_run_handler+0x25 [g:\php-sdk\lib_builds\vc11\x86\httpd-2.4.3-makefile\server\config.c @ 169]
037ef7ec 6eff2424 libhttpd!ap_invoke_handler+0xdd [g:\php-sdk\lib_builds\vc11\x86\httpd-2.4.3-makefile\server\config.c @ 432]
037ef80c 6eff24b1 libhttpd!ap_process_async_request+0x184 [g:\php-sdk\lib_builds\vc11\x86\httpd-2.4.3-makefile\modules\http\http_request.c @ 317]
037ef820 6efed8a1 libhttpd!ap_process_request+0x11 [g:\php-sdk\lib_builds\vc11\x86\httpd-2.4.3-makefile\modules\http\http_request.c @ 363]
037ef83c 6efe6545 libhttpd!ap_process_http_sync_connection+0x61 [g:\php-sdk\lib_builds\vc11\x86\httpd-2.4.3-makefile\modules\http\http_core.c @ 190]
037ef854 6f00ae62 libhttpd!ap_run_process_connection+0x25 [g:\php-sdk\lib_builds\vc11\x86\httpd-2.4.3-makefile\server\connection.c @ 41]
037ef87c 75a33677 libhttpd!worker_main+0x112 [g:\php-sdk\lib_builds\vc11\x86\httpd-2.4.3-makefile\server\mpm\winnt\child.c @ 840]
037ef888 77669d72 kernel32!BaseThreadInitThunk+0x12
037ef8c8 77669d45 ntdll!RtlInitializeExceptionChain+0x63
037ef8e0 00000000 ntdll!RtlInitializeExceptionChain+0x36


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-03-08 09:20 UTC] mattficken@php.net
-Summary: ZIP PHPTs crash with 5.5 built with VC11 compiler and O+ +Summary: ZIP PHPTs crash with 5.5 built with VC11 compiler
 [2013-03-08 09:21 UTC] mattficken@php.net
Note: this is only with TS builds.
Note: this is bug occurs with or without O+
 [2013-03-21 17:53 UTC] ab@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ab
 [2013-03-21 17:53 UTC] ab@php.net
This is fixes per bug #64452
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Wed Apr 16 18:01:53 2014 UTC