View Issue Details

IDProjectCategoryView StatusLast Update
0002305XdebugUncategorizedpublic2024-11-28 13:41
ReporterRuggMatt Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product Version3.4.0beta1 
Target Version3.4devFixed in Version3.4.0 
Summary0002305: Segfault when checking whether to ignore creating a debug connection during shutdown functions
Description

The beta version produces a segfault when simply running the provided script. I was trying the beta because i wanted to upgrade to PHP 8.4 and narrowed down the issue to these two functions being called together.

3.3.2 works fine. beta does not.

Steps To Reproduce

Run the following script via cli

php script.php
    <?php

    register_shutdown_function(function () {});
    parse_str("", $_POST);
Additional Information

PHP 8.3.13 (cli) (built: Nov 12 2024 02:08:29) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.13, Copyright (c) Zend Technologies
with Xdebug v3.4.0beta1, Copyright (c) 2002-2024, by Derick Rethans

TagsNo tags attached.
Operating Systemalpine3.20.3 in docker on wsl2
PHP Version8.3.10-8.3.19

Relationships

has duplicate 0002294 resolvedderick Nette Tester always crashes in all test jobs when running with XDebug 3.4.0beta1 active 

Activities

RuggMatt

2024-11-21 21:26

reporter   ~0007082

xdebug.discover_client_host=true
xdebug.mode=debug
xdebug.start_with_request=trigger

derick

2024-11-27 15:36

administrator   ~0007083

https://github.com/xdebug/xdebug/pull/985

derick

2024-11-27 16:26

administrator   ~0007099

Thanks for your report! This will be in the upcoming 3.4.0 release.