View Issue Details

IDProjectCategoryView StatusLast Update
0000281XdebugInstallationpublic2007-07-14 14:55
Reportersnowcrash Assigned Toderick  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionunable to reproduce 
Summary0000281: xdebug 200rc5-dev "test'sh" FAILures w/ php 524-dev
Description

a few weeks ago i'd built up php 5.2 cvs head on osx 10.4.9.

checking, then, a corresponding co+build of xdebug-cvs (iirc, 2.0.0-rc4) with,

sh test.sh

where,

cat /usr/local/build/xdebug-cvs/test.sh
=====================================================================
+++ TEST_PHP_EXECUTABLE=`which php` php -dxdebug.auto_trace=0 /usr/local/build/xdebug-cvs/run-tests.php tests/*.phpt
=====================================================================

reported decent success,

...

Number of tests : 87 69
Tests skipped : 18 ( 20.7%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 5 ( 5.7%) ( 7.2%)
Tests passed : 64 ( 73.6%) ( 92.8%)

Time taken : 117 seconds

=====================================================================
FAILED TEST SUMMARY

Test with internal callbacks [tests/array_map.phpt]
Test for bug 0000173: Xdebug segfaults using SPL ArrayIterator. [tests/bug00173.phpt]
Test for bug 0000184: problem with control chars in code traces [tests/bug00184.phpt]
Test for bug 0000241: Crash in xdebug_get_function_stack(). [tests/bug00241.phpt]
xdebug_start_trace() without filename [tests/start_trace.phpt]

but, doing same today, with fresh builds of php & xdebug (2.0.0rc5-dev), testing reports,

=====================================================================
CWD : /usr/local/build/xdebug-cvs
PHP : /usr/local/bin/php
PHP_SAPI : cli
PHP_VERSION : 5.2.4-dev
ZEND_VERSION: 2.2.0
PHP_OS : Darwin - Darwin scd 8.9.0 Darwin Kernel Version 8.9.0: Thu Feb 22 20:54:07 PST 2007; root:xnu-792.17.14~1/RELEASE_PPC Power Macintosh
INI actual : /etc/php/php.ini
More .INIs :
Extra dirs :

Running selected tests.
PASS Check for xdebug presence [tests/001.phpt]
FAIL Test with internal callbacks [tests/array_map.phpt]
FAIL Test for assertion callbacks [tests/assert_test.phpt]
FAIL Test with auto-trace [tests/auto_trace.phpt]
PASS Test for crash with a destructor [tests/bug00001.phpt]
PASS Test for traces to file [tests/bug00002.phpt]
FAIL Text for crash bug in tracing to file [tests/bug00003.phpt]
SKIP Test for segmentation fault with xdebug_get_function_stack() and collect_params=1. (ZE1) [tests/bug00022-ze1.phpt] reason: Zend Engine 1 needed
FAIL Test for segmentation fault with xdebug_get_function_stack() and collect_params=1. (ZE20) [tests/bug00022.phpt]
SKIP Test for segmentation fault with unusual variables (ZE1) [tests/bug00032-ze1.phpt] reason: Zend Engine 1 needed
PASS Test for segmentation fault with unusual variables (ZE2.2) [tests/bug00032-ze22.phpt]
SKIP Test for segmentation fault with unusual variables (ZE2) [tests/bug00032.phpt] reason: Zend Engine 2.2 needed
SKIP Test for bug 0000057: Crash with overloading functions (ZE1) [tests/bug00057-ze1.phpt] reason: Zend Engine 1 needed
PASS Test for bug 0000057: Crash with overloading functions (ZE2) [tests/bug00057-ze2.phpt]
PASS Test for bug 0000089: var_dump shows empty strings garbled [tests/bug00089.phpt]
FAIL Test for bug 0000146: Array key names with quotes in traces are not escaped [tests/bug00146.phpt]
SKIP Test for bug 0000168: Memory error with DBGp eval when the result is an array. [tests/bug00168.phpt] reason: Can only be tested through DBGp
FAIL Test for bug 0000173: Xdebug segfaults using SPL ArrayIterator. [tests/bug00173.phpt]
PASS Test for bug 0000176: Segfault using SplTempFileObject [tests/bug00176.phpt]
PASS Test for bug 0000178: $php_errormsg and Track errors unavailable [tests/bug00178.phpt]
FAIL Test for bug 0000184: problem with control chars in code traces [tests/bug00184.phpt]
SKIP Test for bug 0000209: Additional remote debugging session started when triggering shutdown function. [tests/bug00209.phpt] reason: Can only be tested through DBGp
SKIP Test for bug 0000212: coverage coverage inaccurate (ZE1). [tests/bug00212a-ze1.phpt] reason: Zend Engine 1 needed
PASS Test for bug 0000212: coverage coverage inaccurate (ZE2). [tests/bug00212a.phpt]
PASS Test for bug 0000212: coverage coverage inaccurate. [tests/bug00212b.phpt]
PASS Test for bug 0000212: coverage coverage inaccurate. [tests/bug00212c.phpt]
PASS Test for bug 0000213: Dead code analysis doesn't take catches for throws into account. [tests/bug00213.phpt]
FAIL Test for bug 0000241: Crash in xdebug_get_function_stack(). [tests/bug00241.phpt]
FAIL Test for bug 0000265: Xdebug's error handler breaks error_get_last(). [tests/bug00265.phpt]
PASS Test for bug 0000280: var_dump don't display key of array as expected [tests/bug00280.phpt]
FAIL Test for file/line correctness with call_user_func_array() [tests/call_user_func_array.phpt]
FAIL Test call_user_func_array() with multiple files [tests/call_user_func_array2.phpt]
SKIP Test with Code Coverage (ZE1) [tests/coverage-ze1.phpt] reason: Zend Engine 1 needed
PASS Test with Code Coverage (ZE2) [tests/coverage.phpt]
SKIP Test with Code Coverage with unused lines (ZE1) [tests/coverage2-ze1.phpt] reason: Zend Engine 1 needed
PASS Test with Code Coverage with unused lines (ZE2) [tests/coverage2.phpt]
SKIP Test with Code Coverage with unused lines (ZE1) [tests/coverage3-ze1.phpt] reason: Zend Engine 1 needed
PASS Test with Code Coverage with unused lines (ZE2) [tests/coverage3.phpt]
PASS Test to see if exceptions still work with Xdebug's hook enabled. [tests/exception.phpt]
PASS Test for xdebug_get_function_count [tests/function_counter.phpt]
PASS Test with xdebug_get_declared_vars() [tests/get_declared_vars.phpt]
SKIP Test with showing local variables on errors (ZE1) [tests/local_vars_in_error-ze1.phpt] reason: Zend Engine 1 needed
FAIL Test with showing local variables on errors (ZE2) [tests/local_vars_in_error.phpt]
PASS Test for xdebug.collect_params setting [tests/memory_usage.phpt]
PASS Test for xdebug_peak_memory_usage [tests/peak_memory_usage.phpt]
PASS Shutdown function [tests/shutdown.phpt]
PASS Test stack traces (level0, html) [tests/stacktrace_html_0.phpt]
FAIL Test stack traces (level1, html) [tests/stacktrace_html_1.phpt]
FAIL Test stack traces (level2, html) [tests/stacktrace_html_2.phpt]
FAIL Test stack traces (level3, html) [tests/stacktrace_html_3.phpt]
FAIL Test stack traces (level4, html) [tests/stacktrace_html_4.phpt]
FAIL Test stack traces (level4, html) [tests/stacktrace_html_4_novar.phpt]
PASS Test stack traces (level0, text) [tests/stacktrace_text_0.phpt]
FAIL Test stack traces (level1, text) [tests/stacktrace_text_1.phpt]
FAIL Test stack traces (level2, text) [tests/stacktrace_text_2.phpt]
FAIL Test stack traces (level3, text) [tests/stacktrace_text_3.phpt]
FAIL Test stack traces (level4, text) [tests/stacktrace_text_4.phpt]
FAIL Test stack traces (level4, text) [tests/stacktrace_text_4_novar.phpt]
PASS xdebug_start_trace() without filename [tests/start_trace.phpt]
FAIL Test with include file [tests/test1.phpt]
SKIP Test for nested indirect function call [tests/test10.phpt] reason: Zend Engine 1 needed
FAIL Test for nested indirect function call [tests/test10b.phpt]
FAIL Test for indirect function call [tests/test11.phpt]
FAIL Test for complex parameters to functions [tests/test12.phpt]
FAIL Test for variable function calls [tests/test13.phpt]
SKIP Test for circular references (ZE1) [tests/test14.phpt] reason: Zend Engine 1 needed
FAIL Test for circular references (ZE2) [tests/test14b.phpt]
FAIL Test for variable member functions [tests/test15.phpt]
SKIP Test for overloaded member functions / classes (ZE1) [tests/test16.phpt] reason: Zend Engine 1 needed
FAIL Test for overloaded member functions / classes (ZE2) [tests/test16b.phpt]
FAIL Test for internal parameters [tests/test17.phpt]
FAIL Test with eval() [tests/test18.phpt]
PASS Test for lots of calls to internal functions [tests/test19.phpt]
SKIP Test for static method calls [tests/test20.phpt] reason: Zend Engine 1 needed
FAIL Test for static method calls [tests/test20b.phpt]
PASS Test for xdebug_is_enabled, xdebug_disable and xdebug_enable [tests/test3.phpt]
PASS Test for simple backtrace [tests/test4.phpt]
PASS Test for somewhat more complex backtrace [tests/test5.phpt]
SKIP Test for complex parameters to a function (ZE1) [tests/test6-ze1.phpt] reason: Zend Engine 1 needed
FAIL Test for complex parameters to a function (ZE2) [tests/test6.phpt]
SKIP Test for class members [tests/test7.phpt] reason: Zend Engine 1 needed
FAIL Test for class members [tests/test7b.phpt]
FAIL Test for nested function calls [tests/test8.phpt]
SKIP Test for nested static method calls (ZE1) [tests/test9.phpt] reason: Zend Engine 1 needed
FAIL Test for nested static method calls (ZE2) [tests/test9b.phpt]
FAIL Test with fibonacci numbers [tests/trace.phpt]
PASS Test for xdebugcall() [tests/xdebug_call.phpt]
PASS Test for xdebugcall
(1) [tests/xdebug_call_depth.phpt]
PASS Test for xdebugcall*(2) [tests/xdebug_call_depth2.phpt]
PASS Test for correct display with xdebug_var_dump() (ZE2) [tests/xdebug_var_dump.phpt]

Number of tests : 90 72
Tests skipped : 18 ( 20.0%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 39 ( 43.3%) ( 54.2%)
Tests passed : 33 ( 36.7%) ( 45.8%)

Time taken : 262 seconds

=====================================================================
FAILED TEST SUMMARY

Test with internal callbacks [tests/array_map.phpt]
Test for assertion callbacks [tests/assert_test.phpt]
Test with auto-trace [tests/auto_trace.phpt]
Text for crash bug in tracing to file [tests/bug00003.phpt]
Test for segmentation fault with xdebug_get_function_stack() and collect_params=1. (ZE20) [tests/bug00022.phpt]
Test for bug 0000146: Array key names with quotes in traces are not escaped [tests/bug00146.phpt]
Test for bug 0000173: Xdebug segfaults using SPL ArrayIterator. [tests/bug00173.phpt]
Test for bug 0000184: problem with control chars in code traces [tests/bug00184.phpt]
Test for bug 0000241: Crash in xdebug_get_function_stack(). [tests/bug00241.phpt]
Test for bug 0000265: Xdebug's error handler breaks error_get_last(). [tests/bug00265.phpt]
Test for file/line correctness with call_user_func_array() [tests/call_user_func_array.phpt]
Test call_user_func_array() with multiple files [tests/call_user_func_array2.phpt]
Test with showing local variables on errors (ZE2) [tests/local_vars_in_error.phpt]
Test stack traces (level1, html) [tests/stacktrace_html_1.phpt]
Test stack traces (level2, html) [tests/stacktrace_html_2.phpt]
Test stack traces (level3, html) [tests/stacktrace_html_3.phpt]
Test stack traces (level4, html) [tests/stacktrace_html_4.phpt]
Test stack traces (level4, html) [tests/stacktrace_html_4_novar.phpt]
Test stack traces (level1, text) [tests/stacktrace_text_1.phpt]
Test stack traces (level2, text) [tests/stacktrace_text_2.phpt]
Test stack traces (level3, text) [tests/stacktrace_text_3.phpt]
Test stack traces (level4, text) [tests/stacktrace_text_4.phpt]
Test stack traces (level4, text) [tests/stacktrace_text_4_novar.phpt]
Test with include file [tests/test1.phpt]
Test for nested indirect function call [tests/test10b.phpt]
Test for indirect function call [tests/test11.phpt]
Test for complex parameters to functions [tests/test12.phpt]
Test for variable function calls [tests/test13.phpt]
Test for circular references (ZE2) [tests/test14b.phpt]
Test for variable member functions [tests/test15.phpt]
Test for overloaded member functions / classes (ZE2) [tests/test16b.phpt]
Test for internal parameters [tests/test17.phpt]
Test with eval() [tests/test18.phpt]
Test for static method calls [tests/test20b.phpt]
Test for complex parameters to a function (ZE2) [tests/test6.phpt]
Test for class members [tests/test7b.phpt]
Test for nested function calls [tests/test8.phpt]
Test for nested static method calls (ZE2) [tests/test9b.phpt]
Test with fibonacci numbers [tests/trace.phpt]

happy to provide any add'l info.

cheers.

TagsNo tags attached.
Operating SystemDarwin scd 8.9.0 Darwin Kernel Version 8.9.0: Thu Feb 22 20:54:07 PST 2007; root:xnu-792.17.14~1/RELEASE_PPC Power Macintosh powerpc
PHP Version5.2-dev

Activities

derick

2007-06-18 20:24

administrator   ~0000660

Could you please check for clues in the tests/.diff and tests/.out files?

snowcrash

2007-06-19 05:43

reporter   ~0000663

Last edited: 2007-06-19 06:03

updating php & xdebug src/build as of 18 Jun 07, test results are (similar FAIL counts, again):

...

Number of tests : 90 72
Tests skipped : 18 ( 20.0%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 38 ( 42.2%) ( 52.8%)
Tests passed : 34 ( 37.8%) ( 47.2%)

Time taken : 149 seconds

=====================================================================
FAILED TEST SUMMARY

Test with internal callbacks [tests/array_map.phpt]
Test for assertion callbacks [tests/assert_test.phpt]
Test with auto-trace [tests/auto_trace.phpt]
Text for crash bug in tracing to file [tests/bug00003.phpt]
Test for segmentation fault with xdebug_get_function_stack() and collect_params=1. (ZE20) [tests/bug00022.phpt]
Test for bug 0000146: Array key names with quotes in traces are not escaped [tests/bug00146.phpt]
Test for bug 0000173: Xdebug segfaults using SPL ArrayIterator. [tests/bug00173.phpt]
Test for bug 0000184: problem with control chars in code traces [tests/bug00184.phpt]
Test for bug 0000241: Crash in xdebug_get_function_stack(). [tests/bug00241.phpt]
Test for file/line correctness with call_user_func_array() [tests/call_user_func_array.phpt]
Test call_user_func_array() with multiple files [tests/call_user_func_array2.phpt]
Test with showing local variables on errors (ZE2) [tests/local_vars_in_error.phpt]
Test stack traces (level1, html) [tests/stacktrace_html_1.phpt]
Test stack traces (level2, html) [tests/stacktrace_html_2.phpt]
Test stack traces (level3, html) [tests/stacktrace_html_3.phpt]
Test stack traces (level4, html) [tests/stacktrace_html_4.phpt]
Test stack traces (level4, html) [tests/stacktrace_html_4_novar.phpt]
Test stack traces (level1, text) [tests/stacktrace_text_1.phpt]
Test stack traces (level2, text) [tests/stacktrace_text_2.phpt]
Test stack traces (level3, text) [tests/stacktrace_text_3.phpt]
Test stack traces (level4, text) [tests/stacktrace_text_4.phpt]
Test stack traces (level4, text) [tests/stacktrace_text_4_novar.phpt]
Test with include file [tests/test1.phpt]
Test for nested indirect function call [tests/test10b.phpt]
Test for indirect function call [tests/test11.phpt]
Test for complex parameters to functions [tests/test12.phpt]
Test for variable function calls [tests/test13.phpt]
Test for circular references (ZE2) [tests/test14b.phpt]
Test for variable member functions [tests/test15.phpt]
Test for overloaded member functions / classes (ZE2) [tests/test16b.phpt]
Test for internal parameters [tests/test17.phpt]
Test with eval() [tests/test18.phpt]
Test for static method calls [tests/test20b.phpt]
Test for complex parameters to a function (ZE2) [tests/test6.phpt]
Test for class members [tests/test7b.phpt]
Test for nested function calls [tests/test8.phpt]
Test for nested static method calls (ZE2) [tests/test9b.phpt]
Test with fibonacci numbers [tests/trace.phpt]

To start, sharing the .diff/.out for just the first two FAILs ... in hopes that something may become obvious,

% cat array_map.diff array_map.out
003+ 0.0041 66352 -> array_map() /usr/local/build/xdebug-cvs/tests/array_map.php:5
004+ 0.0044 66976 -> gettype() /usr/local/build/xdebug-cvs/tests/array_map.php:7
005+ 0.0056 67016 -> file_get_contents() /usr/local/build/xdebug-cvs/tests/array_map.php:9
003- %w%f %w%d -> array_map('strlen', array (0 => 'a', 1 => 'bb', 2 => 'ccc')) /%s/array_map.php:5
004- %w%f %w%d -> strlen('a') /%s/array_map.php:0
005- %w%f %w%d -> strlen('bb') /%s/array_map.php:0
006- %w%f %w%d -> strlen('ccc') /%s/array_map.php:0
007- %w%f %w%d -> gettype(array (0 => 1, 1 => 2, 2 => 3)) /%s/array_map.php:7
008- %w%f %w%d -> file_get_contents('/tmp/%s') /%s/array_map.php:9array
TRACE START [2007-06-19 04:30:00]
0.0041 66352 -> array_map() /usr/local/build/xdebug-cvs/tests/array_map.php:5
0.0044 66976 -> gettype() /usr/local/build/xdebug-cvs/tests/array_map.php:7
0.0056 67016 -> file_get_contents() /usr/local/build/xdebug-cvs/tests/array_map.php:9

% cat assert_test.diff assert_test.out
006+ 0.0050 69776 -> assert_options() /usr/local/build/xdebug-cvs/tests/assert_test.php:5
007+ 0.0053 69776 -> assert_options() /usr/local/build/xdebug-cvs/tests/assert_test.php:6
008+ 0.0054 69776 -> assert_options() /usr/local/build/xdebug-cvs/tests/assert_test.php:7
009+ 0.0054 69776 -> assert_options() /usr/local/build/xdebug-cvs/tests/assert_test.php:18
010+ 0.0055 69776 -> assert() /usr/local/build/xdebug-cvs/tests/assert_test.php:21
011+ 0.0056 69976 -> my_assert_handler() /usr/local/build/xdebug-cvs/tests/assert_test.php:0
012+ 0.0069 70448 -> file_get_contents() /usr/local/build/xdebug-cvs/tests/assert_test.php:23
006- %w%f %w%d -> assert_options(1, 1) /%s/assert_test.php:5
007- %w%f %w%d -> assert_options(4, 0) /%s/assert_test.php:6
008- %w%f %w%d -> assert_options(5, 1) /%s/assert_test.php:7
009- %w%f %w%d -> assert_options(2, 'my_assert_handler') /%s/assert_test.php:18
010- %w%f %w%d -> assert(FALSE) /%s/assert_test.php:21
011- %w%f %w%d -> my_assert_handler('/%s/assert_test.php', 21, '') /%s/assert_test.php:0
012- %w%f %w%d -> file_get_contents('/tmp/%s') /%s/assert_test.php:23Assertion Failed:
File '/usr/local/build/xdebug-cvs/tests/assert_test.php'
Line '21'
Code ''
TRACE START [2007-06-19 04:30:02]
0.0050 69776 -> assert_options() /usr/local/build/xdebug-cvs/tests/assert_test.php:5
0.0053 69776 -> assert_options() /usr/local/build/xdebug-cvs/tests/assert_test.php:6
0.0054 69776 -> assert_options() /usr/local/build/xdebug-cvs/tests/assert_test.php:7
0.0054 69776 -> assert_options() /usr/local/build/xdebug-cvs/tests/assert_test.php:18
0.0055 69776 -> assert() /usr/local/build/xdebug-cvs/tests/assert_test.php:21
0.0056 69976 -> my_assert_handler() /usr/local/build/xdebug-cvs/tests/assert_test.php:0
0.0069 70448 -> file_get_contents() /usr/local/build/xdebug-cvs/tests/assert_test.php:23

Gibberish to me, at first glance :-/ Perhaps something strikes /you/?

edited on: 2007-06-19 07:03

derick

2007-06-19 21:02

administrator   ~0000664

It looks like you have some config parameter set that the tests don't disable. Could I see your phpinfo() section for Xdebug?

snowcrash

2007-06-20 00:25

reporter   ~0000666

here you go ...

;[XDebugDebugger]
zend_extension_ts="/usr/local/lib/php/extensions/no-debug-zts-20060613/xdebug.so"
xdebug.auto_trace = Off
xdebug.collect_includes = On
xdebug.collect_params = Off
xdebug.collect_return = Off
xdebug.default_enable = On
xdebug.dump.COOKIE = ""
xdebug.dump.ENV = ""
xdebug.dump.FILES = ""
xdebug.dump.GET = ""
xdebug.dump.POST = ""
xdebug.dump.REQUEST = ""
xdebug.dump.SERVER = ""
xdebug.dump.SESSION = ""
xdebug.dump_once = On
xdebug.dump_undefined = Off
xdebug.extended_info = 1
xdebug.manual_url = "http://www.php.net"
xdebug.max_nesting_level = 100
xdebug.profiler_append = 0
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "/tmp"
xdebug.profiler_output_name = "crc32"
xdebug.remote_autostart = Off
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.remote_mode = "req"
xdebug.remote_port = 9000
xdebug.show_local_vars = 0
xdebug.show_mem_delta = 0
xdebug.trace_format = 0
xdebug.trace_output_dir = "/tmp"
xdebug.trace_options = 0
xdebug.trace_output_name = crc32

fwiw, this is the same set of setting which used to ( a while back ...) work with 'make test' results of just a couple of errors.

now that you mention it ... i seem to remember an issue about 'crc32' (checking ...)

derick

2007-07-09 08:16

administrator   ~0000687

For some reason on yoru system the PHP test system does not send the settings made in the test cases to the PHP binary - I have no idea why that would be. Do you perhaps use the cgi/fastcgi SAPI? (Show me the php -v output please)

Issue History

Date Modified Username Field Change
2007-06-06 19:14 snowcrash New Issue
2007-06-18 20:24 derick Note Added: 0000660
2007-06-18 20:24 derick Status new => feedback
2007-06-19 05:43 snowcrash Note Added: 0000663
2007-06-19 06:03 snowcrash Note Edited: 0000663
2007-06-19 21:02 derick Note Added: 0000664
2007-06-20 00:25 snowcrash Note Added: 0000666
2007-07-09 08:16 derick Note Added: 0000687
2007-07-14 14:55 derick Status feedback => resolved
2007-07-14 14:55 derick Resolution open => unable to reproduce
2007-07-14 14:55 derick Assigned To => derick