View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002294 | Xdebug | Uncategorized | public | 2024-10-08 15:22 | 2024-11-28 13:41 |
Reporter | Marian Kechlibar | Assigned To | derick | ||
Priority | normal | Severity | crash | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.4.0beta1 | ||||
Fixed in Version | 3.4.0 | ||||
Summary | 0002294: Nette Tester always crashes in all test jobs when running with XDebug 3.4.0beta1 active | ||||
Description | I am using Nette Tester on Windows, which is a framework to test applications written in Nette (another PHP-based web development network), to test my apps. Up until XDebug 3.3.2, inclusive, there was no problem with it. With XDebug 3.4.0 beta 1, all the tests crash with C0000005 error (Access Violation) in php8ts.dll. So far, I was unable to transform my unwieldy Nette Tester script complex to a nimble 20-line test script which would reproduce the issue... but I was at least able to run it under gdb and the gdb crash stack says Thread 1 received signal SIGSEGV, Segmentation fault. I was unable to find the symbol file for the dll online. My suspicion is that the problem is caused by multi-process character of Nette Tester. It uses proc_open to create multiple independent php instances. But I was as of now unable to reproduce the problem in a short script. My attempts to just create a separate php interpreter using proc_open, running some hello world script in a separate process and wait for its exit, never reproduced the problem. In the Nette Tester context, though, the problem appears always, at the exit of each thread. Maybe I could at least gain some better data if I could get the symbol file for the dll. | ||||
Tags | No tags attached. | ||||
Operating System | Windows | ||||
PHP Version | 8.3.10-8.3.19 | ||||
|
PHP 8.3.12 (cli) (built: Sep 24 2024 20:22:41) (ZTS Visual C++ 2019 x64) I can prepare some very elementary Nette Tester test, and I think it won't need any database - please let me know if I should. "then please prepare something that I can: clone from GitHub, use something like composer to install dependencies, and then can run. The script can still not have dependencies on things like databases, as I won't have them installed." - |
|
The downloadable archives on PECL have PDB files added: https://pecl.php.net/package/xdebug/3.4.0beta1/windows — I'll see how I can do this for my own releases too. |
|
Hi, I'm still interested in getting this fixed, and if you could prepare something small, that'd be most welcome. cheers, |
|
Ok, I will try. |
|
I just noticed that you, Derick, committed some fix in the xdebug repository on GitHub, and that fix concerns method xdebug_should_ignore. Maybe this is the fix? Because I just ran my problematic code under windbg (attaching screenshot) and it seems that xdebug_should_ignore is involved in the crash. Would you build a new DLL for me to test? |
|
That indeed looks like the problem. You can find DLLs at https://github.com/xdebug/xdebug/actions/runs/12054387899#artifacts (temporarily) But that backtrace isn't the same as in your original report... |
|
Hmm. One of the traces was generated by gdb and the other by windbg. But with the freshly built 3.4.0beta2-dev, nothing in my 182-test battery crashes anymore, so ... success? :) |
|
Thanks, marking this as closed then. |
Date Modified | Username | Field | Change |
---|---|---|---|
2024-10-08 15:22 | Marian Kechlibar | New Issue | |
2024-10-08 15:28 | Marian Kechlibar | Note Added: 0007067 | |
2024-10-13 16:40 | derick | Note Added: 0007074 | |
2024-10-13 16:40 | derick | Assigned To | => derick |
2024-10-13 16:40 | derick | Status | new => feedback |
2024-11-27 16:08 | derick | Note Added: 0007096 | |
2024-11-27 16:21 | Marian Kechlibar | Note Added: 0007098 | |
2024-11-27 16:21 | Marian Kechlibar | Status | feedback => assigned |
2024-11-27 18:30 | Marian Kechlibar | Note Added: 0007102 | |
2024-11-27 18:30 | Marian Kechlibar | File Added: xdebug.png | |
2024-11-27 18:54 | derick | Note Added: 0007103 | |
2024-11-27 18:54 | derick | Note Edited: 0007103 | |
2024-11-27 19:03 | Marian Kechlibar | Note Added: 0007104 | |
2024-11-28 13:17 | derick | Status | assigned => resolved |
2024-11-28 13:17 | derick | Resolution | open => fixed |
2024-11-28 13:17 | derick | Fixed in Version | => 3.4dev |
2024-11-28 13:17 | derick | Note Added: 0007108 | |
2024-11-28 13:17 | derick | Relationship added | duplicate of 0002305 |
2024-11-28 13:41 | derick | Fixed in Version | 3.4dev => 3.4.0 |