View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001210 | Xdebug | Uncategorized | public | 2015-11-20 23:51 | 2015-12-07 11:32 |
| Reporter | kyrad | Assigned To | |||
| Priority | normal | Severity | crash | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | x64 | OS | Ubuntu | OS Version | 14.04 LTS |
| Product Version | 2.4.0beta1 | ||||
| Fixed in Version | 2.4.0rc2 | ||||
| Summary | 0001210: Code Coverage Causes Segmentation Fault | ||||
| Description | kyra@home:/tmp/xdebug$ /bin/php -dzend_extension=xdebug.so -ddisplay_errors=on -ddisplay_startup_errors=on -dxdebug.coverage_enable=1 ./vendor/phpunit/phpunit/phpunit --coverage-clover ./.coverage --configuration ./phpunit.xml Runtime: PHP 7.0.0RC7 with Xdebug 2.4.0rc1-dev F 1 / 1 (100%) Time: 90 ms, Memory: 2.00Mb There was 1 failure: 1) Warning FAILURES! Generating code coverage report in Clover XML format ...Segmentation fault | ||||
| Steps To Reproduce | Please see attached minimal app archive to reproduce. It doesn't matter if there are tests found or not, it still segfaults. I reduced the app to the bare minimum to reproduce the segfault. Sorry if I have not provided enough info. This is my first time doing any of this =o) | ||||
| Additional Information | Backtrace: [Thread debugging using libthread_db enabled] | ||||
| Tags | SIGSEGV | ||||
| Operating System | Linux | ||||
| PHP Version | 7.0.0rc7 | ||||
|
|
Have you been able to reproduce this? Do I need to provide more info? |
|
|
I can reproduce this with Xdebug 2.4.0beta1, but no longer with 2.4.0rc1 that I released a few days ago. Could you please try that? |
|
|
kyra@home:/tmp/xdebug/$ /bin/php -dzend_extension=xdebug.so -ddisplay_errors=on -ddisplay_startup_errors=on -dxdebug.coverage_enable=1 -c /etc/php/php.ini ./vendor/phpunit/phpunit/phpunit --coverage-clover ./.coverage --configuration ./phpunit.xml Runtime: PHP 7.0.0RC7 with Xdebug 2.4.0rc2-dev F 1 / 1 (100%) Time: 126 ms, Memory: 2.00Mb There was 1 failure: 1) Warning FAILURES! Generating code coverage report in Clover XML format ...Segmentation fault This morning I compiled latest Xdebug master, the segfault is still occurring. |
|
|
How odd. I can only reproduce this with the 32bit compile of PHP - even though you say you're using the 64bit variant. |
|
|
I didn't do anything special when compiling it on my x64 system. Do I need to specify the architecture type when compiling or does it just default to the native system (x64)? Output of Xdebug compile options: |
|
|
I fixed this in Git master. Please reopen if you still can reproduce this with the latest from GitHub. |