Created
December 14, 2012 08:39
-
-
Save wilfrem/4283682 to your computer and use it in GitHub Desktop.
Ubuntu+php+phpunitでSegmentation Faultで落ちる問題
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(非ログインでgist作ってしまった(^^;) | |
原因はハッキリ分からないけど | |
・Ubuntuのapt-getで入れたphp5(php5.3.10)でphpunitを動かす | |
・phpunit -c test.xmlという起動方法(test.xmlにはテストが一杯) | |
という条件でテストを動かしたところ | |
Segfaultで落ちる。 | |
発生箇所はzend_gc.cの368行目(zval_mark_grey関数内) | |
p = Z_ARRVAL_P(pz)->pListHead; | |
このpListHeadが範囲外指してるのが直接の原因らしい | |
原因分かんないけどtestと開発だけ行う環境だったので | |
zend.enable_gc=Offにして解決した。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
多分複合的な要因だと思うんだけど(test.xmlのテスト量を減らすと一時的に治る)