Skip to content

lldb-server on Windows in platform mode does not reuse ports correctly #90923

@Awfa

Description

@Awfa

On both Linux and Windows, when lldb-server is in platform mode, the first connection gets handed the portmap defined by --min-gdb-serverport and --max-gdb-serverport. Subsequent connections don't receive this portmap because it has been std::move'd for the fork'ed child process to handle.

#88845 will fix this for Linux, but on Windows, the problem will only be partially fixed by the PR.
After the PR lands, Window's lldb-server will be able to use the port map for multiple connections but will fail to reclaim ports as they are given out to each connection. After enough connections, there won't be any more ports for server to give out.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions