MantisBT - Xdebug
View Issue Details
0000693XdebugUsage problemspublic2011-05-14 17:262014-03-05 09:21
relaxnow 
derick 
normalminoralways
assignedreopened 
x86CentOS5.6
 
2.2.x 
5.3.3
0000693: Profiling: cachegrind files not written when filename exceeds 260 characters
When the '%R' option is used for the output name and the request URI exceeds 260 characters XDebug doesn't output a cachegrind file or even log an error.
1. Set up XDebug, enable profiling.
2. Use the following INI settings:
xdebug.profiler_enable = 1
xdebug.profiler_output_name = cachegrind.out.%H.%R
3. Go to a long url (I used ??11111111111111111111111111111222222222222222222222222222222233333333333333333333333344444444444444444444444444444444444455555555555555555555555555555566666666666666666666666666666666666667777777777777777777777777778888901234)
4. Go to the output directory, expect to see a cachegrind.out file.
Attached is a patch made on a checkout of revision 3440 of trunk.
This is my first C code ever, so it's probably too naive, but it does seem to fix the bug by truncating the filename to NAME_MAX.
Let me know how I can help (had fun messing with C).
No tags attached.
has duplicate 0000604resolved derick profiler_output_name: Using %R causes no output on some requests 
patch xdebug.rev3440.profiling-long-filename.patch (582) 2011-05-14 17:26
http://bugs.xdebug.org/file_download.php?file_id=29&type=bug
Issue History
2011-05-14 17:26relaxnowNew Issue
2011-05-14 17:26relaxnowFile Added: xdebug.rev3440.profiling-long-filename.patch
2011-08-13 19:03derickNote Added: 0001781
2011-08-13 19:03derickStatusnew => closed
2011-08-13 19:03derickAssigned To => derick
2011-08-13 19:03derickResolutionopen => fixed
2011-08-17 19:44derickRelationship addedhas duplicate 0000604
2011-10-12 07:56relaxnowNote Added: 0001842
2011-10-12 07:56relaxnowStatusclosed => feedback
2011-10-12 07:56relaxnowResolutionfixed => reopened
2012-03-12 16:46derickTarget Version => 2.2.1
2012-07-14 23:14derickTarget Version2.2.1 => 2.2.2
2013-03-23 14:50derickTarget Version2.2.2 => 2.2.3
2013-05-22 04:51derickTarget Version2.2.3 => 2.2.x
2014-03-05 09:21derickStatusfeedback => assigned

Notes
(0001781)
derick   
2011-08-13 19:03   
Fixed for 2.1.3 and 2.2.
(0001842)
relaxnow   
2011-10-12 07:56   
Tested this with current master from GitHub (https://github.com/derickr/xdebug/commit/00a00ea4512d414f0592675a7c91f5791868eb1a [^]), was not fixed, applying the patch still fixed it.