APC-3.0.10 issue

From: Date: Tue, 23 May 2006 00:20:13 +0000
Subject: APC-3.0.10 issue
Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-3793@lists.php.net to get a copy of this message
Hi: I am having some problems getting APC-3.0.10 running on our platform, which is Solaris 5.[89] based. Due to uncontrollable issues we can not run apache and must run our own proprietary web server. We are running php as a daemon via the sapi/cgi interface. We have been running APC-3.0.8 since it came out and 3.0.7 before that. I attempted to upgrade to 3.0.10 a few months ago and ran into some issues. I finally got a few spare minutes to sit down and look at this matter with a bit more care. I managed to get php-4.3.11-fastcgi/sapi/cgi/php running with APC module. It starts up as expected creates my shm segment. On first page hit, it appears to compile and cache my opcode as expected. On second page hit Program received signal SIGSEGV I started php up under gdb to see if i could get some better answers. Can anyone offer me any input on this issue. I would be glad to help in any way I can. -James (gdb) run -b 127.0.0.1:9996 -c phpd.apc.dev.ini Starting program: php -b 127.0.0.1:9996 -c phpd.apc.dev.ini [New LWP 1] [New LWP 2] [New LWP 3] [New LWP 4] [New LWP 5] ### Begin first page hit -- some debugging printf that i added ### 20060522 19:40:18 pid=14237 level=apc-debug APC key=0 20060522 19:40:30 pid=14237 level=apc-debug action=APC_OCSTORED path=/html/index.cgi file=/html/index.cgi 20060522 19:40:30 pid=14237 level=apc-debug action=APC_OCSTORED path=/html/lib/core/comlib.php file=lib/core/comlib.php 20060522 19:40:30 pid=14237 level=apc-debug action=APC_OCSTORED path=/html/lib/core/crelib.php file=/html/lib/core/crelib.php 20060522 19:40:30 pid=14237 level=apc-debug action=APC_OCSTORED path=/html/lib/core/cflib.php file=/html/lib/core/cflib.php 20060522 19:40:30 pid=14237 level=apc-debug action=APC_OCSTORED path=/html/lib/local/dislib.php file=/html/lib/local/dislib.php 20060522 19:40:31 pid=14237 level=apc-debug action=APC_OCSTORED path=/html/lib/core/mnBase.php file=/html/lib/core/mnuBase.php 20060522 19:40:31 pid=14237 level=apc-debug action=APC_OCSTORED path=/html/lib/core/pfslib.php file=/html/lib/core/pfslib.php 20060522 19:40:31 pid=14237 level=apc-debug action=APC_OCSTORED path=/html/lib/core/pelib.php file=/html/lib/core/pelib.php 20060522 19:40:29 pid=14237 file=/html/index.cgi clock=1791,470,320 ### End first hit #Second hit to same page Program received signal SIGSEGV, Segmentation fault. 0x001c7b80 in execute (op_array=0x7feb08) at php-4.3.11-fastcgi/Zend/zend_execute.c:2034
2034                                            EX(Ts)[EX(opline)->result.u.var].tmp_var = EX(opline)->op1.u.constant;
(gdb) bt #0 0x001c7b80 in execute (op_array=0x7feb08) at php-4.3.11-fastcgi/Zend/zend_execute.c:2034 #1 0x001c8bfc in execute (op_array=0x9fde58) at php-4.3.11-fastcgi/Zend/zend_execute.c:2224 #2 0x001c8bfc in execute (op_array=0x7e1818) at php-4.3.11-fastcgi/Zend/zend_execute.c:2224 #3 0x001c8bfc in execute (op_array=0x998a88) at php-4.3.11-fastcgi/Zend/zend_execute.c:2224 #4 0x001b0784 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at php-4.3.11-fastcgi/Zend/zend.c:926 #5 0x001850cc in php_execute_script (primary_file=0xffbef8a8) at php-4.3.11-fastcgi/main/main.c:1745 #6 0x001d18c0 in main (argc=5, argv=0xffbef934) at php-4.3.11-fastcgi/sapi/cgi/cgi_main.c:1698 (gdb) f 0 #0 0x001c7b80 in execute (op_array=0x7feb08) at php-4.3.11-fastcgi/Zend/zend_execute.c:2034
2034                                            EX(Ts)[EX(opline)->result.u.var].tmp_var = EX(opline)->op1.u.constant;
(gdb) list
2029                            case ZEND_FETCH_CONSTANT:
2030                                    if (!zend_get_constant(EX(opline)->op1.u.constant.value.str.val, EX(opline)->op1.u.constant.value.str.len, &EX(Ts)[EX(opline)->result.u.var].tmp_var TSRMLS_CC)) {
2031                                            zend_error(E_NOTICE, "Use of undefined constant %s - assumed '%s'",
2032                                                                    EX(opline)->op1.u.constant.value.str.val,
2033                                                                    EX(opline)->op1.u.constant.value.str.val);
2034                                            EX(Ts)[EX(opline)->result.u.var].tmp_var = EX(opline)->op1.u.constant;
2035                                            zval_copy_ctor(&EX(Ts)[EX(opline)->result.u.var].tmp_var);
2036                                    }
2037                                    NEXT_OPCODE();
2038                            case ZEND_INIT_ARRAY:
(gdb)

« previous php.pecl.dev (#3793) next »