View Issue Details

IDProjectCategoryView StatusLast Update
0002064XdebugUncategorizedpublic2022-04-04 11:32
Reportermrsombre Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
PlatformDockerOS Versionphp:8.1-apache 
Product Version3.1.2 
Target Version3.1devFixed in Version3.1.4 
Summary0002064: Segmentation fault in symfony cache
Description

If exception raised in symfony cache contracts segfault occured

Steps To Reproduce
  • Docker image php:8.1-apache (sha256:954b8e1682bb09aed1e758449918dffa3af470a939868cf704f6078610851a31)
  • Latest xdebug installed
    PHP 8.1.1 (cli) (built: Dec 21 2021 19:41:31) (NTS)
    Copyright (c) The PHP Group
    Zend Engine v4.1.1, Copyright (c) Zend Technologies
    with Xdebug v3.1.3, Copyright (c) 2002-2022, by Derick Rethans
  • XDEBUG_MODE: develop,debug
  • "symfony/cache": "^6.0" installed by composer

This PHP code:

<?php

use Symfony\Component\Cache\Adapter\FilesystemAdapter;
use Symfony\Contracts\Cache\ItemInterface;

ini_set('display_errors', true);

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

$cache = new FilesystemAdapter();
$cache->get('wrong@key', function (ItemInterface $item) {
});

Result:
test-main-1 | [Mon Feb 21 06:07:37.447296 2022] [core:notice] [pid 1] AH00052: child pid 17 exit signal Segmentation fault (11)
test-main-1 | [Mon Feb 21 06:07:38.449455 2022] [core:notice] [pid 1] AH00052: child pid 18 exit signal Segmentation fault (11)
test-main-1 | [Mon Feb 21 06:07:38.449489 2022] [core:notice] [pid 1] AH00052: child pid 19 exit signal Segmentation fault (11)
test-main-1 | [Mon Feb 21 06:07:39.454470 2022] [core:notice] [pid 1] AH00052: child pid 20 exit signal Segmentation fault (11)

Additional Information

If set mode to XDEBUG_MODE: "debug" error is not reproduced
Also not reproduced on PHP 8.0

TagsNo tags attached.
Operating System
PHP Version8.1.0-8.1.4

Relationships

has duplicate 0002060 resolvedderick XDebug breaks the Symfony "PhpFilesAdapter" cache adapter 

Activities

derick

2022-02-21 11:53

administrator   ~0006206

I have reproduced this, and there is a fix at https://github.com/xdebug/xdebug/pull/820 — but I can't seem to make a short reproducible script.

Do you perhaps know what kind of "strange" thing, symfony-cache does here?

derick

2022-03-02 13:38

administrator   ~0006223

I've merge the PR, and this should become part of 3.1.4.