opcache: symbol not found in flat namespace (_zend_gdb_register_code) when JIT enabled on Mac OS X
还没有人认领这个 Issue。
- 主要语言
- C
- 星标
- 40.4k
- 派生
- 8.2k
- 平均合并
- 2 天 15 小时
- 30 天内合并 PR
- 103
描述
Description
When compiling PHP 8.2 on Mac OS X with the following configuration:
./configure --enable-embed=static --enable-zts --with-iconv=/opt/homebrew/opt/libiconv/ --enable-opcache
I get this error when loading the opcache.so extension:
Failed loading /usr/local/lib/php/extensions/no-debug-zts-20220829/opcache.so: dlopen(/usr/local/lib/php/extensions/no-debug-zts-20220829/opcache.so, 0x0009): symbol not found in flat namespace (_zend_gdb_register_code)
Disabling opcache JIT fixes the issue:
./configure --enable-embed=static --enable-zts --with-iconv=/opt/homebrew/opt/libiconv/ --enable-opcache --disable-opcache-jit
PHP Version
PHP 8.2-dev
Operating System
macOS 12.6
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,在 macOS 12.6 上使用 PHP 8.2-dev configure 命令复现该问题,同时保持 opcache JIT 启用,并将其与 --disable-opcache-jit 配置进行比较。跟踪涉及 _zend_gdb_register_code 的 opcache 扩展加载失败;完成的标准是在所报告的构建配置下启用 JIT 时扩展能够成功加载。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- c, php
- 领域
- build-system, compilers
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100