View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001220 | Xdebug | Uncategorized | public | 2015-11-30 21:09 | 2016-01-25 21:59 |
Reporter | akrabat | Assigned To | derick | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | PHP 7.0.0 RC8 | OS | OS X | OS Version | 10.11.1 |
Fixed in Version | 2.4.0rc4 | ||||
Summary | 0001220: Segmentation fault if var_dump() output is too large | ||||
Description | If you generate a very large var_dump() output, say by var_dump($this->getEventManager()); in the ZF2 Skeleton Application's IndexController::indexAction(), then xdebug will segfault. | ||||
Additional Information | GDB output when debugging with Derick: https://gist.github.com/akrabat/d470a3e8b646c20f78d5 This indicated that the xdebug_str struct in xdebug_str.h needed to be changed to: typedef struct xdebug_str { from typedef struct xdebug_str { | ||||
Tags | No tags attached. | ||||
Operating System | OS X 10.11.1 | ||||
PHP Version | 7.0.0rc7 | ||||
|
The way I found this: $ composer create-project -n -sdev zendframework/skeleton-application skelly Edit module/Application/src/Application/Controller/IndexController.php Update indexAction so that it looks like this:
$ php -S 0.0.0.0:8888 -t public public/index.php in a separate console: $ curl -s http://localhost:8888/ > output.txt |
|
Can't promise it really works, but you might just get the process killed by OOM if you're doing it wrong™. |
Date Modified | Username | Field | Change |
---|---|---|---|
2015-11-30 21:09 | akrabat | New Issue | |
2015-12-02 12:23 | akrabat | Note Added: 0003277 | |
2015-12-15 21:37 | derick | Note Added: 0003350 | |
2015-12-15 21:37 | derick | Status | new => closed |
2015-12-15 21:37 | derick | Assigned To | => derick |
2015-12-15 21:37 | derick | Resolution | open => fixed |
2015-12-15 21:37 | derick | Fixed in Version | => 2.4.0 |
2016-01-25 21:59 | derick | Fixed in Version | 2.4.0 => 2.4.0rc4 |
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 |