View Issue Details

IDProjectCategoryView StatusLast Update
0002311XdebugUncategorizedpublic2024-12-24 12:02
Reporterstanilnytskyi Assigned Toderick  
PriorityhighSeveritycrashReproducibilityalways
Status assignedResolutionopen 
Product Version3.4.0 
Summary0002311: Segmentation fault on xdebug 3.4.0
Description

After upgrading from 3.2.1 to 3.4.0 some composer scripts are failing.

Steps To Reproduce

I attach my docker reproducer (just build container, all files and dependencies already included)
Just follow steps from REPRODUCER.md or see the video.

The docker:
https://drive.google.com/file/d/1JvYk4GBiiz9GTYtOZU6MBTkq5WwVY0F9/view?usp=drive_link

The video:
https://drive.google.com/file/d/1nMcMnA433IfLwJMB1GuGDQhIofNoyq9v/view?usp=sharing

I just run a script inside attached reproducer:

./vendor/bin/magento-patches -n status
Additional Information

Interestingly it work if xdebug mode is off

XDEBUG_MODE=off ./vendor/bin/magento-patches -n status

I tried to dig into the code and found it starts to fail after calling

$this->reviewAppliedAction->execute($input, $output, []); in \Magento\CloudPatches\Command\Process\ShowStatus::run

The method does not seem to be unusual, it's just a class like this: https://github.com/magento/magento-cloud-patches/blob/1.1.2/src/Command/Process/Action/ReviewAppliedAction.php

We upgraded form xdebug 3.2.1

The debugger config can be seen in ini files and .env.

We usually put xdebug into XDEBUG_MODE=develop,debug and enable listener on demand.

Tagscrash, segfault
Operating SystemLinux
PHP Version8.1.20-8.1.29

Activities

derick

2024-12-24 10:51

administrator   ~0007133

Please follow the instructions at https://xdebug.org/reporting-bugs while reporting bug reports.

This is however possibly a duplicate of https://bugs.xdebug.org/view.php?id=2307, which has reportedly been fixed with https://github.com/xdebug/xdebug/pull/987, and is part of the xdebug_3_4 branch on Github.

cheers,
Derick

stanilnytskyi

2024-12-24 12:02

reporter   ~0007134

Thanks for your reply,
What information can I provide in addition to attached reproducing environment?

I am not sure if this is exact duplicate of https://bugs.xdebug.org/view.php?id=2307
On my reproducer and my php + xdebug configs the code form that issue is not failing with segfault.
It do fails when I change mode and run as XDEBUG_MODE=develop,trace php test.php

To check if mentioned fix help should we to try to compile xdebug from latest xdebug_3_4 or wait for release of 3.4.1 ?

Screenshot 2024-12-24 125358.png (121,647 bytes)   
Screenshot 2024-12-24 125358.png (121,647 bytes)   

Issue History

Date Modified Username Field Change
2024-12-24 10:14 stanilnytskyi New Issue
2024-12-24 10:14 stanilnytskyi Tag Attached: crash
2024-12-24 10:14 stanilnytskyi Tag Attached: segfault
2024-12-24 10:51 derick Assigned To => derick
2024-12-24 10:51 derick Status new => feedback
2024-12-24 10:51 derick Note Added: 0007133
2024-12-24 12:02 stanilnytskyi Note Added: 0007134
2024-12-24 12:02 stanilnytskyi File Added: Screenshot 2024-12-24 125358.png
2024-12-24 12:02 stanilnytskyi Status feedback => assigned