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 | derick | ||
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. | ||||
Attached Files | |||||
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. |
Date Modified | Username | Field | Change |
---|---|---|---|
2015-03-02 22:01 | jim.delois | New Issue | |
2015-03-02 22:01 | jim.delois | File Added: Screen Shot 2015-03-02 at 4.52.55 PM.png | |
2015-03-02 22:04 | jim.delois | Note Added: 0003026 | |
2015-03-03 08:16 | derick | Note Added: 0003027 | |
2015-03-03 08:16 | derick | Assigned To | => derick |
2015-03-03 08:16 | derick | Status | new => feedback |
2015-03-03 16:33 | jim.delois | Note Added: 0003030 | |
2015-03-03 16:33 | jim.delois | Status | feedback => assigned |
2015-03-03 18:46 | jim.delois | Note Edited: 0003030 | |
2015-03-04 01:28 | derick | Note Added: 0003033 | |
2015-03-04 05:01 | jim.delois | Note Added: 0003034 | |
2015-03-21 23:06 | derick | Note Added: 0003050 | |
2015-03-21 23:06 | derick | Status | assigned => closed |
2015-03-21 23:06 | derick | Resolution | open => fixed |
2015-03-21 23:06 | derick | Fixed in Version | => 2.3.2 |
2016-07-31 12:36 | derick | Category | Usage problems => Usage problems (Crashes) |
2016-07-31 12:38 | derick | Category | Usage problems (Crashes) => Usage problems (Wrong Results) |
2020-03-12 16:35 | derick | Category | Usage problems (Wrong Results) => Variable Display |
2020-03-12 16:38 | derick | Category | Variable Display => Uncategorized |