Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bionic Android Mono CI failure in System.IO.Pipes named pipes unix domain socket tests (server and client) #75021

Closed
carlossanlop opened this issue Sep 2, 2022 · 3 comments

Comments

@carlossanlop
Copy link
Member

Found in a release/7.0 PR: #74926

Please help determine if a fix needs to be backported to 7.0.

Server:

[11:52:30] dbug: Exit code: 1
                 Std out:
                   Discovering: System.IO.Pipes.Tests (method display = ClassAndMethod, method display options = None)
                   Discovered:  System.IO.Pipes.Tests (found 99 of 502 test cases)
                   Starting:    System.IO.Pipes.Tests (parallel test collections = on, max threads = 8)
                       System.Net.Sockets.SocketException : Permission denied
                       Stack Trace:
                         /_/src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.cs(3650,0): at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, Boolean disconnectOnFailure, String callerName)
                         /_/src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.cs(788,0): at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
                         /_/src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.cs(766,0): at System.Net.Sockets.Socket.Bind(EndPoint localEP)
                         /_/src/libraries/System.IO.Pipes/tests/NamedPipeTests/NamedPipeTest.UnixDomainSockets.cs(41,0): at System.IO.Pipes.Tests.NamedPipeTest_UnixDomainSockets.NamedPipeClient_Connects_With_UnixDomainSocketEndPointServer()
                         --- End of stack trace from previous location ---

Client:

                       System.Net.Sockets.SocketException : Permission denied
                       Stack Trace:
                         /_/src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.cs(3650,0): at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, Boolean disconnectOnFailure, String callerName)
                         /_/src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.cs(788,0): at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
                         /_/src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.cs(766,0): at System.Net.Sockets.Socket.Bind(EndPoint localEP)
                         /_/src/libraries/System.IO.Pipes/src/System/IO/Pipes/NamedPipeServerStream.Unix.cs(331,0): at System.IO.Pipes.NamedPipeServerStream.SharedServer..ctor(String path, Int32 maxCount)
                         /_/src/libraries/System.IO.Pipes/src/System/IO/Pipes/NamedPipeServerStream.Unix.cs(279,0): at System.IO.Pipes.NamedPipeServerStream.SharedServer.Get(String path, Int32 maxCount)
                         /_/src/libraries/System.IO.Pipes/src/System/IO/Pipes/NamedPipeServerStream.Unix.cs(44,0): at System.IO.Pipes.NamedPipeServerStream.Create(String pipeName, PipeDirection direction, Int32 maxNumberOfServerInstances, PipeTransmissionMode transmissionMode, PipeOptions options, Int32 inBufferSize, Int32 outBufferSize, HandleInheritability inheritability)
                         /_/src/libraries/System.IO.Pipes/src/System/IO/Pipes/NamedPipeServerStream.cs(84,0): at System.IO.Pipes.NamedPipeServerStream..ctor(String pipeName, PipeDirection direction, Int32 maxNumberOfServerInstances, PipeTransmissionMode transmissionMode, PipeOptions options, Int32 inBufferSize, Int32 outBufferSize, HandleInheritability inheritability)
                         /_/src/libraries/System.IO.Pipes/src/System/IO/Pipes/NamedPipeServerStream.cs(40,0): at System.IO.Pipes.NamedPipeServerStream..ctor(String pipeName, PipeDirection direction, Int32 maxNumberOfServerInstances, PipeTransmissionMode transmissionMode, PipeOptions options)
                         /_/src/libraries/System.IO.Pipes/tests/NamedPipeTests/NamedPipeTest.UnixDomainSockets.cs(20,0): at System.IO.Pipes.Tests.NamedPipeTest_UnixDomainSockets.NamedPipeServer_Connects_With_UnixDomainSocketEndPointClient()
                         /_/src/mono/System.Private.CoreLib/src/System/Reflection/MethodInvoker.Mono.cs(33,0): at System.Reflection.MethodInvoker.InterpretedInvoke(Object obj, Span`1 args, BindingFlags invokeAttr)

Summary:

                   Finished:    System.IO.Pipes.Tests
                 === TEST EXECUTION SUMMARY ===
                    System.IO.Pipes.Tests  Total: 141, Errors: 0, Failed: 2, Skipped: 0, Time: 1.943s
                 
                 
                 Std err:
                     System.IO.Pipes.Tests.NamedPipeTest_UnixDomainSockets.NamedPipeClient_Connects_With_UnixDomainSocketEndPointServer [FAIL]
                     System.IO.Pipes.Tests.NamedPipeTest_UnixDomainSockets.NamedPipeServer_Connects_With_UnixDomainSocketEndPointClient [FAIL]
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Sep 2, 2022
@ghost
Copy link

ghost commented Sep 2, 2022

Tagging subscribers to 'arch-android': @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.

Issue Details

Found in a release/7.0 PR: #74926

Please help determine if a fix needs to be backported to 7.0.

Server:

[11:52:30] dbug: Exit code: 1
                 Std out:
                   Discovering: System.IO.Pipes.Tests (method display = ClassAndMethod, method display options = None)
                   Discovered:  System.IO.Pipes.Tests (found 99 of 502 test cases)
                   Starting:    System.IO.Pipes.Tests (parallel test collections = on, max threads = 8)
                       System.Net.Sockets.SocketException : Permission denied
                       Stack Trace:
                         /_/src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.cs(3650,0): at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, Boolean disconnectOnFailure, String callerName)
                         /_/src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.cs(788,0): at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
                         /_/src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.cs(766,0): at System.Net.Sockets.Socket.Bind(EndPoint localEP)
                         /_/src/libraries/System.IO.Pipes/tests/NamedPipeTests/NamedPipeTest.UnixDomainSockets.cs(41,0): at System.IO.Pipes.Tests.NamedPipeTest_UnixDomainSockets.NamedPipeClient_Connects_With_UnixDomainSocketEndPointServer()
                         --- End of stack trace from previous location ---

Client:

                       System.Net.Sockets.SocketException : Permission denied
                       Stack Trace:
                         /_/src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.cs(3650,0): at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, Boolean disconnectOnFailure, String callerName)
                         /_/src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.cs(788,0): at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
                         /_/src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.cs(766,0): at System.Net.Sockets.Socket.Bind(EndPoint localEP)
                         /_/src/libraries/System.IO.Pipes/src/System/IO/Pipes/NamedPipeServerStream.Unix.cs(331,0): at System.IO.Pipes.NamedPipeServerStream.SharedServer..ctor(String path, Int32 maxCount)
                         /_/src/libraries/System.IO.Pipes/src/System/IO/Pipes/NamedPipeServerStream.Unix.cs(279,0): at System.IO.Pipes.NamedPipeServerStream.SharedServer.Get(String path, Int32 maxCount)
                         /_/src/libraries/System.IO.Pipes/src/System/IO/Pipes/NamedPipeServerStream.Unix.cs(44,0): at System.IO.Pipes.NamedPipeServerStream.Create(String pipeName, PipeDirection direction, Int32 maxNumberOfServerInstances, PipeTransmissionMode transmissionMode, PipeOptions options, Int32 inBufferSize, Int32 outBufferSize, HandleInheritability inheritability)
                         /_/src/libraries/System.IO.Pipes/src/System/IO/Pipes/NamedPipeServerStream.cs(84,0): at System.IO.Pipes.NamedPipeServerStream..ctor(String pipeName, PipeDirection direction, Int32 maxNumberOfServerInstances, PipeTransmissionMode transmissionMode, PipeOptions options, Int32 inBufferSize, Int32 outBufferSize, HandleInheritability inheritability)
                         /_/src/libraries/System.IO.Pipes/src/System/IO/Pipes/NamedPipeServerStream.cs(40,0): at System.IO.Pipes.NamedPipeServerStream..ctor(String pipeName, PipeDirection direction, Int32 maxNumberOfServerInstances, PipeTransmissionMode transmissionMode, PipeOptions options)
                         /_/src/libraries/System.IO.Pipes/tests/NamedPipeTests/NamedPipeTest.UnixDomainSockets.cs(20,0): at System.IO.Pipes.Tests.NamedPipeTest_UnixDomainSockets.NamedPipeServer_Connects_With_UnixDomainSocketEndPointClient()
                         /_/src/mono/System.Private.CoreLib/src/System/Reflection/MethodInvoker.Mono.cs(33,0): at System.Reflection.MethodInvoker.InterpretedInvoke(Object obj, Span`1 args, BindingFlags invokeAttr)

Summary:

                   Finished:    System.IO.Pipes.Tests
                 === TEST EXECUTION SUMMARY ===
                    System.IO.Pipes.Tests  Total: 141, Errors: 0, Failed: 2, Skipped: 0, Time: 1.943s
                 
                 
                 Std err:
                     System.IO.Pipes.Tests.NamedPipeTest_UnixDomainSockets.NamedPipeClient_Connects_With_UnixDomainSocketEndPointServer [FAIL]
                     System.IO.Pipes.Tests.NamedPipeTest_UnixDomainSockets.NamedPipeServer_Connects_With_UnixDomainSocketEndPointClient [FAIL]
Author: carlossanlop
Assignees: -
Labels:

os-android, test-failure

Milestone: -

@steveisok
Copy link
Member

These tests were disabled in main and need backported.

@ghost ghost added in-pr There is an active PR which will close this issue when it is merged and removed in-pr There is an active PR which will close this issue when it is merged labels Sep 8, 2022
@carlossanlop
Copy link
Member Author

@steveisok I noticed you disabled them directly in 7.0. Did they get disabled in main too? If yes, then this issue can be closed.

@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Sep 9, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Oct 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants