[php-src] PR #15819: Fix GH-15657: Segmentation fault in ext/opcache/jit/ir/dynasm/dasm_x86.h

From: Date: Mon, 09 Sep 2024 21:23:12 +0000
Subject: [php-src] PR #15819: Fix GH-15657: Segmentation fault in ext/opcache/jit/ir/dynasm/dasm_x86.h
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-28514@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/15819 Author: nielsdos The crash happens because the zend_persist.c code tries to JIT the hook's op_array while the JIT buffer memory is still protected. This happens in zend_persist_property_info called via zend_persist_class_entry through the inheritance cache. We shouldn't JIT the property hook code when persisting property info for the inheritance cache. This is a simple workaround by temporarily disabling the JIT so that the property hook code is not JITted when persisting the property info. An alternative solution would be to move the JITting of the property hooks to a different place in zend_persist.c by doing an additional pass over the classes.

« previous php.git-pulls (#28514) next »