Bug #77510 [Opn->Nab]: zend_hash_str_find_ptr causes segfault
| From: | cmb@php.net | Date: | Thu, 24 Jan 2019 11:26:46 +0000 |
| Subject: | Bug #77510 [Opn->Nab]: zend_hash_str_find_ptr causes segfault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-219165@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77510&edit=1
ID: 77510
Updated by: cmb@php.net
Reported by: whdcksz at gmail dot com
Summary: zend_hash_str_find_ptr causes segfault
-Status: Open
+Status: Not a bug
Type: Bug
Package: Unknown/Other Function
Operating System: Ubuntu 18.04
PHP Version: 7.2.14
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
See <http://www.phpinternalsbook.com/php7/memory_management/zend_memory_manager.html#the-two-main-kind-of-dynamic-memory-pools-in-php>.
Previous Comments:
------------------------------------------------------------------------
[2019-01-23 20:48:25] whdcksz at gmail dot com
Description:
------------
Hi everyone, I'm a noob developer and developing a extension and I am experiencing very strange
problem that I don't understand.
Everytime I call zend_hash_str_find_ptr to a HashTable which is initialized in PHP_GINIT_FUNCTION,
it crashes with segfault. If I move initialization of HashTable into PHP_RINIT_FUNCTION, it worked.
Also, if I use malloc instead of ALLOC_HASHTABLE, it worked, too. And also, if I set
USE_ZEND_ALLOC=0, it worked, too.
It looks like a bug related GC but I can't pretty sure.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77510&edit=1