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

Test failure on ARM64 macOS: Unable to find an entry point named 'objc_msgSend_fpret' in shared library '/usr/lib/libobjc.dylib' #52962

Closed
akoeplinger opened this issue May 19, 2021 · 4 comments · Fixed by #52849

Comments

@akoeplinger
Copy link
Member

akoeplinger commented May 19, 2021

Example runtime-staging build: https://dev.azure.com/dnceng/public/_build/results?buildId=1137913&view=results

Unhandled exception. Xunit.Sdk.ThrowsException: Assert.Throws() Failure
Expected: typeof(System.Runtime.InteropServices.Tests.PendingExceptionTests+PendingException)
Actual:   (No exception was thrown)
   at Xunit.Assert.Throws(Type exceptionType, Exception exception) in C:\Dev\xunit\xunit\src\xunit.assert\Asserts\ExceptionAsserts.cs:line 145
   at Xunit.Assert.Throws[T](Func`1 testCode) in C:\Dev\xunit\xunit\src\xunit.assert\Asserts\ExceptionAsserts.cs:line 41
   at System.Runtime.InteropServices.Tests.PendingExceptionTests.ValidateSetMessageSendPendingExceptionImpl(MessageSendFunction funcToOverride) in /_/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/ObjectiveC/PendingExceptionTests.cs:line 90
   at System.Runtime.InteropServices.Tests.PendingExceptionTests.<>c.<ValidateSetMessageSendPendingException>b__8_0(String funcToOverrideAsStr) in /_/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/ObjectiveC/PendingExceptionTests.cs:line 70
--- End of stack trace from previous location ---
   at Microsoft.DotNet.RemoteExecutor.Program.Main(String[] args) in /_/src/Microsoft.DotNet.RemoteExecutor/src/Program.cs:line 94
Unhandled exception. System.EntryPointNotFoundException: Unable to find an entry point named 'objc_msgSend_fpret' in shared library '/usr/lib/libobjc.dylib'.
   at System.Runtime.InteropServices.Tests.LibObjC.objc_msgSend_fpret(IntPtr self, IntPtr selector)
   at System.Runtime.InteropServices.Tests.LibObjC.CallPInvoke(MessageSendFunction msgSend, IntPtr inst, IntPtr sel) in /_/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/ObjectiveC/LibObjC.cs:line 54
   at System.Runtime.InteropServices.Tests.MessageSendTests.SetMessageSendCallbackImpl(MessageSendFunction[] funcsToOverride) in /_/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/ObjectiveC/MessageSendTests.cs:line 137
   at System.Runtime.InteropServices.Tests.MessageSendTests.<>c.<SetMessageSendCallback>b__13_0(String funcsToOverrideAsStr) in /_/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/ObjectiveC/MessageSendTests.cs:line 99
--- End of stack trace from previous location ---
   at Microsoft.DotNet.RemoteExecutor.Program.Main(String[] args) in /_/src/Microsoft.DotNet.RemoteExecutor/src/Program.cs:line 94
    System.Runtime.InteropServices.Tests.MessageSendTests.SetMessageSendCallback(funcsToOverride: [MsgSend, MsgSendStret]) [FAIL]
      Microsoft.DotNet.RemoteExecutor.RemoteExecutionException : Remote process failed with an unhandled exception.
      Stack Trace:
        
        Child exception:
          System.EntryPointNotFoundException: Unable to find an entry point named 'objc_msgSend_fpret' in shared library '/usr/lib/libobjc.dylib'.
           at System.Runtime.InteropServices.Tests.LibObjC.objc_msgSend_fpret(IntPtr self, IntPtr selector)
        /_/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/ObjectiveC/LibObjC.cs(54,0): at System.Runtime.InteropServices.Tests.LibObjC.CallPInvoke(MessageSendFunction msgSend, IntPtr inst, IntPtr sel)
        /_/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/ObjectiveC/MessageSendTests.cs(137,0): at System.Runtime.InteropServices.Tests.MessageSendTests.SetMessageSendCallbackImpl(MessageSendFunction[] funcsToOverride)
        /_/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/ObjectiveC/MessageSendTests.cs(99,0): at System.Runtime.InteropServices.Tests.MessageSendTests.<>c.<SetMessageSendCallback>b__13_0(String funcsToOverrideAsStr)
        
        Child process:
          System.Runtime.InteropServices.Tests, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 System.Runtime.InteropServices.Tests.MessageSendTests+<>c Void <SetMessageSendCallback>b__13_0(System.String)
        
        Child arguments:
          MsgSend;MsgSendStret
        
    System.Runtime.InteropServices.Tests.PendingExceptionTests.ValidateSetMessageSendPendingException(func: MsgSend) [FAIL]
      Microsoft.DotNet.RemoteExecutor.RemoteExecutionException : Remote process failed with an unhandled exception.
      Stack Trace:
        
        Child exception:
          Xunit.Sdk.ThrowsException: Assert.Throws() Failure
        Expected: typeof(System.Runtime.InteropServices.Tests.PendingExceptionTests+PendingException)
        Actual:   (No exception was thrown)
        /_/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/ObjectiveC/PendingExceptionTests.cs(90,0): at System.Runtime.InteropServices.Tests.PendingExceptionTests.ValidateSetMessageSendPendingExceptionImpl(MessageSendFunction funcToOverride)
        /_/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/ObjectiveC/PendingExceptionTests.cs(70,0): at System.Runtime.InteropServices.Tests.PendingExceptionTests.<>c.<ValidateSetMessageSendPendingException>b__8_0(String funcToOverrideAsStr)
        
        Child process:
          System.Runtime.InteropServices.Tests, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 System.Runtime.InteropServices.Tests.PendingExceptionTests+<>c Void <ValidateSetMessageSendPendingException>b__8_0(System.String)
        
        Child arguments:
          MsgSend
        
Unhandled exception. Xunit.Sdk.ThrowsException: Assert.Throws() Failure
Expected: typeof(System.Runtime.InteropServices.Tests.PendingExceptionTests+PendingException)
Actual:   (No exception was thrown)
   at Xunit.Assert.Throws(Type exceptionType, Exception exception) in C:\Dev\xunit\xunit\src\xunit.assert\Asserts\ExceptionAsserts.cs:line 145
   at Xunit.Assert.Throws[T](Func`1 testCode) in C:\Dev\xunit\xunit\src\xunit.assert\Asserts\ExceptionAsserts.cs:line 41
   at System.Runtime.InteropServices.Tests.PendingExceptionTests.ValidateSetMessageSendPendingExceptionImpl(MessageSendFunction funcToOverride) in /_/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/ObjectiveC/PendingExceptionTests.cs:line 90
   at System.Runtime.InteropServices.Tests.PendingExceptionTests.<>c.<ValidateSetMessageSendPendingException>b__8_0(String funcToOverrideAsStr) in /_/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/ObjectiveC/PendingExceptionTests.cs:line 70
--- End of stack trace from previous location ---
   at Microsoft.DotNet.RemoteExecutor.Program.Main(String[] args) in /_/src/Microsoft.DotNet.RemoteExecutor/src/Program.cs:line 94
    System.Runtime.InteropServices.Tests.PendingExceptionTests.ValidateSetMessageSendPendingException(func: MsgSendFpret) [FAIL]
      Microsoft.DotNet.RemoteExecutor.RemoteExecutionException : Remote process failed with an unhandled exception.
      Stack Trace:
        
        Child exception:
          Xunit.Sdk.ThrowsException: Assert.Throws() Failure
        Expected: typeof(System.Runtime.InteropServices.Tests.PendingExceptionTests+PendingException)
        Actual:   (No exception was thrown)
        /_/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/ObjectiveC/PendingExceptionTests.cs(90,0): at System.Runtime.InteropServices.Tests.PendingExceptionTests.ValidateSetMessageSendPendingExceptionImpl(MessageSendFunction funcToOverride)
        /_/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/ObjectiveC/PendingExceptionTests.cs(70,0): at System.Runtime.InteropServices.Tests.PendingExceptionTests.<>c.<ValidateSetMessageSendPendingException>b__8_0(String funcToOverrideAsStr)
        
        Child process:
          System.Runtime.InteropServices.Tests, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 System.Runtime.InteropServices.Tests.PendingExceptionTests+<>c Void <ValidateSetMessageSendPendingException>b__8_0(System.String)
        
        Child arguments:
          MsgSendFpret
        
Unhandled exception. Xunit.Sdk.ThrowsException: Assert.Throws() Failure
Expected: typeof(System.Runtime.InteropServices.Tests.PendingExceptionTests+PendingException)
Actual:   (No exception was thrown)
   at Xunit.Assert.Throws(Type exceptionType, Exception exception) in C:\Dev\xunit\xunit\src\xunit.assert\Asserts\ExceptionAsserts.cs:line 145
   at Xunit.Assert.Throws[T](Func`1 testCode) in C:\Dev\xunit\xunit\src\xunit.assert\Asserts\ExceptionAsserts.cs:line 41
   at System.Runtime.InteropServices.Tests.PendingExceptionTests.ValidateSetMessageSendPendingExceptionImpl(MessageSendFunction funcToOverride) in /_/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/ObjectiveC/PendingExceptionTests.cs:line 90
   at System.Runtime.InteropServices.Tests.PendingExceptionTests.<>c.<ValidateSetMessageSendPendingException>b__8_0(String funcToOverrideAsStr) in /_/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/ObjectiveC/PendingExceptionTests.cs:line 70
--- End of stack trace from previous location ---
   at Microsoft.DotNet.RemoteExecutor.Program.Main(String[] args) in /_/src/Microsoft.DotNet.RemoteExecutor/src/Program.cs:line 94
    System.Runtime.InteropServices.Tests.PendingExceptionTests.ValidateSetMessageSendPendingException(func: MsgSendSuper) [FAIL]
      Microsoft.DotNet.RemoteExecutor.RemoteExecutionException : Remote process failed with an unhandled exception.
      Stack Trace:
        
        Child exception:
          Xunit.Sdk.ThrowsException: Assert.Throws() Failure
        Expected: typeof(System.Runtime.InteropServices.Tests.PendingExceptionTests+PendingException)
        Actual:   (No exception was thrown)
        /_/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/ObjectiveC/PendingExceptionTests.cs(90,0): at System.Runtime.InteropServices.Tests.PendingExceptionTests.ValidateSetMessageSendPendingExceptionImpl(MessageSendFunction funcToOverride)
        /_/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/ObjectiveC/PendingExceptionTests.cs(70,0): at System.Runtime.InteropServices.Tests.PendingExceptionTests.<>c.<ValidateSetMessageSendPendingException>b__8_0(String funcToOverrideAsStr)
        
        Child process:
          System.Runtime.InteropServices.Tests, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 System.Runtime.InteropServices.Tests.PendingExceptionTests+<>c Void <ValidateSetMessageSendPendingException>b__8_0(System.String)
        
        Child arguments:
          MsgSendSuper
        
  Finished:    System.Runtime.InteropServices.Tests
=== TEST EXECUTION SUMMARY ===
   System.Runtime.InteropServices.Tests  Total: 928, Errors: 0, Failed: 4, Skipped: 4, Time: 26.320s
@akoeplinger akoeplinger added this to the 6.0.0 milestone May 19, 2021
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label May 19, 2021
@akoeplinger
Copy link
Member Author

@AaronRobinsonMSFT just found #52737, do you think this is the same/similar issue?

@AaronRobinsonMSFT
Copy link
Member

@akoeplinger yes, it is the same issue. It should be fixed today.

@AaronRobinsonMSFT
Copy link
Member

Closing as duplicate of #52737

@AaronRobinsonMSFT
Copy link
Member

Oops. No. This is slightly different. I know the issue here though.

@AaronRobinsonMSFT AaronRobinsonMSFT self-assigned this May 19, 2021
@AaronRobinsonMSFT AaronRobinsonMSFT removed the untriaged New issue has not been triaged by the area owner label May 19, 2021
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label May 19, 2021
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label May 20, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jun 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants