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

Invalid path length for use with domain sockets on iOS/tvOS platform #70468

Closed
maraf opened this issue Jun 9, 2022 · 2 comments · Fixed by #70471
Closed

Invalid path length for use with domain sockets on iOS/tvOS platform #70468

maraf opened this issue Jun 9, 2022 · 2 comments · Fixed by #70471
Assignees
Labels
area-System.Net blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
Milestone

Comments

@maraf
Copy link
Member

maraf commented Jun 9, 2022

Test System.Net.Sockets.Tests.UnixDomainSocketTest.FilePathEquality is failing on iOS/tvOS on runtime-extra-platforms

System.ArgumentOutOfRangeException : The path '/Users/helix-runner/Library/Developer/CoreSimulator/Devices/5EC24E24-135D-45F8-A9C3-983B5638CD6F/data/Containers/Data/Application/217F4D6F-DDF0-4387-AE45-F5A6F237C8C9/tmp/xiqumhmj.pd3AAAAAAAAA' is of an invalid length for use with domain sockets on this platform.  The length must be between 1 and 104 characters, inclusive. (Parameter 'path')\nActual value was /Users/helix-runner/Library/Developer/CoreSimulator/Devices/5EC24E24-135D-45F8-A9C3-983B5638CD6F/data/Containers/Data/Application/217F4D6F-DDF0-4387-AE45-F5A6F237C8C9/tmp/xiqumhmj.pd3AAAAAAAAA.
   at System.Net.Sockets.UnixDomainSocketEndPoint..ctor(String path, String boundFileName)
   at System.Net.Sockets.UnixDomainSocketEndPoint..ctor(String path)
   at System.Net.Sockets.Tests.UnixDomainSocketTest.FilePathEquality()
   at System.Reflection.MethodInvoker.InterpretedInvoke(Object obj, Span`1 args, BindingFlags invokeAttr)

Test added in #69722

Build Kind Start Time
1813081 Rolling 2022-08-06
1814339 Rolling 2022-08-06
@maraf maraf added area-System.Net blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' labels Jun 9, 2022
@ghost
Copy link

ghost commented Jun 9, 2022

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details

Test System.Net.Sockets.Tests.UnixDomainSocketTest.FilePathEquality is failing on iOS/tvOS on runtime-extra-platforms

System.ArgumentOutOfRangeException : The path '/Users/helix-runner/Library/Developer/CoreSimulator/Devices/5EC24E24-135D-45F8-A9C3-983B5638CD6F/data/Containers/Data/Application/217F4D6F-DDF0-4387-AE45-F5A6F237C8C9/tmp/xiqumhmj.pd3AAAAAAAAA' is of an invalid length for use with domain sockets on this platform.  The length must be between 1 and 104 characters, inclusive. (Parameter 'path')\nActual value was /Users/helix-runner/Library/Developer/CoreSimulator/Devices/5EC24E24-135D-45F8-A9C3-983B5638CD6F/data/Containers/Data/Application/217F4D6F-DDF0-4387-AE45-F5A6F237C8C9/tmp/xiqumhmj.pd3AAAAAAAAA.
   at System.Net.Sockets.UnixDomainSocketEndPoint..ctor(String path, String boundFileName)
   at System.Net.Sockets.UnixDomainSocketEndPoint..ctor(String path)
   at System.Net.Sockets.Tests.UnixDomainSocketTest.FilePathEquality()
   at System.Reflection.MethodInvoker.InterpretedInvoke(Object obj, Span`1 args, BindingFlags invokeAttr)

Test added in #69722

Author: maraf
Assignees: -
Labels:

area-System.Net, blocking-clean-ci

Milestone: -

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Jun 9, 2022
@rzikm rzikm self-assigned this Jun 9, 2022
@rzikm
Copy link
Member

rzikm commented Jun 9, 2022

Looks like the GetRandomNonExistingFilePath produces too long paths, perhaps the same reason why other tests which use it are disabled on those platforms.

@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Jun 9, 2022
@ghost ghost removed untriaged New issue has not been triaged by the area owner in-pr There is an active PR which will close this issue when it is merged labels Jun 9, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Jul 9, 2022
@karelz karelz added this to the 7.0.0 milestone Jul 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Net blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants