View Issue Details

IDProjectCategoryView StatusLast Update
0001699XdebugProfilingpublic2019-10-31 10:44
ReporterLobzekAssigned Toderick 
Status closedResolutionfixed 
PlatformPCOSWindowsOS Version10
Product Version2.8.0beta1 
Target VersionFixed in Version2.8.0 
Summary0001699: Crash during debugging Phalcon project
DescriptionDuring debugging my project that uses Phalcon framework, in step-by-step mode once any Phalcon's function/class initiated the Xdebug stop working (actually the whole Apache process crashes).

That doesn't happens when debugging pure PHP project.

Checked on different IDEs: Netbeans 11 & PhpStrom 2019.2
Checked with different PHP versions: 7.3 & 7.2
Checked with different Xdebug versions: 2.7.2 & 2.8.0-beta1
Checked with different Phalcon versions: 3.4.4 & 3.2.2
Steps To ReproduceRun step-by-step debugging of following test script:

$test = 5;
$config = new \Phalcon\Config(['test' => 45]); // <--- After that line debugger stop working
$yyy = $config->get('test');
Additional InformationFirst I saw the crash in Apache error log:

[mpm_winnt:notice] [pid 11116:tid 720] AH00428: Parent: child process 10172 exited with status 3221225477 -- Restarting.

After that I checked windows event viewer and found following information:

Application Error:
Faulting application name: httpd.exe, version:, time stamp: 0x5cee4f90
Faulting module name: php_xdebug.dll, version:, time stamp: 0x5d39da6b
Exception code: 0xc0000005
Fault offset: 0x000000000002a59e
Faulting process id: 0x27bc
Faulting application start time: 0x01d55a810f670989
Faulting application path: C:\xampp\apache\bin\httpd.exe
Faulting module path: C:\xampp\php\ext\php_xdebug.dll
Report Id: 6d3d0f47-e119-4f9d-b1fb-2c3c96cd4753
Faulting package full name:
Faulting package-relative application ID:

And here the windows crash report:

Fault bucket 1758042406467703038, type 4
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: httpd.exe
P3: 5cee4f90
P4: php_xdebug.dll
P6: 5d39da6b
P7: c0000005
P8: 000000000002a59e

Analysis symbol:
Rechecking for solution: 0
Report Id: 6d3d0f47-e119-4f9d-b1fb-2c3c96cd4753
Report Status: 268435456
Hashed bucket: 664f7f3c97ed31187865d241119490fe
Cab Guid: 0

Windows report file attached to the issue.
Operating SystemWindows 10
PHP Version7.3.5-7.3.9



2019-08-24 14:08


Report.wer (19,284 bytes)


2019-08-26 14:28

reporter (3,676,405 bytes)


2019-08-26 14:28

reporter   ~0005125

I've got the same issue on the newly installed vagrant box with Ubuntu 16.04.
Phalcon: 3.4.4
PHP: 7.3.8
Xdebug: 2.7.2 (also tested the current master branch with 3.0.0-dev)
Everything works without any issues in case Xdebug enabled in php.ini but XDEBUG_SESSION was not provided to the server.
Earlier I used Phalcon 3.3.1 with PHP 7.1.x and there were no such problems.


2019-08-26 14:43

reporter   ~0005126

Remote debugging log with this script

$test = 5;
$config = new \Phalcon\Config(['test' => 45]); // <--- After that line debugger stop working
$yyy = $config->get('test');

remote_debug_log.log (41,506 bytes)


2019-08-26 18:06

administrator   ~0005127

I've tried to reproduce this, but I can't. @StudioMaX, can you share the Vagrant file?


2019-08-27 08:08

reporter   ~0005128

You can test it here:
Just for your info:
- ssh keys are located in /ssh
- add ` phalcon.test` to your hosts
- test script located in /var/www/public/phalcon.php, can be accessed from http://phalcon.test/phalcon.php
- Phalcon v3.4.4 was compiled from source, you can recompile it via `sudo`
- sometimes Apache doesn't shartup on boot so you need to run `sudo systemctl restart apache2`


2019-08-27 17:03

administrator   ~0005129

I haven't tried yet, but is it possible to reproduce on the CLI as well? /cc @StudioMaX


2019-08-27 17:36

reporter   ~0005130

Well, when I run the Symfony Console in my app, which uses the Phalcon dependency manager, there are no issues. It also works if xdebug is enabled, but I do not use step-by-step debugging. But when I use step-by-step debugging, moved onto line `$config = new \Phalcon\Config(['test' => 45]);` and press F8, then Apache shows the HTTP 503 error page and writes "AH00491: caught SIGTERM, shutting down" into error.log. I can reproduce this error all the time.
A few days ago I upgraded PhpStorm to 2019.2.1, maybe this is related somehow.


2019-08-30 15:00

reporter   ~0005131

@derick are you able to reproduce this case?


2019-09-02 16:53


_usr_bin_php7.3.1000.crash (2,557,370 bytes)


2019-09-02 16:53

reporter   ~0005132

Well, it also crashes in CLI when using step-by-step debugging at the same breakpoint:
`XDEBUG_CONFIG="idekey=PHPSTORM remote_autostart=1" PHP_IDE_CONFIG="serverName=phalcon_xdebug_cli" SITE_ENV="dev" php -dxdebug.remote_host= /var/www/public/phalcon.php`


2019-09-16 15:33

administrator   ~0005140

I tried to reproduce this again, but still no luck. Beyond Vagrant not working (it says something about not being able to find the provider?), it works locally without a hitch. However, this is with that latest RC candidate of Xdebug. Perhaps you can try that?


2019-09-16 17:07

reporter   ~0005142

Yes, this still occurs on 2.8.0beta2.
> Beyond Vagrant not working (it says something about not being able to find the provider?)
I use Windows as host and Ubuntu as guest in Virtualbox with Vagrant, maybe this is related somehow. But looks like the topic starter used native DLLs on Windows, so this is not related to Windows/Linux.


2019-09-16 17:24

administrator   ~0005143

Could you provide something I can ssh into?


2019-09-17 09:39

administrator   ~0005146

Hi there! I could successfully reproduce it with your Vagrant machine, and I know why I could reproduce it there, and not at home. At home I had compiled a beta of phalcon 4.0.0 (the master in git), and you were using 3.4.4. The 4 beta version handles data differently (or rather, *correctly*). I believe the bug is really in phalcon itself, but there is a workaround that I have that works around this. I'll have that committed later today (after it's gone through all the CI tests).


2019-09-17 16:47

administrator   ~0005147

This is now fixed in GIT, for Xdebug 2.8.0beta3/RC1.

Issue History

Date Modified Username Field Change
2019-08-24 14:08 Lobzek New Issue
2019-08-24 14:08 Lobzek Tag Attached: phalcon
2019-08-24 14:08 Lobzek File Added: Report.wer
2019-08-26 14:28 StudioMaX File Added:
2019-08-26 14:28 StudioMaX Note Added: 0005125
2019-08-26 14:43 StudioMaX File Added: remote_debug_log.log
2019-08-26 14:43 StudioMaX Note Added: 0005126
2019-08-26 18:06 derick Note Added: 0005127
2019-08-26 18:06 derick Assigned To => derick
2019-08-26 18:06 derick Status new => feedback
2019-08-27 08:08 StudioMaX Note Added: 0005128
2019-08-27 17:03 derick Note Added: 0005129
2019-08-27 17:36 StudioMaX Note Added: 0005130
2019-08-30 15:00 StudioMaX Note Added: 0005131
2019-09-02 16:53 StudioMaX File Added: _usr_bin_php7.3.1000.crash
2019-09-02 16:53 StudioMaX Note Added: 0005132
2019-09-16 15:33 derick Note Added: 0005140
2019-09-16 17:07 StudioMaX Note Added: 0005142
2019-09-16 17:24 derick Note Added: 0005143
2019-09-17 09:39 derick Note Added: 0005146
2019-09-17 16:47 derick Status feedback => closed
2019-09-17 16:47 derick Resolution open => fixed
2019-09-17 16:47 derick Fixed in Version => 2.8.0dev
2019-09-17 16:47 derick Note Added: 0005147
2019-10-31 10:44 derick Fixed in Version 2.8.0dev => 2.8.0