View Issue Details

IDProjectCategoryView StatusLast Update
0002241XdebugStep Debuggingpublic2024-03-28 17:00
Reporterxedaxip791 Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionduplicate 
Product Version3.3.1 
Summary0002241: Segmentation fault - Symfony 6.2.1 - Sulu cms
Description

There is error, even after trying to deep dive into functions I was not able to find specific php function, when there is presented breakpoint (on any line of code that is after this function) the xdebug will crash

Steps To Reproduce

(this was tested only in phpstorm)

  • Set breakpoint inside file Sulu\Bundle\WebsiteBundle\Controller\DefaultController on first line inside indexAction ($response = $this->renderStructure...)
  • Open homepage
  • Make step over or resume program
  • Segment fault
Additional Information

This only occurrences when the breakpoint is pressented, when I remove the breakpoint and resume the apllication (even if I already landed on breakpoint) the Segment fault did not occurrences.

Also from time to time (this is not always possible to reproduce), the segment fault occurrences also when the breakpoint is set to disable.

I was trying to deep dive into specific line that is casing this error, because this step is online call on Sulu function renderStructure, but after lot of step into steps I did not managed to find it.

Versions:
phpstorm 2023.1.3

output of php -v
PHP 8.1.21 (cli) (built: Jul 8 2023 07:09:57) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.21, Copyright (c) Zend Technologies
with Zend OPcache v8.1.21, Copyright (c), by Zend Technologies
with Xdebug v3.3.1, Copyright (c) 2002-2023, by Derick Rethans

TagsNo tags attached.
Operating SystemUbuntu 20.04.2 LTS
PHP Version8.1.10-8.1.19

Relationships

duplicate of 0002229 resolvedderick Sigsegv when breakpoint is set 
duplicate of 0002252 acknowledgedderick Running phpunit in coverage triggers segfault in xdebug_branch_info_mark_reached 

Activities

xedaxip791

2024-01-26 12:49

reporter   ~0006815

Log from xdebug

xedaxip791

2024-01-26 13:02

reporter   ~0006816

Sorry for multiple messages, I found out this already https://xdebug.org/reporting-bugs

Here is also gdb and valgrind

xedaxip791

2024-01-26 13:47

reporter   ~0006817

After more testing, when using php line function xdebug_break(); it is not failing, it is something when breakpoints inside php storm

derick

2024-01-30 11:55

administrator   ~0006819

This is a duplicate of 0002229, which I unfortunately still haven't managed to reproduce, although we have an idea what makes it crash.