magento php7,magento2 – PHP7中的分段错误

我们遇到过

PHP 7.0这个奇怪的问题.我们在PHP 7.0上运行Magento2的索引器,并且在不同的环境中有不同的结果.

如果我们使用CentOS,并从

Remi’s Repo或

Webtatic Repo获得PHP 7.0,我们会得到如下的分段错误:

Program received signal SIGSEGV, Segmentation fault.

zend_mm_alloc_small (size=, bin_num=, heap=) at /usr/src/debug/php-7.0.1RC1/Zend/zend_alloc.c:1291

1291 heap->free_slot[bin_num] = p->next_free_slot;

Missing separate debuginfos, use: debuginfo-install openssl-libs-1.0.1e-51.el7_2.1.x86_64

(gdb) backtrace

#0 zend_mm_alloc_small (size=, bin_num=, heap=) at /usr/src/debug/php-7.0.1RC1/Zend/zend_alloc.c:1291

#1 zend_mm_alloc_heap (size=, heap=) at /usr/src/debug/php-7.0.1RC1/Zend/zend_alloc.c:1358

#2 _emalloc (size=3, size@entry=32) at /usr/src/debug/php-7.0.1RC1/Zend/zend_alloc.c:2442

#3 0x0000555555666840 in zend_string_alloc (persistent=0, len=4) at /usr/src/debug/php-7.0.1RC1/Zend/zend_string.h:121

#4 php_pcre_replace_impl (pce=pce@entry=0x555555e76e40, subject_str=subject_str@entry=0x7fffd72fec68, subject=subject@entry=0x7fffd72fec80 "TypeId", subject_len=subject_len@entry=6, replace_val=replace_val@entry=0x7fffd2a393b0,

is_callable_replace=is_callable_replace@entry=0, limit=, limit@entry=-1, replace_count=replace_count@entry=0x7fffffff7d5c) at /usr/src/debug/php-7.0.1RC1/ext/pcre/php_pcre.c:1217

但是,如果我们使用已编译的PHP7版本,则没有错误.我们还试过用ppa:ondrej / php-7.0配置了Ubuntu 14.0和PHP 7.0.0的流浪盒,也没有问题.

使用这些特定回购时出现此错误的任何想法?

更新

与7.0.1堆栈跟踪是不同的:

`Program received signal SIGSEGV, Segmentation fault.

0x00007fffded34620 in ?? ()

#0 0x00007fffded34620 in ?? ()

#1 0x00005555557db82b in execute_ex (ex=) at /usr/src/debug/php-7.0.1/Zend/zend_vm_execute.h:414

#2 0x000055555578ddd9 in dtrace_execute_ex (execute_data=) at /usr/src/debug/php-7.0.1/Zend/zend_dtrace.c:83

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值