doujiao6507 2012-08-23 06:50
浏览 36
已采纳

本地服务器上的Apache分段故障,但不是vps

I have ubuntu 12.04 installed on my laptop and on my vps and both have php 5.4.4 + apache setup. The same php code causes segmentation fault on my local server but runs fine on my vps (checked the logs .. no segmentation fault error yet). I also tried running the project with php's server and it also crashed with a segmentation fault.
And not just this, several times, the code runs (say 1 in 10) but most of the times i get a segfault error. Please help

  • 写回答

1条回答 默认 最新

  • dongmaopan5738 2012-08-30 12:21
    关注

    The Error was arising due to this: https://bugs.php.net/bug.php?id=62358 .. I removed all trait usage and set up an inheritance tree for all the functionality that traits provided(sigh .. i loved using traits though) and everything worked fine . This bug has been fixed in newer versions of php but for some reason the fix hasn't been merged into 5.4.4 yet. And since i chose the lazy way of setting up php using ppa, i am stuck with 5.4.4 till the guy managing the ppa updates it

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?