[xdebug-dev] Bug 0000277: xdebug.trace_output_name = "xdebug.%c" does not function as documented.

From: <noreply[@]lists.xdebug.org>
Date: Mon, 18 Jun 2007 21:21:52 +0200

The following bug has been CLOSED
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000277
======================================================================
Reporter: lars
Handler:
======================================================================
Project: Xdebug
Bug ID: 277
Category: Usage problems
Reproducibility: always
Severity: trivial
Priority: normal
Status: closed
Operating System: Debian 4.0 (Etch)
PHP Version: 5.2.0
Xdebug Version: 2.0.0rc5-dev
======================================================================
Date Submitted: 2007-05-29 19:29 CEST
Last Modified: 2007-06-18 21:21 CEST
======================================================================
Summary: xdebug.trace_output_name = "xdebug.%c" does not function as documented.
Description:
If i set the above option trace file names will be build like this:
"trace.PID.xt".
According to http://xdebug.org/docs/all_settings it should be
like this trace.CRC32.xt.
======================================================================

----------------------------------------------------------------------
 derick - 2007-05-30 00:01 CEST
----------------------------------------------------------------------
That's not what the code says, the code is doing what the docs say:

case 'c': /* crc32 of the current working directory */
    VCWD_GETCWD(cwd, 127);
    xdebug_str_add(&fname, xdebug_sprintf("%lu", xdebug_crc32(cwd,
strlen(cwd))), 1);
    break;

case 'p': /* pid */
    xdebug_str_add(&fname, xdebug_sprintf("%ld", getpid()), 1);
    break;

How do you see that the results are wrong?

----------------------------------------------------------------------
 lars - 2007-05-30 00:47 CEST
----------------------------------------------------------------------
Thats strange. I have the following configuration option in the php.ini:
xdebug.trace_output_name = xdebug.%c and no overriding directives in any
included apache config.

I restarted the apache and tried again:

 # ls -l trace*
                                                   
 -rw-r--r-- 1 www-data www-data 94689 2007-05-30 00:22 trace.11061.xt
 -rw-r--r-- 1 www-data www-data 7940 2007-05-30 00:23 trace.11116.xt
 -rw-r--r-- 1 www-data www-data 352669 2007-05-30 00:25 trace.12604.xt

Thats the output.

I'm using the current cvs version and found the lines you quoted in
usefulstuff.c, so i guess the error before. Maybe while parsing the
configuration?

If i set "xdebug.trace_output_name = xdebug.%t" the same happens. The PID
is used not the timestamp (->trace.12767.xt).

edited on: 2007-05-30 00:47

----------------------------------------------------------------------
 derick - 2007-05-30 18:56 CEST
----------------------------------------------------------------------
Strange, could you please check whether the settings that you make actually
reflect in the output of phpinfo()? Although that wouldn't make sense as
the default is crc32 as well. Could you also try the following:

xdebug.trace_output_name=xdebug.%c.%p

To add both options?

regards,
Derick

----------------------------------------------------------------------
 derick - 2007-06-18 16:32 CEST
----------------------------------------------------------------------
Reminder sent to lars

Could you please provide the requested feedback? (WIth the latest CVS
version please)

----------------------------------------------------------------------
 lars - 2007-06-18 21:18 CEST
----------------------------------------------------------------------
Sorry, i didn't noticed your request. phpinfo() confirmed my
configuration.
I tried both
  xdebug.trace_output_name=xdebug.%c
  xdebug.trace_output_name=xdebug.%c.%p
and now both works. However on one virtual host i experience some strange
segfaults with the apache since i updated. I will enquire and open a new
bug report since this seems unrelated to this problem.

edited on: 2007-06-18 21:18

----------------------------------------------------------------------
 derick - 2007-06-18 21:21 CEST
----------------------------------------------------------------------
Let's close this one then - thanks for checking it out.

Bug History
Date Modified Username Field Change
======================================================================
2007-05-29 19:29lars New Bug
2007-05-29 19:29lars Bug Monitored: lars
2007-05-30 00:01derick Bugnote Added: 0000641
2007-05-30 00:01derick Status new => feedback
2007-05-30 00:27lars Bugnote Added: 0000642
2007-05-30 00:47lars Bugnote Edited: 0000642
2007-05-30 18:56derick Bugnote Added: 0000643
2007-06-18 16:32derick Bugnote Added: 0000657
2007-06-18 21:17lars Bugnote Added: 0000658
2007-06-18 21:18lars Bugnote Edited: 0000658
2007-06-18 21:21derick Bugnote Added: 0000659
2007-06-18 21:21derick Status feedback => closed
======================================================================
Received on Mon Jun 18 2007 - 21:21:54 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST