Skip to content

Assertion in QueryDosDevice.cs failing in Parallels VM #20043

@andyleejordan

Description

@andyleejordan

Prerequisites

Steps to reproduce

In a Windows 11 VM hosted in Parallels on a MacBook, with Parallels' default mapped apps and folders, the "dead code" assertion here is actually being hit, and prevents pwsh from starting up:

Diagnostics.Assert(false, "Really it is a dead code since GetDosDevice() is called only if PSDrive.DriveType == DriveType.Network");

Expected behavior

`pwsh` to start-up as normal

Actual behavior

The assertion is hit and the process exits (since it's a debug build)

Error details

No response

Environment data

built from master

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs-TriageThe issue is new and needs to be triaged by a work group.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions