runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Debugger FIFO pipes ignores TMPDIR

Open crntn opened this issue 8 years ago • 4 comments

This is issue is related to issue#8844 I need to run dotnet in a restricted environment that do not have access to /tmp.

As described in the above linked issue we noticed that twowaypipe.cpp creates 2 files into /tmp. See process.cpp

Considering there is a method in path.cpp that generates a temp path respecting the TMPDIR env variable, I am inclined to think the debugger FIFO pipes should also respect this convention and writes the files to TMPDIR if the variable is set.

Would it make sense to submit a pull request implementing this change ?

Thanks !

crntn avatar Feb 06 '18 15:02 crntn

cc @mikem8361

jkotas avatar Feb 06 '18 17:02 jkotas

@crntn if you want to do the work, I'll help and review it. I'm in the middle fixing a problem on arm tizen with my PR that allows debugging (which includes creating those pipes on Linux) be disabled with an environment variable (PR dotnet/coreclr#16141).

mikem8361 avatar Feb 06 '18 18:02 mikem8361

@mikem8361 will do ! :smiley:

crntn avatar Feb 08 '18 08:02 crntn

Fixed now.

mikem8361 avatar Mar 01 '18 09:03 mikem8361