View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001534 | Xdebug | Uncategorized | public | 2018-03-07 20:16 | 2019-10-31 10:44 |
| Reporter | stherrien | Assigned To | |||
| Priority | normal | Severity | block | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 2.6.0 | ||||
| Target Version | 2.8.0dev | Fixed in Version | 2.8.0 | ||
| Summary | 0001534: Segfault when exception thrown in a closure bound to class scope | ||||
| Description | When an exception is thrown in a closure and that closure is bound to another object (bindTo()), the process fails with a segfault instead of the exception being thrown, but only if xdebug.collect_params > 0 | ||||
| Steps To Reproduce | $ php -d xdebug.collect_params=1 segfault.php Disabling xdebug.collect_params=0 throws the exception as expected. $ php -d xdebug.collect_params=0 segfault.php PHP Fatal error: Uncaught Exception: Exception thrown successfully in /home/steve/segfault.php:13 The exception also is successfully thrown if line 6 (->bindTo($this)) is commented out. | ||||
| Additional Information | PHP 7.2.3 (cli) (built: Mar 2 2018 12:41:10) ( NTS ) (remi) Replicated in an clean VM using the default settings and config. | ||||
| Tags | No tags attached. | ||||
| Operating System | CentOS Linux 7.4 | ||||
| PHP Version | 7.2.0-7.2.4 | ||||
|
|
This is very likely the same issue as 0001535, just a different symptom. |
|
|
This is the same cause than 0001665 see pull request https://github.com/xdebug/xdebug/pull/473 |
|
|
This has been fixed for Xdebug 2.8-dev (likely to become 2.8.0RC1). |