|  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
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.
Block user comment
Status: Assign to:
Bug Type:
From: dktapps at pmmp dot io
New email:
PHP Version: OS:


 [2018-05-17 10:20 UTC] dktapps at pmmp dot io
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.

@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:

function 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

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


Add a Patch

Pull Requests

Add a Pull Request


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]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2018-08-15 16:18 UTC]
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 for *NIX and 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 <>.
 [2018-09-02 09:36 UTC]
-Status: Feedback +Status: No Feedback
 [2018-09-02 09:36 UTC]
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-2020 The PHP Group
All rights reserved.
Last updated: Mon Nov 23 22:01:26 2020 UTC