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 System.Runtime.InteropServices.Tests.PendingExceptionTests.ValidateSetMessageSendPendingException(func: MsgSendSuper) #52737

Closed
VincentBu opened this issue May 14, 2021 · 2 comments · Fixed by #52849

Comments

@VincentBu
Copy link
Contributor

VincentBu commented May 14, 2021

Run: runtime 20210513.81

Failed test:

net6.0-OSX-Release-x64-CoreCLR_checked-OSX.1013.Amd64.Open

- System.Runtime.InteropServices.Tests.PendingExceptionTests.ValidateSetMessageSendPendingException(func: MsgSendSuper)
- System.Runtime.InteropServices.Tests.PendingExceptionTests.ValidateSetMessageSendPendingException(func: MsgSendFpret)
- System.Runtime.InteropServices.Tests.PendingExceptionTests.ValidateSetMessageSendPendingException(func: MsgSend)

Error message:

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)
   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

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
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label May 14, 2021
@AaronRobinsonMSFT AaronRobinsonMSFT removed the untriaged New issue has not been triaged by the area owner label May 15, 2021
@AaronRobinsonMSFT AaronRobinsonMSFT added this to the 6.0.0 milestone May 15, 2021
@AaronRobinsonMSFT AaronRobinsonMSFT self-assigned this May 15, 2021
@AaronRobinsonMSFT
Copy link
Member

AaronRobinsonMSFT commented May 15, 2021

Oh sad. This was missed in the PR build because there is no build that runs where the msgSend P/Invokes would be inlined. In this case the problem is because the signatures are blittable and therefore inlined. The result is that the logic to check for a pending exception has been elided.

@AaronRobinsonMSFT
Copy link
Member

@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 May 17, 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