Custom Query (299 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (22 - 24 of 299)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Ticket Resolution Summary Owner Reporter
#256 fixed xcache crashes during module shutdown when used together with ionCube Loader moo nijel
Description

When xcache is loaded a s a PHP extension:

extension=xcache.so

Any attempt to execute an ionCube-encoded file crashes PHP w/backtrace like this:

#0 zm_shutdown_xcache (type=<value optimized out>, module_number=53) at /build/buildd/php5-xcache-1.3.1/xcache.c:2968
#1 0x000000000069c2df in module_destructor (module=0xf0d3a0) at /build/buildd/php5-5.3.3/Zend/zend_API.c:2098
#2 0x00000000006a30e1 in zend_hash_apply_deleter (ht=0xdc0760, p=0xf0d340) at /build/buildd/php5-5.3.3/Zend/zend_hash.c:813
#3 0x00000000006a3368 in zend_hash_graceful_reverse_destroy (ht=0xdc0760) at /build/buildd/php5-5.3.3/Zend/zend_hash.c:848
#4 0x0000000000697045 in zend_shutdown () at /build/buildd/php5-5.3.3/Zend/zend.c:831
#5 0x00000000006427ed in php_module_shutdown () at /build/buildd/php5-5.3.3/main/main.c:2166
#6 0x000000000072625f in main (argc=-1969359736, argv=0x0) at /build/buildd/php5-5.3.3/sapi/cli/php_cli.c:1391

This happens because xCache does not validate the result of

zend_extension *ext = zend_get_extension(XCACHE_NAME);

called in zm_shutdown_xcache (PHP_MSHUTDOWN_FUNCTION(xcache))

I don't know what ionCube Loader does but zend_get_extension(XCACHE_NAME) returns NULL in this case.

When xcache tries to dereference a NULL pointer in

if (ext->shutdown) {

we get a crash.

#274 duplicate xcache crash phar files moo grek
Description

when i install xcache phar files stop work !!!

info here https://bugs.php.net/bug.php?id=61496

#214 fixed xcache compile error moo binbash@…
Description
cc -I. -I/opt/src/xcache-trunk -DPHP_ATOM_INC -I/opt/src/xcache-trunk/include -I/opt/src/xcache-trunk/main -I/opt/src/xcache-trunk -I/opt/www/php_5.3.0RC1/include/php -I/opt/www/php_5.3.0RC1/include/php/main -I/opt/www/php_5.3.0RC1/include/php/TSRM -I/opt/www/php_5.3.0RC1/include/php/Zend -I/opt/www/php_5.3.0RC1/include/php/ext -I/opt/www/php_5.3.0RC1/include/php/ext/date/lib  -I/opt/www/php_5.3.0RC1/include/php -DHAVE_CONFIG_H  -g -O2  -E /opt/src/xcache-trunk/includes.c -o ./includes.i
./structinfo.m4 is optional if XCache test is not enabled, feel free if it awk failed to produce it
LANG=C /bin/gawk -f /opt/src/xcache-trunk/mkstructinfo.awk < ./includes.i > ./structinfo.m4.tmp && mv -f ./structinfo.m4.tmp ./structinfo.m4
/usr/bin/m4 -B 102400 -D srcdir="/opt/src/xcache-trunk" -D builddir="."  /opt/src/xcache-trunk/processor/main.m4 > ./processor.out.tmp
AUTOCHECK INFO: runtime autocheck Disabled (optimized build)
AUTOCHECK INFO: zend_compiled_variable: processor looks good
AUTOCHECK INFO: zend_try_catch_element: processor looks good
AUTOCHECK INFO: zend_brk_cont_element: processor looks good
AUTOCHECK INFO: HashTable: processor looks good
AUTOCHECK INFO: zval: processor looks good
AUTOCHECK INFO: zend_arg_info: processor looks good
AUTOCHECK INFO: zend_constant: processor looks good
AUTOCHECK INFO: zend_property_info: processor looks good
AUTOCHECK INFO: zend_class_entry: processor looks good
AUTOCHECK INFO: znode: processor looks good
AUTOCHECK INFO: zend_op: processor looks good
AUTOCHECK ERROR: ==== calc zend_op_array =================
AUTOCHECK expected: type,function_name,scope,fn_flags,prototype,num_args,required_num_args,arg_info,pass_rest_by_reference,return_reference,done_pass_two,refcount,opcodes,last,size,vars,last_var,size_var,T,brk_cont_array,last_brk_cont,current_brk_cont,try_catch_array,last_try_catch,static_variables,start_op,backpatch_count,this_var,filename,line_start,line_end,doc_comment,doc_comment_len,early_binding,reserved
AUTOCHECK missing : this_var
AUTOCHECK INFO: xc_constinfo_t: processor looks good
AUTOCHECK INFO: xc_funcinfo_t: processor looks good
AUTOCHECK INFO: xc_classinfo_t: processor looks good
AUTOCHECK INFO: xc_autoglobal_t: processor looks good
AUTOCHECK INFO: xc_compilererror_t: processor looks good
AUTOCHECK INFO: xc_entry_data_php_t: processor looks good
AUTOCHECK INFO: xc_entry_data_var_t: processor looks good
AUTOCHECK INFO: xc_entry_t: processor looks good
AUTOCHECK ERROR: ==== store zend_op_array =================
AUTOCHECK ERROR: ==== dprint zend_op_array =================
AUTOCHECK ERROR: ==== dasm zend_op_array =================
AUTOCHECK ERROR: ==== asm zend_op_array =================
make: *** [processor.out] Error 1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Note: See TracQuery for help on using queries.