PHP :: Bug #67314 :: Segmentation fault in gc_remove_zval_from_buffer
| Bug #67314 | Segmentation fault in gc_remove_zval_from_buffer | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2014-05-20 21:22 UTC | Modified: | 2014-06-24 06:14 UTC |
|
||||||||||
| From: | webm4st0r at gmail dot com | Assigned: | dmitry (profile) | |||||||||||
| Status: | Closed | Package: | Reproducible crash | |||||||||||
| PHP Version: | 5.5.12 | OS: | CentOS confirmed | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2014-05-20 21:22 UTC] webm4st0r at gmail dot com
Description: ------------ I have encountered a reproducible crash on PHP 5.5.0 and greater. This is simple to work around as it just requires that you declare variables properly, but I suspect the engine should not segfault :). This seems to require that a custom error handler be registered. I reported a similar bug a while back that this reminds me of, but may not be related: https://bugs.php.net/bug.php?id=66127 3v4l output: http://3v4l.org/lespU Test script: --------------- <?php function crash() { $notDefined[$i] = 'test'; } function error_handler() { return false; } set_error_handler('error_handler'); crash(); echo "made it once\n"; crash(); echo "ok\n"; Expected result: ---------------- Notice: Undefined variable: i in /in/lespU on line 4 made it once Notice: Undefined variable: i in /in/lespU on line 4 ok Actual result: -------------- Notice: Undefined variable: i in /in/lespU on line 4 made it once Notice: Undefined variable: i in /in/lespU on line 4 Process exited with code 139.
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2014-06-05 11:13 UTC] arjen at react dot com
[2014-06-24 06:14 UTC] dmitry@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: dmitry
[2015-04-08 18:27 UTC] dmitry@php.net
-Status: Assigned +Status: Closed
[2015-06-02 12:01 UTC] kozzi11 at gmail dot com