Bug #71413 [Opn->Fbk]: Crash with constants on internal interfaces

From: Date: Wed, 20 Jan 2016 16:47:34 +0000
Subject: Bug #71413 [Opn->Fbk]: Crash with constants on internal interfaces
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-198803@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:         bwoebi@php.net
 Reported by:        mike@php.net
 Summary:            Crash with constants on internal interfaces
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            Scripting Engine problem
 PHP Version:        master-Git-2016-01-19 (Git)
-Assigned To:        
+Assigned To:        bwoebi
 Block user comment: N
 Private report:     N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[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


Thread (4 messages)

« previous php.bugs (#198803) next »