View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002229 | Xdebug | Step Debugging | public | 2023-12-19 09:29 | 2024-03-28 16:59 |
| Reporter | cvirag | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | resolved | Resolution | duplicate | ||
| Platform | Docker ARM64 | OS | Debian | OS Version | 12 |
| Product Version | 3.3.1 | ||||
| Summary | 0002229: Sigsegv when breakpoint is set | ||||
| Description | Hello, I have a recently built Docker php:8.1-fpm package with xdebug enabled.
Running PHP with XDEBUG_MODE=develop,debug On client side, Visual Studio Code Extension "PHP Debug" version 1.34.0 is used. If I enable a breakpoint, PHP-FPM crashes. Without breakpoints, requests to PHP-FPM are served properly. | ||||
| Tags | No tags attached. | ||||
| Operating System | |||||
| PHP Version | 8.1.10-8.1.19 | ||||
|
|
Would you be able to provide an Xdebug log as well? It's explained at https://xdebug.org/reporting-bugs#step-debugger ? |
|
|
We are experiencing the same issue as described. xdebug 3.2.2 is working fine, starting 3.3.0 we are having the issues. I attached the xdebug log. If there is anything else I can help with. |
|
|
I have the same issue. Same docker: php:8.1-fpm It seems that php:8.3-fpm + xdebug-3.3.1 works fine. ( I haven't verify it deeply, but at least such configuration doesn't cause described error. ) |
|
|
@cvirag, is that the whole output of If anybody else can also make a As so far, I haven't been able to reproduce this? |
|
|
Hi Derick, could this bt be useful to you? |
|
|
@cvirag, yes, a little. Can you, when you're at the
If you have an cheers, |
|
|
Hi @derick, please find the xdebug log as well as the output of the additional gdb commands attached (I also included bt in xdebug_gdb_details.log). |
|
|
The result of |
|
|
yes, it is. The interesting thing is that it works sometimes. I can't find a pattern when it crashes and when it does not though. |
|
|
Hi @derick, I don't have reproduction steps to share, since it fails in various places in our codebase. However, I narrowed it down to https://github.com/xdebug/xdebug/tree/91bfb654b0a6cfed63d327728db8ec2f3f82c97a It works without issues on previous commit (a725dadae5c80187f5f3f0a0af7e316b874ef08d), and it also works on 3.3.1 if I revert this commit. |
|
|
@deadrock, I am sure that reverting this speed-up will resolve the problem, but that's not a solution. For some reason Can any of you reproduce this in a docker environment that you can share? @xedaxip791 perhaps, as your set-up is all public. |
|
|
@derick I spent a bit more time debugging this, and came to the same conclusion, but at least revert allows us to continue using debugger as before. At some point, (for function_name (Not completely sure what the significance of the I have tried making a minimal reproduction case, but haven't succeeded yet. I've tested this on php-8.1.27. If I try to build php with |
|
|
@deanrock — I tried with both debug and non-debug builds (of PHP 8.2.28-dev), but I can't even reproduce this in a big environment. If you can provide something even in a bug environment for me to try, then perhaps we can pinpoint this better. However, I might nearly consider this as a bug in PHP, as the |
|
|
@derick This (at least from what I observed) happens in I haven't managed to reproduce bogus I've only been able to reproduce this in our company's PHP codebase, which I cannot share. |
|
|
Right, it seems a PHP 8.1 (and 8.0) only issue. From PHP 8.2 and later Xdebug uses observers. But right now, @xedaxip791 could reproduce it in 0002241 |
|
|
Hi Derick, I don't know if it gives any value to the investigation, but although I still can't reproduce the problem, I saw the following. |
|
|
Marking this as "duplicate" of 0002252, as that has a reproduce case that I can reproduce with. |