-
Notifications
You must be signed in to change notification settings - Fork 545
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
Intermittent IIS App Pool Crash using EntityFramework 6.1.3 #32
Comments
@sglencross can you provide the LINQ query? Also, can you try setting |
Setting this before our query is problematic as we have abstracted our context from the linq operations on the DBSet. The query related to the stack overflow above is spread out across several classes and would be difficult to summarize without changing its behaviour. We do have a simpler query not related to the stack dump above but has also intermittently crashed our IIS app pool. We suspect it is also having the same kind of issue.
This is the generated SQL
Would changing the |
We are currently on .Net 4.5.2 and have been informed that there is a known issue that may be contributing to our crashes. Specifically the CLR issue addressed in this hotfix: |
Upgrading the .Net version from 4.5.2 to 4.6.1 in our production environment solved our intermittent IIS app pool crashing issues. |
We have an ongoing issue where our w3wp.exe process crashing intermittently on a ASP.NET MVC controller method that is executing a complicated linq query against EntityFramework 6.1.3.
We have enabled DebugDiag (2.2) on the server to capture dump files. The dump files show a Second Chance Exception of type AccessViolationException when loaded into WinDbg. With SOS extensions loaded !clrstack shows very little information, only 2 GCFrame lines. There is also an unmanaged stack trace when using !dumpstack that just appears to be raising the exception.
Recently DebugDiag was configured with a rule to produce a dump on First Chance Exceptions of type StackOverflow. Analyzing the dump with symbols loaded produces the attached from WinDbg when executing !dumpstack -EE.
There seems to be a problem in EntityFramework where it is calling ExpressionConverter+ConstantTranslator.TypedTranslate for a portion of our query. When examining the managed and unmanaged stack using !dumpstack there are many repeating calls to exception raising code in the unmanaged portion of the stack.
When we view the stack objects with !dso we seem to consume the stack with references to the same System.Linq.Enumerable+WhereSelectEnumerableIterator object.
It looks like there is a bug in EntityFramework which is causing the intermittent issue. Can the EF team provide any insight?
Attached is a dump of the managed stack.
WinDbgStack.txt
The text was updated successfully, but these errors were encountered: