Skip to content

Operation not supported on socket on Console.CancelKeyPress on MacOSX #29150

@pranavkm

Description

@pranavkm

Copying from here: aspnet/BuildTools#948 (comment) so it's tracked

When attempting to pick up the SDK v3.0.100-preview4-011024, I see this build error on the Mac agents:

System.ComponentModel.Win32Exception (102): Operation not supported on socket
   at System.ConsolePal.EnsureInitializedCore()
   at System.ConsolePal.ControlCHandlerRegistrar.Register()
   at System.Console.add_CancelKeyPress(ConsoleCancelEventHandler value)
   at Microsoft.DotNet.Cli.Utils.ProcessReaper..ctor(Process process)
   at Microsoft.DotNet.Cli.Utils.ProcessStartInfoExtensions.Execute(ProcessStartInfo startInfo)
   at Microsoft.DotNet.Tools.RestoringCommand.Execute()
   at Microsoft.DotNet.Tools.Publish.PublishCommand.Run(String[] args)
   at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient)
   at Microsoft.DotNet.Cli.Program.Main(String[] args)

It's from a vanilla dotnet publish operation on a csproj. Could it be related to dotnet/corefx#35621?

The build log with the failure: https://dev.azure.com/dnceng/public/_build/results?buildId=141479&view=logs&lineStart=38&jobId=fe4e408a-5576-5fa1-f2ab-61ac24819df6&taskId=961b5bee-1b38-582a-dfd3-29c4c6c56ff0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions