View Issue Details

IDProjectCategoryView StatusLast Update
0002060XdebugUncategorizedpublic2022-04-04 11:32
Reporteruser3115Assigned Toderick  
PriorityimmediateSeverityblockReproducibilityalways
Status resolvedResolutionduplicate 
OSWindows 10 ProOS Version20H2 
Product Version3.1.2 
Fixed in Version3.1.4 
Summary0002060: XDebug breaks the Symfony "PhpFilesAdapter" cache adapter
Description

Hi,

The XDebug extension v3.1.2 (Thread Safe) simply does not work with the Symfony v6.0 "PhpFilesAdapter" cache adapter under PHP v8.1. The script simply shut down without any error displayed or logged. This blocks the whole execution of my code.

By disabling the XDebug extension in the php.ini file, the code works properly again.

For further details, please visit my Github issue https://github.com/symfony/symfony/issues/45244.

I have no idea where the problem in the extension comes from, not knowing more than that about the XDebug extension. I hope someone will find a solution to my issue, thanks in advance.

Regards.

Steps To Reproduce

See my Github Issue : https://github.com/symfony/symfony/issues/45244.

  1. Install PHP 8.1 (Thread Safe).
  2. Install XDebug extension 3.1.2 (Thread Safe) and enable it in thephp.ini file of your related PHP version.
  3. Install composer.
  4. Install the dependency "symfony/cache" (version 6.0) with composer (command: composer require symfony/cache:6.0).
  5. Run the piece of code below:
<?php

use Symfony\Component\Cache\Adapter\PhpFilesAdapter;

require __DIR__ . '/vendor/autoload.php';

$pool = new PhpFilesAdapter('bar', 0, __DIR__ . '/cache');

$data = $pool->get('foo',  fn (): mixed => [1, 2, 3]);

var_dump($data);
  1. The var_dump does not display any information: the script completely shut down.
  2. Now disable the XDebug extension in thephp.ini file of your related PHP version.
  3. Try again the piece of PHP code, and now everything works again.
Additional Information

XDdebug info:

  • Version: 3.1.2 (Thread Safe)

PHP info:

  • Version: 8.1.x (Thread Safe)

Symfony info:

  • Version: 6.0.x

OS info:

  • Edition: Windows 10 Pro
  • Version: 20H2
  • Build: 19042.1466
  • System type: 64-bit operating system, x64-based processor

Github issue: https://github.com/symfony/symfony/issues/45244

Tagscrash, php8.0, Symfony
Attached Files
Operating SystemWindows 10 Pro / Version 20H2 / Build 19042.1466) / System type 64-bit operating system, x64-based processor
PHP Version8.1.0-8.1.4

Relationships

duplicate of 0002064 closedderick Segmentation fault in symfony cache 

Activities

derick

2022-02-21 14:57

administrator   ~0006208

I believe this is the same issue as 0002064 — can you use the DLL in the "php_xdebug-3.1.4-dev-8.1-vs16-x86_64 " file (bottom) at https://github.com/xdebug/xdebug/actions/runs/1876220232 to see if that one works?

user3115

2022-02-21 15:25

  ~0006209

Hi derick,

I think that the DLL "php_xdebug-3.1.4-dev-8.1-vs16-x86_64" fixed the issue in PHP 8.1.2. Do you have any idea when the version v3.1.4 will be released?

See my screenshot for the test results.

Regards.

xdebug_issue_fixed.png (131,804 bytes)   
xdebug_issue_fixed.png (131,804 bytes)   

derick

2022-02-21 16:02

administrator   ~0006210

I don't know yet, but reasonably soon as there were now two reports about this specific issue. I am closing this one in favour of 0002064 which had an easier to reproduce example.

Issue History

Date Modified Username Field Change
2022-01-31 13:02 user3115 New Issue
2022-01-31 13:02 user3115 Tag Attached: crash
2022-01-31 13:02 user3115 Tag Attached: php8.0
2022-01-31 13:02 user3115 Tag Attached: Symfony
2022-01-31 13:02 user3115 File Added: Capture d’écran 2022-01-31 130615.png
2022-01-31 13:02 user3115 File Added: 151783901-54fa1a73-a1a4-4fe5-90c6-bcfe0a2710e3.png
2022-01-31 13:02 user3115 File Added: 151783878-328fb00f-83ee-476c-b78c-fd9d8860f278.png
2022-02-21 14:57 derick Assigned To => derick
2022-02-21 14:57 derick Status new => feedback
2022-02-21 14:57 derick Note Added: 0006208
2022-02-21 15:25 user3115 Note Added: 0006209
2022-02-21 15:25 user3115 File Added: xdebug_issue_fixed.png
2022-02-21 15:25 user3115 Status feedback => assigned
2022-02-21 16:02 derick Status assigned => resolved
2022-02-21 16:02 derick Resolution open => duplicate
2022-02-21 16:02 derick Fixed in Version => 3.1dev
2022-02-21 16:02 derick Note Added: 0006210
2022-02-21 16:02 derick Relationship added duplicate of 0002064
2022-04-04 11:32 derick Fixed in Version 3.1dev => 3.1.4