View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001121 | Xdebug | Uncategorized | public | 2015-03-02 22:01 | 2015-03-21 23:06 |
| Reporter | jim.delois | Assigned To | |||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Fixed in Version | 2.3.2 | ||||
| Summary | 0001121: Segfault: 11 Continues | ||||
| Description | I am attempting to update the "phpunit/php-code-coverage" package to employ the new path coverage feature. While trivial examples work, attempting to set the flag within the PHPUnit library causes the dreaded Segfault, despite a recent patch to fix this from segfaulting when being called from within a function. It's not yet immediately clear to me what the issue is, so I'm filing a bug here and hoping that this can be addressed shortly so I can work to improve the PHPUnit project. Thanks! | ||||
| Steps To Reproduce | Please see attached image.
xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE); with xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE | XDEBUG_CC_BRANCH_CHECK ); (~line 47)
./vendor/bin/phpunit EXPECTED OUTPUT: PHPUnit 4.5.0 by Sebastian Bergmann and contributors. Configuration read from /Users/delois/Development/source/Other/dev/sebastianbergmann/php-code-coverage/phpunit.xml.dist ................................................... Time: 6.21 seconds, Memory: 13.50Mb OK (51 tests, 93 assertions) Generating code coverage report in Clover XML format ... done Generating code coverage report in HTML format ... done ACTUAL OUTPUT: PHPUnit 4.5.0 by Sebastian Bergmann and contributors. Configuration read from /Users/delois/Development/source/Other/dev/sebastianbergmann/php-code-coverage/phpunit.xml.dist Segmentation fault: 11 | ||||
| Additional Information | As per the discussion here http://bugs.xdebug.org/view.php?id=1119, I have checkout out and compiled the latest from branch xdebug_2_3 . I will attach a gdb backtrace immediately. | ||||
| Tags | No tags attached. | ||||
| Operating System | |||||
| PHP Version | 5.6.0-5.6.4 | ||||
|
|
GDB Backtrace: php-code-coverage root# gdb --args php ./vendor/bin/phpunit --debug Configuration read from /Users/delois/Development/source/Other/dev/sebastianbergmann/php-code-coverage/phpunit.xml.dist Starting test 'PHP_CodeCoverage_FilterTest::testAddingAFileToTheBlacklistWorks'. Program received signal SIGSEGV, Segmentation fault. |
|
|
I'm having trouble reproducing it - can you tell me the exact git clones and composer installs that I need to run? |
|
|
Hi, Derick - thanks for responding! As far as the XDebug versions/branch, I have been able to reproduce this issue with 2.3.0, 2.3.1, and the xdebug_2_3 branch which the screenshot in the original report showed as "v2.3.2-dev". To replicate using the code, perform the following:
I have reproduced this error on PHP 5.6.5 (Mac/homebrew), and Ubuntu PHP 5.6.4 (Docker) |
|
|
I can reproduce this now too. A fix will have to wait a little while as I'm out of country for a few days. |
|
|
Great! I'm thrilled to hear that you can reproduce the issue. The community is very excited about this feature, as I'm sure you're aware. Please don't hesitate to let me know how I can assist. Thanks again! |
|
|
Fixed - I think. |