View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001486 | Xdebug | Code Coverage | public | 2017-11-01 17:57 | 2017-12-02 18:36 |
| Reporter | cristi.cotet | Assigned To | derick | ||
| Priority | normal | Severity | crash | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | unix | OS | centos | OS Version | 7.4.1708 |
| Product Version | 2.5.5 | ||||
| Target Version | 2.6.0 | Fixed in Version | 2.6.0alpha1 | ||
| Summary | 0001486: Crash on ZEND_SWITCH_LONG / ZEND_SWITCH_STRING | ||||
| Description | Program received signal SIGSEGV, Segmentation fault. Fixed by changing | ||||
| Steps To Reproduce | After switching to jumplist when running phpunit with code coverage the jumplist will exceed XDEBUG_BRANCH_MAX_OUTS records and buffer overflow occurs. Fixed it by modifying XDEBUG_BRANCH_MAX_OUTS to 320. Don't know the best value for this! | ||||
| Additional Information | BackTrace: | ||||
| Tags | No tags attached. | ||||
| Operating System | centos 7.4.1708 | ||||
| PHP Version | 7.2-dev | ||||
|
|
Can you share a code snippet that causes this? The whole idea behind this was that it can't overflow :-) |
|
|
I will provide a code snippet later today. I believe any switch with more than 31 cases+default+next will overflow in PHP 7.2 RC5. |
|
|
Cheers - did you have the time to attach the code snippet yet? |
|
|
Thanks for the report, this is now fixed in master. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2017-11-01 17:57 | cristi.cotet | New Issue | |
| 2017-11-01 18:21 | derick | Note Added: 0004447 | |
| 2017-11-01 18:21 | derick | Assigned To | => derick |
| 2017-11-01 18:21 | derick | Status | new => feedback |
| 2017-11-02 06:13 | cristi.cotet | Note Added: 0004452 | |
| 2017-11-02 06:13 | cristi.cotet | Status | feedback => assigned |
| 2017-11-10 14:45 | derick | Note Added: 0004455 | |
| 2017-11-10 14:45 | derick | Status | assigned => feedback |
| 2017-11-11 10:09 | derick | Target Version | => 2.6.0dev |
| 2017-11-12 19:16 | derick | Note Added: 0004456 | |
| 2017-11-12 19:16 | derick | Status | feedback => closed |
| 2017-11-12 19:16 | derick | Resolution | open => fixed |
| 2017-11-12 19:16 | derick | Fixed in Version | => 2.6.0dev |
| 2017-11-13 10:59 | derick | Relationship added | has duplicate 0001490 |
| 2017-12-02 15:57 | derick | Fixed in Version | 2.6.0dev => 2.6.0alpha1 |
| 2017-12-02 18:34 | derick | Target Version | 2.6.0dev => 2.6.0alpha1 |
| 2017-12-02 18:36 | derick | Target Version | 2.6.0alpha1 => 2.6.0 |