View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001331 | Xdebug | Uncategorized | public | 2016-07-23 11:54 | 2016-11-12 16:53 |
| Reporter | majkel | Assigned To | |||
| Priority | high | Severity | crash | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | Linux | OS | Ubuntu | OS Version | 16.04 |
| Product Version | 2.4.1 | ||||
| Fixed in Version | 2.5.0RC1 | ||||
| Summary | 0001331: Segfault in code coverage | ||||
| Description | |||||
| Tags | No tags attached. | ||||
| Operating System | |||||
| PHP Version | 7.0.0-7.0.4 | ||||
|
|
Reproduce case: git clone git@github.com:majkel89/dbase.git |
|
|
ashgenesis, I can reproduce this problem. But there are many many tests, that are just in the way. Can you help trying to figure out which one causes it? It would be great, if you could do this on the shell first before you try: export USE_ZEND_ALLOC=0 |
|
|
derick I have found that this is the test which fail File tests/unit/FormatTest.php |
|
|
Yeah, that seems to be the one. I think I know why it happens too. It has to do with the mock and its use of __call. |
|
|
Think I have this cracked, can you check the following branch to confirm? https://github.com/derickr/xdebug/tree/issue1331-code-coverage-segfault |
|
|
derick I tried you branch and it seem fixing the segfault ./vendor/bin/phpunit tags/v1.0.0~10 Runtime: PHP 7.0.10-1+deb.sury.org~trusty+1 with Xdebug 2.4.1-dev ............................................................... 63 / 318 ( 19%) Time: 8.61 seconds, Memory: 14.00MB OK (318 tests, 611 assertions) Generating code coverage report in HTML format ... done No more segfault with your branch. Thanks |