You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can repro this (as well as another assert) though it is intermittent. I think it happens when trying to print the overall elapsed time for the test, which can vary.
Trying to catch the second assert via SPMI but so far it's not reproing readily. Also I get a bunch of errorsunder SPMI collect, likely from child processes not playing along properly:
Microsoft.DotNet.XUnitConsoleRunner v2.5.0 (32-bit .NET 7.0.0-dev)
Discovering: System.Globalization.Tests (method display = ClassAndMethod, method display options = None)
Discovered: System.Globalization.Tests (found 455 test cases)
Starting: System.Globalization.Tests (parallel test collections = on, max threads = 12)
ERROR: LoadRealJitLib - LoadLibrary failed to load 'c:\home\clrjit2.dll' (0x0000007e)
ERROR: LoadRealJitLib - LoadLibrary failed to load 'c:\home\clrjit2.dll' (0x0000007e)
Fatal error. Failed to load JIT compiler
System.Globalization.Tests.CultureInfoAll.TestAllCultures_Nls [SKIP]
Condition(s) not met: "IsNlsGlobalization"
ERROR: LoadRealJitLib - LoadLibrary failed to load 'c:\home\clrjit2.dll' (0x0000007e)
ERROR: LoadRealJitLib - LoadLibrary failed to load 'c:\home\clrjit2.dll' (0x0000007e)
Fatal error. Failed to load JIT compiler
not sure where it's getting that folder or jit name from.
Ok, above was operator error (not passing all the args to xunit, so remote executor did not properly launch the child runtime).
Can repro and capture via SPMI. Last bit of the jit dump is:
*************** In getLoopSize() for G_M49760_IG72
G_M49760_IG72 has 87 bytes.
G_M49760_IG73 has 4 bytes.
G_M49760_IG74 has 28 bytes. but ends with align instruction, taking off 15 bytes.
G_M49760_IG75 has 3 bytes.
G_M49760_IG76 has 26 bytes. but ends with align instruction, taking off 15 bytes. -- Found the back edge.
loopSize of G_M49760_IG72 = 118 bytes.
;; Skip alignment: 'Loop at G_M49760_IG72 PaddingNeeded= 10, MaxPadding= 2, LoopSize= 118, AlignmentBoundary= 16B.'
;; Calculated padding to add 0 bytes to align G_M49760_IG72 at 16B boundary.
Adjusted alignment for G_M49760_IG72 from 15 to 0.
Adjusted size of G_M49760_IG62 from 23 to 8.
Adjusted offset of G_M49760_IG63 from 0724 to 06F7
Adjusted offset of G_M49760_IG64 from 072D to 0700
Adjusted offset of G_M49760_IG65 from 073C to 070F
Adjusted offset of G_M49760_IG66 from 074B to 071E
Adjusted offset of G_M49760_IG67 from 0754 to 0727
Adjusted offset of G_M49760_IG68 from 075E to 0731
Adjusted offset of G_M49760_IG69 from 076C to 073F
Adjusted offset of G_M49760_IG70 from 077A to 074D
Adjusted offset of G_M49760_IG71 from 07D0 to 07A3
Adjusted offset of G_M49760_IG72 from 0803 to 07D6
Adjusted offset of G_M49760_IG73 from 085A to 082D
Adjusted offset of G_M49760_IG74 from 085E to 0831
Adjusting 'align' instruction in IG74 that is targeted for IG75
*************** In getLoopSize() for G_M49760_IG75
G_M49760_IG75 has 3 bytes.
G_M49760_IG76 has 26 bytes.
And we assert here because IG76 thinks it is part of the IG72 loop, but we are processing the IG75 loop.
On the block level we seem to have interleaved blocks from two different loops. IG72 is BB132, IG75 is BB134, IG76 is BB279
Seems like we get into trouble with loop 6: BB134 is marked as the head to align, but BB136 comes before it and is also in loop 6.
This state of affairs comes about during Optimize layout, for convoluted reasons. The logic there is suspect, but I think the right fix is to update the alignment marking code to tolerate finding a loop block that isn't the header before it sees other blocks in the loop, and just bypass alignment for that loop or something.
ghost added
in-prThere is an active PR which will close this issue when it is merged
Activity
AndyAyersMS commentedon Jun 17, 2022
I can repro this (as well as another assert) though it is intermittent. I think it happens when trying to print the overall elapsed time for the test, which can vary.
AndyAyersMS commentedon Jun 17, 2022
Trying to catch the second assert via SPMI but so far it's not reproing readily. Also I get a bunch of errorsunder SPMI collect, likely from child processes not playing along properly:
not sure where it's getting that folder or jit name from.
AndyAyersMS commentedon Jun 18, 2022
Ok, above was operator error (not passing all the args to xunit, so remote executor did not properly launch the child runtime).
Can repro and capture via SPMI. Last bit of the jit dump is:
And we assert here because IG76 thinks it is part of the IG72 loop, but we are processing the IG75 loop.
On the block level we seem to have interleaved blocks from two different loops. IG72 is BB132, IG75 is BB134, IG76 is BB279
Seems like we get into trouble with loop 6: BB134 is marked as the head to align, but BB136 comes before it and is also in loop 6.
This state of affairs comes about during Optimize layout, for convoluted reasons. The logic there is suspect, but I think the right fix is to update the alignment marking code to tolerate finding a loop block that isn't the header before it sees other blocks in the loop, and just bypass alignment for that loop or something.
JIT: fix loop alignment issue (#70936)