﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	appname	phpversion	exts	sapi	probability	blockedby	blocking
40	coverager crashes with SEGV	judas_iscariote	moo	"Well..as you can guess..Im testing the code coverage module now :)

I get a crash while trying to coverage my own blog. atm I don't have reproduce code, I'll try to get a tiny script tomorrow.
the crash is :

{{{
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47916271647968 (LWP 28759)]
0x00002b94605be5a7 in xc_coverager_init_op_array (op_array=0x0) at /home/cristian/xcache-trunk/coverager.c:319
319             if (op_array->type != ZEND_USER_FUNCTION) {
(gdb) bt full
#0  0x00002b94605be5a7 in xc_coverager_init_op_array (op_array=0x0) at /home/cristian/xcache-trunk/coverager.c:319
        size = 0
        cov = (coverager_t) 0x7fff4b7f8680
        i = 32767
#1  0x00002b94605bcc60 in xc_apply_op_array (cr=0x7fff4b7f86a0, applyer=0x2b94605be597 <xc_coverager_init_op_array>)
    at /home/cristian/xcache-trunk/utils.c:115
No locals.
#2  0x00002b94605be689 in xc_coverager_init_compile_result (op_array=0x0) at /home/cristian/xcache-trunk/coverager.c:344
        cr = {alloc = 0, op_array = 0x0, function_table = 0x797a70, class_table = 0x797ac0}
#3  0x00002b94605be6df in xc_compile_file_for_coverage (h=0x7fff4b7f8710, type=2)
    at /home/cristian/xcache-trunk/coverager.c:354
        op_array = (zend_op_array *) 0x0
4  0x00000000005203bd in compile_filename ()
No symbol table info available.
#5  0x00000000005604ae in ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER ()
No symbol table info available.
#6  0x0000000000558acc in execute ()
No symbol table info available.
#7  0x000000000056021a in ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER ()
No symbol table info available.
#8  0x0000000000558acc in execute ()
No symbol table info available.
#9  0x000000000055e70a in ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER ()
No symbol table info available.
#10 0x0000000000558acc in execute ()
No symbol table info available.
#11 0x000000000053a5de in zend_execute_scripts ()
No symbol table info available.
#12 0x00000000004fd31b in php_execute_script ()
No symbol table info available.
#13 0x00000000005bacc1 in main ()
No symbol table info available.

}}}

also there '''seems''' to be a minor logical ""gotcha"" in the code.(unrelated to this)


{{{
--- coverager.c (revisión: 200)
+++ coverager.c (copia de trabajo)
@@ -55,7 +55,7 @@
 #ifdef DEBUG
                fprintf(stderr, ""mkdir %s\n"", fullpath);
 #endif
-#if PHP_MAJOR_VERSION > 5
+#if PHP_MAJOR_VERSION >= 5
                php_stream_mkdir(fullpath, 0700, REPORT_ERRORS, NULL);
 #else
                mkdir(fullpath, 0700);

}}}

"	defect	closed	major	1.0.3	coverager	1.0.1	fixed		soporte@…							
