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

Non-deterministic but frequent crashes from System.Linq.Expressions.Tests #55536

Closed
jkotas opened this issue Jul 12, 2021 · 6 comments · Fixed by #55718
Closed

Non-deterministic but frequent crashes from System.Linq.Expressions.Tests #55536

jkotas opened this issue Jul 12, 2021 · 6 comments · Fixed by #55718
Milestone

Comments

@jkotas
Copy link
Member

jkotas commented Jul 12, 2021

Crash stacktrace:

00 (Inline) --------     coreclr!Stub::HasExternalEntryPoint [D:\workspace\_work\1\s\src\coreclr\vm\stublink.h @ 720] 
01 (Inline) --------     coreclr!Stub::GetEntryPointInternal [D:\workspace\_work\1\s\src\coreclr\vm\stublink.h @ 764] 
02 (Inline) --------     coreclr!Stub::GetEntryPoint [D:\workspace\_work\1\s\src\coreclr\vm\stublink.h @ 609] 
03 0738c640 72bcc90a     coreclr!COMDelegate::BindToMethod+0x100 [D:\workspace\_work\1\s\src\coreclr\vm\comdelegate.cpp @ 1125] 
04 0738c700 08c9fd93     coreclr!COMDelegate::BindToMethodInfo+0x11a [D:\workspace\_work\1\s\src\coreclr\vm\comdelegate.cpp @ 1059] 
05 0738c71c 08c9fc68     System_Private_CoreLib!System.Delegate.CreateDelegateInternal(System.RuntimeType, System.Reflection.RuntimeMethodInfo, System.Object, System.DelegateBindingFlags)+0x29e285b*** WARNING: Unable to verify checksum for System.Private.CoreLib.dll

Here's the .md file with the various runfo details:

https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-55499-merge-76bc4fdcdfe24d4e9c/System.Linq.Expressions.Tests/how-to-debug-dump.md?sv=2019-07-07&se=2021-08-01T20%3A15%3A12Z&sr=c&sp=rl&sig=czdFtHQqe0OW7J%2BSIH81r7kABJ4%2FH%2F1v1T%2F4LhwnZ9g%3D

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Jul 12, 2021
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@jkotas
Copy link
Member Author

jkotas commented Jul 12, 2021

The problem is that both the ShuffleThunk and some other JITed method occupy same memory block.

0:010> ? pShuffleThunk
Evaluate expression: 113897496 = 06c9f018
0:010> !ip2md 06c9f018
MethodDesc:   024d8cd0
Method Name:          System.Linq.Expressions.Tests.TypeEqual.CannotReduce()

@janvorli I think it is very likely caused by your W^X PR. Could you please take a look?

@janvorli
Copy link
Member

I am taking a look.

@stephentoub
Copy link
Member

Thanks, @janvorli.

@danmoseley
Copy link
Member

Nice to see the generated how-to-debug-dump.md being useful.

@janvorli
Copy link
Member

@danmoseley I was actually very pleasantly surprised by the WinDbg ability to investigate debug dumps from Linux including local variable values that I've discovered thanks to this .md file.

@mangod9 mangod9 removed the untriaged New issue has not been triaged by the area owner label Jul 14, 2021
@mangod9 mangod9 added this to the 6.0.0 milestone Jul 14, 2021
@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 Jul 15, 2021
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Jul 15, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Aug 14, 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.

5 participants