Skip to content

Unhandled Interrupted system call in PipeLoggerServer #8

@xoofx

Description

@xoofx

Hey,

When running msbuild with MSBuildPipeLogger on a GitHub Action linux, I got the following error:

 Unhandled exception. System.IO.IOException: Interrupted system call
   ---> System.Net.Sockets.SocketException (4): Interrupted system call
     at System.IO.Pipes.PipeStream.ReadCore(Span`1 buffer)
     --- End of inner exception stack trace ---
     at System.IO.Pipes.PipeStream.ReadCore(Span`1 buffer)
     at MsBuildPipeLogger.PipeBuffer.Buffer.FillFromStream(Stream stream, CancellationToken cancellationToken)
     at MsBuildPipeLogger.PipeBuffer.FillFromStream(Stream stream, CancellationToken cancellationToken)
     at MsBuildPipeLogger.PipeLoggerServer`1.<.ctor>b__12_0()
     at System.Threading.Thread.StartCallback()

Should we catch SocketException as well? (not sure if (4): Interrupted system call means that it's an end of stream or something more serious)

https://github.com/daveaglick/MsBuildPipeLogger/blob/68568d0ea98da37be3645304bdbaf1ee8442a0d2/src/MsBuildPipeLogger.Server/PipeLoggerServer.cs#L49-L71

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions