View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001772 | Xdebug | Uncategorized | public | 2020-04-02 15:48 | 2020-04-04 11:08 |
| Reporter | bag64 | Assigned To | |||
| Priority | high | Severity | crash | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 2.9.4 | ||||
| Target Version | 2.9.5 | Fixed in Version | 2.9.5 | ||
| Summary | 0001772: Crash with exception thrown inside a destructor | ||||
| Description | PHP crashes when XDebug is enabled. class X class InstanceTest extends \PHPUnit\Framework\TestCase
} Result = Process finished with exit code -1073741819 (0xC0000005) | ||||
| Steps To Reproduce | just run phpunit with instanceTest.php (file attached) | ||||
| Additional Information | Tested on both: (same error) php_xdebug-2.9.2-7.4-vc15-x86_64.dll PHPUnit version: 8.4.3 | ||||
| Tags | No tags attached. | ||||
| Operating System | Windows 7 | ||||
| PHP Version | 7.4.0-7.4.4 | ||||
|
|
I attached a complete workspace example (nothing to setup) I don't know about linux, but "crash_test_linux.sh" should also work in theory. I hope this could help. |
|
|
I can't reproduce this (on Linux). I had to do "rm -rf vendor" and "composer install" to make the code run, but I am not getting a crash (or a valgrind memory checking warning). Which settings do you have enabled for PHP/Xdebug? Can you check the html_errors, display_errors, and error_reporting settings, as well as the phpinfo section of Xdebug, and attach these as a file? You can get these by running "php -i" (but please leave out the things I didn't ask for). |
|
|
Would you like me to setup and attach a Standalone test environement (that includes php binaries) and upload it here for you to test and execute ? |
|
|
Happy to test a specific set-up that you can make and share. I'm not quite sure what that would include though? I don't think this bug system wants really large files :-) |
|
|
Hi Derick. Yes I'm aware of the 5MB limit :( This is why I made this batch script for you, You need to download: https://windows.php.net/downloads/releases/php-7.4.4-nts-Win32-vc15-x86.zip Also, you need to extract this in "C:\xdebug_crash" for it to work properly. Once you setup the workspace, you will notice a curios phenomenon: public function test_crash() by public function test_crash() It will NOT crash ! weird huh.. |
|
|
for sake of clarity here's the steps again: 1) Download "xdebug_crash.rar" above and extract content in "c:\xdebug_crash\" |
|
|
I don't have Windows at all, so that makes testing on it hard... |
|
|
Oh. I could setup a temporary VNC for you if it could help. |
|
|
Hey, thanks for setting that up. I've managed to find where the problem is, and I can now reproduce this locally on Linux. I also have a fix already, but I would like to come up with a small reproducible case before I commit this. cheers, |
|
|
Happy to hear that :-) And sorry for making you go through that VS registration pain. |
|
|
This is now fixed in Git. Once AppVeyor finishes building the binaries, you can find your right configuration at https://ci.appveyor.com/project/derickr/xdebug/builds/31949378 . Click on the configuration, and then the artifacts tab. I did not manage to make a small reproducible case unfortunately. |
|
|
Great ! Problem seems to be solved, no more crashes :) |