Re: Re: APC-3.0.10 issue

From: Date: Tue, 23 May 2006 02:32:58 +0000
Subject: Re: Re: APC-3.0.10 issue
References: 1 2  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-3795@lists.php.net to get a copy of this message
Sara Golemon wrote:
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.
Just to confirm. You do mean the 3.0.10 release and not the latest from CVS right? I only ask because the segfault you showed is inside the handler for the ZEND_FETCH_CONSTANT opcode which was recently added to the optimizer in CVS (just a couple days ago specifically). If you're going from the release tarball then this is a non-issue, just want to be 100% clear.
Yeah, i am running 3.0.10 and not the latest CVS snapshot.
#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
It'll be helpful to see some more symbols in this frame.... Obviously *something* is not initialized properly. Give these gdb commands a try: p execute_data.opline->op1.u.constant
(gdb) p execute_data.opline->op1.u.constant $4 = {value = {lval = -217203284, dval = -1.6245783663907667e+246, str = {
     val = 0xf30dbdac "loaded", len = 6}, ht = 0xf30dbdac, obj = {ce = 0xf30dbdac,
     properties = 0x6}}, type = 3 '\003', is_ref = 1 '\001', refcount = 2}
(gdb) p execute_data.opline->op1 $5 = {op_type = 1, u = {constant = {value = {lval = -217203284,
       dval = -1.6245783663907667e+246, str = {val = 0xf30dbdac "loaded", len = 6},
       ht = 0xf30dbdac, obj = {ce = 0xf30dbdac, properties = 0x6}}, type = 3 '\003',
     is_ref = 1 '\001', refcount = 2}, var = 4077764012, opline_num = 4077764012,
   fetch_type = 4077764012, op_array = 0xf30dbdac, EA = {var = 4077764012, type = 6}}}
p execute_data.opline->result.u.var
(gdb) p execute_data.opline->result.u.var $6 = 1 (gdb) p *execute_data.opline $7 = {opcode = 99 'c', result = {op_type = 2, u = {constant = {value = {lval = 1,
         dval = 2.1219957909652723e-314, str = {
           val = 0x1 <Address 0x1 out of bounds>, len = 0}, ht = 0x1, obj = {
           ce = 0x1, properties = 0x0}}, type = 0 '\0', is_ref = 0 '\0',
       refcount = 0}, var = 1, opline_num = 1, fetch_type = 1, op_array = 0x1, EA = {
       var = 1, type = 0}}}, op1 = {op_type = 1, u = {constant = {value = {
         lval = -217203284, dval = -1.6245783663907667e+246, str = {
           val = 0xf30dbdac "loaded", len = 6}, ht = 0xf30dbdac, obj = {
           ce = 0xf30dbdac, properties = 0x6}}, type = 3 '\003', is_ref = 1 '\001',
       refcount = 2}, var = 4077764012, opline_num = 4077764012,
     fetch_type = 4077764012, op_array = 0xf30dbdac, EA = {var = 4077764012,
       type = 6}}}, op2 = {op_type = 8, u = {constant = {value = {lval = 0, dval = 0,
         str = {val = 0x0, len = 0}, ht = 0x0, obj = {ce = 0x0, properties = 0x0}},
       type = 0 '\0', is_ref = 0 '\0', refcount = 0}, var = 0, opline_num = 0,
     fetch_type = 0, op_array = 0x0, EA = {var = 0, type = 0}}}, extended_value = 0,
lineno = 21} (gdb) p execute_data $8 = {opline = 0xf30cf434, function_state = {function_symbol_table = 0x748790, function = 0x930180, reserved = {0x7b7544, 0x0, 0x0, 0x400}}, fbc = 0x0, ce = 0x0, object = {ptr = 0x0}, Ts = 0xffbe92b8, original_in_execution = 1 '\001', op_array = 0x930180, prev_execute_data = 0xffbee298}
p op_array->T
(gdb) p op_array->T $9 = 340 (gdb) p *op_array $10 = {type = 2 '\002', arg_types = 0x0, function_name = 0x0, refcount = 0xf30cf424, opcodes = 0xf30cf434, last = 586, size = 586, T = 340, brk_cont_array = 0xf30de094, last_brk_cont = 1, current_brk_cont = 4294967295, uses_globals = 0 '\0', static_variables = 0x0, start_op = 0x0, backpatch_count = 0, return_reference = 0 '\0', done_pass_two = 1 '\001', filename = 0xf30cf3e4 "/html/lib/core/cflib.php", reserved = {0x0, 0x0, 0x0, 0x1}}
-Sara
So here is some more gdb info. I tried getting the few things that looked interesting. Let me know if there are any other symbols you want to take a look at. It's easy for me to reproduce :) Thanks much -James

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