-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
odata webapi core: sehexception when using $apply=aggregate #10426
Comments
Repro steps:
Result: Dirty AV or invalid instruction
Repros on both .NET Core 2.0 and .NET Core 2.1. |
Running this on checked runtime is hitting asserts in the JIT:
I have not connected this assert to the root cause of the crash. All signs so far are pointing to that this is a code bug. cc @dotnet/jit-contrib |
@jkotas thank you very much for your help |
I had to navigate to http://localhost:5913/efcore/Movies?$apply=groupby((ReleaseDate)) |
I reproed this with a daily build of dotnet CLI + Debug dotnet/coreclr components (built from the same commit hash as the daily build). It always seems to repro in
The code here to call
That doesn't look unusual, but the last indirection give garbage:
(another run; different data)
|
The source code is:
|
@jkotas Could you take a look? Maybe you could more easily spot if there's a problem with the object model here someplace. |
The crash is caused by invalid IL generated via Reflection.Emit.
The method with invalid IL is created at this callstack:
|
This issue was moved to dotnet/efcore#12733 |
When i use ef core as orm i have a sehexception
Exception message: sehexception
Steps to reproduce
Steps are described in this issue: 1413
Further technical details
EF Core version: (2.1.0)
Database Provider: (Microsoft.EntityFrameworkCore.SqlServer)
Operating system: Windows 10
IDE: (Visual Studio 2017 15.7.2)
The text was updated successfully, but these errors were encountered: