View Issue Details

IDProjectCategoryView StatusLast Update
0002277XdebugStep Debuggingpublic2024-07-18 13:36
Reportertefxacn Assigned To 
PriorityurgentSeveritycrashReproducibilityalways
Status resolvedResolutionunable to reproduce 
Product Version3.3.2 
Summary0002277: Segfault Sigsegv for throw in callable/closure
Description

In search I found https://bugs.xdebug.org/view.php?id=2222 which seems to be tangentially related, however in my case there is no __desctruct method in the object, as well as that xdebug crashes in the middle of the application, which is worse than that issue.

WARNING: [pool www] child 1457777 exited on signal 11 (SIGSEGV - core dumped)

xdebug 3.3.2
PHP 8.3.8 (php-fpm sapi)

xdebug.mode=debug,develop

  • removing "develop" fixes the problem
  • this issue happens even if no debug session is active and no develop functions have been called either
  • memory limit is 4096M, php memory_get_usage() reports memory consumption of between 40-180M (depending on how the issue is reproduced) in the line directly before it segfaults
  • the code that segfaults is a throw that is caught with a try/catch
  • the issue doesn't happen on the first occurrence/invokation of this throw, but after x calls to the throw it suddenly segfaults (might be another cause, just an observation)
  • it seems that this is related to throw inside a closure and/or method invoked on a dynamic object (e.g. new $foo()), but again, this is just an observation
  • there is no loop/recursion
Steps To Reproduce

Happens in a WordPress/WooCommerce install with Yoast plugin.

If you need a full reproducer, I can specify the exact versions/plugins as unfortunately I wasn't able to create a minimal code snippet to reproduce this issue.

Additional Information

2 core dumps bt full attached

TagsNo tags attached.
Operating System
PHP Version8.2.0-8.2.9

Activities

tefxacn

2024-06-27 11:32

reporter   ~0006982

xdebug.log level 10 (both with and without debug triggered) is irrelevant; attached it nevertheless

derick

2024-07-10 16:07

administrator   ~0006990

Hi,

there are several related reports in the issue tracker, but I have never been able to reproduce this myself.

If you could provide a Docker container specification with how to reproduce this, that would be a tremendous help. I know nothing about WordPress or WooCommerce to even begin setting it up to try to get to this myself.

cheers,
Derick

derick

2024-07-18 13:36

administrator   ~0007012

I do not yet have a way on how to reproduce this problem.

There are currently several reported crash bugs where more than one person added information, but often with a different cause. This makes researching this challenging, especially because I still do not have a reproducible case.

I am going to close this ticket (and the others), and will only accept issues related to crashes when there is a full reproducible case — the exact steps on how I could potentially try to have the same issue.