php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68818 AV reading doc ref with xdebug and PHAR
Submitted: 2015-01-12 22:31 UTC Modified: 2020-01-20 17:18 UTC
From: mattficken@php.net Assigned: derick (profile)
Status: Closed Package: Xdebug
PHP Version: 5.6.4 OS: Windows x64
Private report: No CVE-ID: None
 [2015-01-12 22:31 UTC] mattficken@php.net
Description:
------------
User attempts to use xdebug on userland app that uses PHAR and gets access violation, specifically illegal pointer read 0xc0000005 when it tries to read documentation ref (phar).

Stack traces of user-mode application crashes on Windows can (with user consent) be reported to Microsoft (see Windows Error Reporting and Watson). This bug is based on one of those reports.

Reported for php-cgi.exe 5.6.4 NTS X64.

Watson #85994337566   


Actual result:
--------------
000000f4`99a1d0f0 00007ffc`b581ea27 php5!_efree+0x91 [c:\php-sdk\php56\vc11\x64\php-5.6.4\zend\zend_alloc.c @ 2440]
000000f4`99a1d120 00007ffc`b5bad3e8 php5!php_verror+0x207 [c:\php-sdk\php56\vc11\x64\php-5.6.4\main\main.c @ 946]
000000f4`99a1d1f0 00007ffc`b5bb8b9d php5!php_error_docref1+0x18 [c:\php-sdk\php56\vc11\x64\php-5.6.4\main\main.c @ 972]
000000f4`99a1d230 00007ffc`b5c19cc7 php5!php_stream_display_wrapper_errors+0x1ad [c:\php-sdk\php56\vc11\x64\php-5.6.4\main\streams\streams.c @ 231]
000000f4`99a1d2a0 00007ffc`b59a24e4 php5!_php_stream_open_wrapper_ex+0x3eeb07 [c:\php-sdk\php56\vc11\x64\php-5.6.4\main\streams\streams.c @ 2145]
000000f4`99a1d310 00007ffc`b5a2db28 php5!zif_file_get_contents+0x114 [c:\php-sdk\php56\vc11\x64\php-5.6.4\ext\standard\file.c @ 550]
000000f4`99a1d390 00007ffc`b5b91b66 php5!phar_file_get_contents+0x228 [c:\php-sdk\php56\vc11\x64\php-5.6.4\ext\phar\func_interceptors.c @ 227]
000000f4`99a1d470 00007ffc`c16d453b php5!execute_internal+0x66 [c:\php-sdk\php56\vc11\x64\php-5.6.4\zend\zend_execute.c @ 1533]
000000f4`99a1d4b0 00000000`00000001 php_xdebug_2_2_6_5_6_vc11_nts_x86_64+0x453b
000000f4`99a1d4b8 000000f4`9d0da6d0 0x1
000000f4`99a1d4c0 00000000`00000001 0x000000f4`9d0da6d0
000000f4`99a1d4c8 00000000`00000000 0x1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-01-20 17:18 UTC] derick@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: derick
 [2020-01-20 17:18 UTC] derick@php.net
If this is Xdebug related, please file a bug report at https://bugs.xdebug.org (but only if you use a supported version of PHP and Xdebug)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 14:01:31 2024 UTC