php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76351 running xdebug profiler in debug mode throws stack corruption errors
Submitted: 2018-05-17 10:20 UTC Modified: 2018-09-02 09:36 UTC
From: dktapps at pmmp dot io Assigned: cmb (profile)
Status: No Feedback Package: Xdebug (PECL)
PHP Version: 7.2.5 OS: Windows 10
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2018-05-17 10:20 UTC] dktapps at pmmp dot io
Description:
------------
Compiling and running xdebug in PHP debug mode on Windows causes stack corruption errors to be thrown.

This bug only appears to occur when the xdebug.profiler_enable option is enabled.

config.nice.bat:
@echo off
cscript /nologo configure.js  "--disable-all" "--enable-cli" "--with-xdebug=shared" "--enable-debug" %*

php.exe arguments:
.\php -d extension_dir=./ -d zend_extension=php
_xdebug.dll -d xdebug.profiler_enable=1 test.php

Test script:
---------------
<?php

function a(){
	var_dump("a");
}

a();

Expected result:
----------------
string(1) "a"

and no crash.

Actual result:
--------------
string(1) "a"

followed by a debug error:

---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Debug Error!

Program: C:\pocketmine-php-sdk\php-src\x64\Debug_TS\php_xdebug.dll
Module: C:\pocketmine-php-sdk\php-src\x64\Debug_TS\php_xdebug.dll
File: 

Run-Time Check Failure #2 - Stack around the variable 'nr' was corrupted.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-05-17 15:40 UTC] kevinsisco61784 at gmail dot com
I would trace the stack to better understand where the issue lies
 [2018-08-15 16:18 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2018-08-15 16:18 UTC] cmb@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

Or, preferably, report Xdebug related issues to <https://bugs.xdebug.org/>.
 [2018-09-02 09:36 UTC] cmb@php.net
-Status: Feedback +Status: No Feedback
 [2018-09-02 09:36 UTC] cmb@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Feb 17 01:01:25 2019 UTC