View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000022 | Xdebug | Uncategorized | public | 2003-10-15 17:20 | 2003-12-01 16:28 |
Reporter | sklar | Assigned To | |||
Priority | normal | Severity | crash | Reproducibility | always |
Status | closed | Resolution | open | ||
Summary | 0000022: xdebug_get_function_stack() segfaults with collect_params on unless tracing is on | ||||
Description | With collect_params on, this script segfaults: function foo($s) { foo('bar'); Backtrace: If I turn tracing on by calling xdebug_start_trace() at the top of the script, then var_dump() correctly shows the stack trace including params. If I turn off collect_params, then the script runs fine whether xdebug_start_trace() is called or not. (The params array element is an empty array in the var_dump() output, as it should be.) | ||||
Additional Information | Although the stack trace above is from PHP 4.3.2, I get a segfault in the same place with PHP 5 | ||||
Tags | No tags attached. | ||||
Operating System | Red Hat Linux 9 | ||||
PHP Version | 4.3.4-dev | ||||
|
I could not reproduce this at all with the latest CVS version. Which Xdebug version are you using? |
|
I am using the latest CVS (xdebug.c v1.163). If you like, I can send you my xdebug.so. FWIW, here's the backtrace against PHP 5 (built Oct 14, with --enable-debug) (gdb) run xdebug-stack-bug.php edited on: 2003-10-16 15:59 |
|
I still can't reproduce it.. not even valgrind gives any warnings. Can you show me all your xdebug.* settings from phpinfo() ? Perhaps the problem is there somewhere. |
|
Here's the xdebug section of phpinfo() output (under PHP5): xdebug support => enabled Supported protocols Directive => Local Value => Master Value In php-cli.ini (I am running the PHP5 cli binary to do this test), I have: zend_extension_debug=/opt/php5/lib/php/extensions/debug-non-zts-20020429/xdebug.so The output of php -m is: [PHP Modules] [Zend Modules] |
|
Managed to reproduce it now; fix is on it's way. |
|
Fixed in CVS; this fix will also be in Xdebug 1.3 when it is released. |
Date Modified | Username | Field | Change |
---|---|---|---|
2003-10-15 17:20 | sklar | New Issue | |
2003-10-16 10:05 | derick | Note Added: 0000024 | |
2003-10-16 10:05 | derick | Status | new => feedback |
2003-10-16 14:58 | sklar | Note Added: 0000025 | |
2003-10-16 14:59 | sklar | Note Edited: 0000025 | |
2003-10-17 07:59 | derick | Note Added: 0000026 | |
2003-10-21 20:42 | sklar | Note Added: 0000033 | |
2003-12-01 16:08 | derick | PHP Version | 4.3.2 => 4.3.4-dev |
2003-12-01 16:08 | derick | Note Added: 0000069 | |
2003-12-01 16:08 | derick | Status | feedback => confirmed |
2003-12-01 16:28 | derick | Status | confirmed => closed |
2003-12-01 16:28 | derick | Note Added: 0000070 | |
2016-07-31 12:36 | derick | Category | Usage problems => Usage problems (Crashes) |
2016-07-31 12:38 | derick | Category | Usage problems (Crashes) => Usage problems (Wrong Results) |
2020-03-12 16:35 | derick | Category | Usage problems (Wrong Results) => Variable Display |
2020-03-12 16:38 | derick | Category | Variable Display => Uncategorized |