PHPUnit出现分段错误 [英] PHPUnit gets segmentation fault

查看:84
本文介绍了PHPUnit出现分段错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试开始使用phpunit,但无法正确安装/设置它.当我在命令行上运行它时,我遇到了分段错误.

Trying to get started using phpunit and can't get it installed/setup properly. When I run it command line I get a segmentation fault.

Environment:
OSX 10.6.4
PHP 5.3.2 (cli) (built: Aug  7 2010 00:04:41) 
About pear.phpunit.de/PHPUnit-3.4.9

我尝试在php.ini中禁用xdebug并仍然收到错误-唯一的区别是它没有出现在崩溃报告中.我有一个Macports安装的php,我删除了它.我还删除了phpunit并重新安装了它.详细信息如下:

I tried disabling xdebug in php.ini and still got the error - the only difference was it wasn't appearing in the crash report. I had a macports install of php, I removed that. I also removed phpunit and reinstalled it. Here are the details:

Process:         php [13366]
Path:            /usr/bin/php
Identifier:      php
Version:         ??? (???)
Code Type:       X86-64 (Native)
Parent Process:  bash [12089]

Date/Time:       2010-10-04 09:40:08.035 -0400
OS Version:      Mac OS X 10.6.4 (10F569)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: 0x000000000000000d, 0x0000000000000000
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   inclued.so                      0x0000000100bf3e44 inclued_op_ZEND_ADD_INTERFACE + 308
1   php                             0x000000010033c4bd ZEND_USER_OPCODE_SPEC_HANDLER + 29
2   php                             0x000000010033984d execute + 585
3   xdebug.so                       0x0000000100d05f11 xdebug_execute + 3079
4   php                             0x0000000100347cd6 ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER + 922
5   php                             0x000000010033984d execute + 585
6   xdebug.so                       0x0000000100d05f11 xdebug_execute + 3079
7   php                             0x0000000100347cd6 ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER + 922
8   php                             0x000000010033984d execute + 585
9   xdebug.so                       0x0000000100d05f11 xdebug_execute + 3079
10  php                             0x0000000100347cd6 ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER + 922
11  php                             0x000000010033984d execute + 585
12  xdebug.so                       0x0000000100d05f11 xdebug_execute + 3079
13  php                             0x0000000100347cd6 ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER + 922
14  php                             0x000000010033984d execute + 585
15  xdebug.so                       0x0000000100d05f11 xdebug_execute + 3079
16  php                             0x0000000100318558 zend_execute_scripts + 376
17  php                             0x00000001002caec5 php_execute_script + 732
18  php                             0x0000000100394b9c main + 3646
19  php                             0x0000000100001164 start + 52

非常感谢您的帮助!
谢谢
-道格

Any help is much appreciated!
Thanks
-Doug

推荐答案

找到了罪魁祸首... inclued.so扩展名引起了问题.

Found the culprit... inclued.so extension was causing the problem.

我恢复了原始的osx php.ini,并且一切正常,因此我回到了有问题的php.ini版本,一次删除了一件东西,包括扩展名才是赢家!

I reverted back to the original osx php.ini and things worked, so I went back to the problem version of php.ini, removed one thing at a time and inclued extension was the winner!

PHP和PHPUnit现在表现良好.

PHP and PHPUnit now behaves quite nicely.

这篇关于PHPUnit出现分段错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆