|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-11-12 07:42 UTC] gopalv82 at yahoo dot com
[2006-11-12 07:48 UTC] olivier at reagi dot com
[2006-11-12 12:03 UTC] olivier at reagi dot com
[2006-11-12 12:42 UTC] olivier at reagi dot com
[2006-11-14 05:50 UTC] olivier at reagi dot com
[2006-11-16 15:26 UTC] gopalv82 at yahoo dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 04:00:01 2025 UTC |
Description: ------------ APC is causing PHP to segfault when executing a php file. Everyting is ok when PHP is just loaded (i.e. "php -v") Reproduce code: --------------- Hi, I'm using PHP with the latest APC (from the CVS). $ php -v PHP 5.2.1-dev (cgi-fcgi) (built: Nov 12 2006 12:50:38) (DEBUG) == > it's ok $ php test.php segmentation fault Content of test.php : <? phpinfo(); ?> (same result with just an echo "hello world"; ) I compiled again with --enable-debug in both PHP and APC to give you more details: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1208743632 (LWP 28872)] 0x083383d9 in _zend_is_inconsistent (ht=0x1, file=0x8477964 "/usr/src/php5.2-200611120930/Zend/zend_hash.c", line=965) at /usr/src/php5.2-200611120930/Zend/zend_hash.c:53 53 if (ht->inconsistent==HT_OK) { (gdb) bt #0 0x083383d9 in _zend_is_inconsistent (ht=0x1, file=0x8477964 "/usr/src/php5.2-200611120930/Zend/zend_hash.c", line=965) at /usr/src/php5.2-200611120930/Zend/zend_hash.c:53 #1 0x0833ae68 in zend_hash_index_find (ht=0x1, h=3085992512, pData=0xbfbb4048) at /usr/src/php5.2-200611120930/Zend/zend_hash.c:965 #2 0x0019236c in my_copy_zval (dst=0xafd12d1c, src=0xb7f08240, allocate=0x198c00 <apc_sma_malloc>, deallocate=0x198dc0 <apc_sma_free>) at /usr/src/pecl/apc/apc_compile.c:291 #3 0x00192748 in my_copy_znode (dst=0xafd12d18, src=Variable "src" is not available. ) at /usr/src/pecl/apc/apc_compile.c:392 #4 0x00192834 in my_copy_zend_op (dst=0xafd12d00, src=0xb7f08224, allocate=0x198c00 <apc_sma_malloc>, deallocate=0x198dc0 <apc_sma_free>) at /usr/src/pecl/apc/apc_compile.c:409 #5 0x00193ee3 in apc_copy_op_array (dst=0xafd12c30, src=0xb7f08054, allocate=0x198c00 <apc_sma_malloc>, deallocate=0x198dc0 <apc_sma_free>) at /usr/src/pecl/apc/apc_compile.c:1252 #6 0x00195b6d in my_compile_file (h=0xbfbb8550, type=8) at /usr/src/pecl/apc/apc_main.c:404 #7 0x0832e50c in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/src/php5.2-200611120930/Zend/zend.c:1090 #8 0x082ddc75 in php_execute_script (primary_file=0xbfbb8550) at /usr/src/php5.2-200611120930/main/main.c:1758 #9 0x083a850b in main (argc=2, argv=0xbfbb8694) at /usr/src/php5.2-200611120930/sapi/cgi/cgi_main.c:1632 Everything is ok when I deactivate apc.so (compiled in module, so when I comment extension=apc.so). Expected result: ---------------- Code should execute. Actual result: -------------- Segfault (SIGSEGV)