Skip to content

Instantly share code, notes, and snippets.

@wilfrem
Created December 14, 2012 08:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wilfrem/4283682 to your computer and use it in GitHub Desktop.
Save wilfrem/4283682 to your computer and use it in GitHub Desktop.
Ubuntu+php+phpunitでSegmentation Faultで落ちる問題
(非ログインで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にして解決した。
@wilfrem
Copy link
Author

wilfrem commented Dec 14, 2012

多分複合的な要因だと思うんだけど(test.xmlのテスト量を減らすと一時的に治る)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment