[CP] [ Service ] Include drive letter in path when launching DDS snapshot #55386
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
cherry-pick-approved
Label for approved cherrypick request
cherry-pick-review
Issue that need cherry pick triage to approve
triaged
Issue has been triaged by sub team
Commit(s) to merge
d4c20e2
Target
Beta (should be included in upcoming stable)
Prepared changelist for beta/stable
https://dart-review.googlesource.com/c/sdk/+/361400
Issue Description
The VM service would fail to launch DDS when the SDK was on one Windows drive and the target program was executed in the context of a different drive. The logic to manually build the URI to the DDS snapshot resulted in Windows drive letters being omitted from the URI. This works fine for most cases since the path started with a leading
/
, which is interpreted as the current drive, but fails if the SDK is not present on the current drive.What is the fix
Updates the
_DebuggingSession
logic in the VM service responsible for launching DDS to use thedart:io
File
API to consistently get a well-formed path to SDKbin
directory rather than trying to manually build it usingUri
APIs.Why cherry-pick
Windows users with multiple drives may encounter crashes when enabling the VM service.
Risk
Low risk.
Issue link(s)
grpc/grpc-dart#697
Extra Info
No response
The text was updated successfully, but these errors were encountered: