Assertion failed '!foundDiff' in 'Node[__Canon][System.__Canon]:Search(ref,ref):ref:this' in lsra.cpp line 2330
Configuration: Debug CoreCLR runtime: coreclr.dll, corerun.exe and mscorlib.dll CoreFX assemblies and CoreFX tests: release
The following test fails: System.Collections.Immutable.Tests
Coregen repro steps: crossgen /App_Paths . /Platform_Assemblies_Paths . /MissingDependenciesOK ./Microsoft.CodeAnalysis.CSharp.dll
Also happens for System.Collection.Immutable.dll.
Stress modes or other flags make no difference for this assert. Running with JITMinOpts set runs clean with no assert.
Before closing this issue please verify both the repro steps.
After investigating with @sivarv this looks like a new state introduced by the recursive tail call feature that lsra is not currently dealing with.
This happens on Windows as well.
Assigned to @sivarv since it is most likely a LSRA issue.
This issue seems to stil repro for Issue dotnet/coreclr#2510. Reopening it.
Still happens with the latest sources (as of 2/13/2016). Happens for System.Collections.Immutable.dll.
Seems to pass. The failure I was observing was because the loader was picking up a crossgen from an old DNX installation instead the one from the current folder.