Bug #71413 [Csd]: Crash with constants on internal interfaces
| From: | mike@php.net | Date: | Thu, 21 Jan 2016 08:16:15 +0000 |
| Subject: | Bug #71413 [Csd]: Crash with constants on internal interfaces | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-198817@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71413&edit=1
ID: 71413
Updated by: mike@php.net
Reported by: mike@php.net
Summary: Crash with constants on internal interfaces
Status: Closed
Type: Bug
Package: Scripting Engine problem
PHP Version: master-Git-2016-01-19 (Git)
Assigned To: bwoebi
Block user comment: N
Private report: N
New Comment:
I can confirm, that the workaround got rid of the crash, and that the actual fix works, too.
Thanks a lot!
Previous Comments:
------------------------------------------------------------------------
[2016-01-21 05:34:12] laruence@php.net
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=62c1c11ad34103729988df9edea343337a900ba9
Log: Fixed bug #71413 (Crash with constants on internal interfaces)
------------------------------------------------------------------------
[2016-01-20 16:47:32] bwoebi@php.net
The issue is probably zend_destroy_call_constant_internal immediately freeing.
Can you please verify whether removing the free() in the function body will fix it (in http://lxr.php.net/xref/PHP_MASTER/Zend/zend_compile.c#100)?
[And probably cause a mem leak instead]
If that's the issue, I'll prepare a proper patch.
------------------------------------------------------------------------
[2016-01-19 19:04:14] mike@php.net
Description:
------------
a75c195000 (class constant visibility patch) seems to cause problems, when extensions register
constants on interfaces; no problems with PHP-7.0
It's a bit tricky to reproduce, but building e.g. https://github.com/m6w6/ext-pq into PHP-master may trigger
the crash; see https://gist.github.com/m6w6/58dd72c02344487d6346#file-valgrind-log
and https://travis-ci.org/m6w6/ext-pq/builds/103342033
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71413&edit=1