Open nohwnd opened 1 month ago
This is an issue in createdump with its command line parsing. It doesn't like spaces in the dump file.
It sounds like you have a workaround by using extra "".
Yes we have. Unless you think this will complicate things for use down the line? E.g. your fix adding quotes to the path, and now the path will be double quoted.
Yes, that will be a problem. And I realized that leaving this issue in the diagnostics repo and fixing in Microsoft.Diagnostics.NETCore.Client might be better since it will fix it across runtime versions. I may move it back or re-open the diagnostics repo issue
Yes fix across runtimes is definitely what we would prefer, testing.platform / VSTest are running tests down to netcoreapp3.1 and having to figure out what the TFM of tests is and apply / not apply a fix would complicate things for us.
Thank you.
As it turns out, this is only a problem on Windows and how the runtime on Windows builds the command line for createdump here. There is no problem on Linux/MacOS runtimes.
We haven't decided where (client code or runtime) best place to fix this yet and it isn't that high of a priority since there is a workaround.
Description
.NET diagnostics client fails when path to dump file has spaces in it. This reproduces both on net8 and net9, and fails with error:
[createdump] The pid argument is no longer supported coming from here
It can be fixed by wrapping the path to extra
""
.I am using the latest version of the client package.
Reproduction Steps
Expected behavior
Spaces are correctly escaped and my dump is written to disk.
Actual behavior
[createdump] The pid argument is no longer supported error is shown and dump is not written.
Regression?
No.
Known Workarounds
Add quotes around the path, or move to folder without spaces.
Configuration
Win 11, 8.0.110, but reproduces on latest net9 as well.
Other information
No response