runtime: Assertion failed 'argInfo.argIsUsed == false' during 'Morph - Inlining'
Sample failure log: https://dev.azure.com/dnceng-public/public/_build/results?buildId=937252&view=logs&j=6a7e26fa-36e7-5a45-28af-dc6c8e6724e6&t=089ef86b-599a-543a-2c8c-82b31601e3ec
ILC: /__w/1/s/src/coreclr/jit/fginline.cpp:1888
ILC: Assertion failed 'argInfo.argIsUsed == false' in 'System.Threading.Tasks.Tests.ParallelForTests+MyPartitioner`1[System.__Canon]:GetDynamicPartitions():System.Collections.Generic.IEnumerable`1[System.__Canon]:this' during 'Morph - Inlining' (IL size 23; hash 0x3ce6bc1d; FullOpts)
/__w/1/s/artifacts/bin/coreclr/linux.x64.Checked/build/Microsoft.NETCore.Native.targets(316,5): error MSB3073: The command ""/__w/1/s/artifacts/bin/coreclr/linux.x64.Checked/x64/ilc/ilc" @"/__w/1/s/artifacts/obj/System.Threading.Tasks.Parallel.Tests/Release/net10.0/native/System.Threading.Tasks.Parallel.Tests.ilc.rsp"" exited with code 134. [/__w/1/s/src/libraries/System.Threading.Tasks.Parallel/tests/System.Threading.Tasks.Parallel.Tests.csproj]
This is failing in native AOT OptimizationPreference=Speed runs on both Windows and Linux. I.e. you need to add /p:OptimizationPreference=Speed to the build command line, in addition to /p:TestNativeAot=true.
This started failing sometime between https://github.com/dotnet/runtime/commit/ad7b8299d8d80eb27cf22838c7017c5872056b56 (last good run) and https://github.com/dotnet/runtime/commit/6f221b41da8b4fbd09dcf7ac4b796ff3c86cbeb9 (first bad run).
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 20 (20 by maintainers)
Commits related to this issue
- JIT: Unify handling of InstParam argument during inlining * Handle InstParam in the same way as all other arguments * Insert the evaluation of the InstParam in the right spot when inlining succeede... — committed to jakobbotsch/runtime by jakobbotsch 2 years ago
- JIT: Unify handling of InstParam argument during inlining (#112119) * Handle InstParam in the same way as all other arguments * Insert the evaluation of the InstParam in the right spot when inlining... — committed to stephentoub/runtime by jakobbotsch 2 years ago
Then let me grab this one. #112010 still needs a bit of work to investigate some regressions.
Ah, ok, right, we don’t gather the inline arg info early. That makes sense. So maybe the issue is just restricted to instance params.