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
{{ message }}
Repository navigation
Test failure: JIT\\Methodical\\tailcall_v4\\hijacking\\hijacking.cmd #40916
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
cmdLine:C:\h\w\C1360A0E\w\BF880A6F\e\JIT\Methodical\tailcall_v4\hijacking\hijacking.cmd Timed Out (timeout in milliseconds: 600000 from variable __TestTimeout, start: 8/17/2020 2:17:27 AM, end: 8/17/2020 2:27:27 AM)
Return code: -100
Raw output file: C:\h\w\C1360A0E\w\BF880A6F\e\JIT\Methodical\Reports\JIT.Methodical\tailcall_v4\hijacking\hijacking.output.txt
Raw output:
BEGIN EXECUTION
1 file(s) copied.
" "C:\h\w\C1360A0E\p\crossgen.exe" /Platform_Assemblies_Paths C:\h\w\C1360A0E\p;C:\h\w\C1360A0E\w\BF880A6F\e\JIT\Methodical\tailcall_v4\hijacking /in C:\h\w\C1360A0E\w\BF880A6F\e\JIT\Methodical\tailcall_v4\hijacking\hijacking.org /out C:\h\w\C1360A0E\w\BF880A6F\e\JIT\Methodical\tailcall_v4\hijacking\\hijacking.dll"
Microsoft (R) CoreCLR Native Image Generator - Version 5.0.0-ci
Copyright (c) Microsoft Corporation. All rights reserved.
Native image C:\h\w\C1360A0E\w\BF880A6F\e\JIT\Methodical\tailcall_v4\hijacking\\hijacking.dll generated successfully.
"C:\h\w\C1360A0E\p\corerun.exe" hijacking.dll
cmdLine:C:\h\w\C1360A0E\w\BF880A6F\e\JIT\Methodical\tailcall_v4\hijacking\hijacking.cmd Timed Out (timeout in milliseconds: 600000 from variable __TestTimeout, start: 8/17/2020 2:17:27 AM, end: 8/17/2020 2:27:27 AM)
Test Harness Exitcode is : -100
To run the test:
> set CORE_ROOT=C:\h\w\C1360A0E\p
> C:\h\w\C1360A0E\w\BF880A6F\e\JIT\Methodical\tailcall_v4\hijacking\hijacking.cmd
Expected: True
Actual: False
Stack trace
at JIT_Methodical._tailcall_v4_hijacking_hijacking_._tailcall_v4_hijacking_hijacking_cmd() in F:\workspace\_work\1\s\artifacts\tests\coreclr\Windows_NT.x64.Checked\TestWrappers\JIT.Methodical\JIT.Methodical.XUnitWrapper.cs:line 182791
Failure is a timeout after 10 minutes. Looking at recent history for this configuration (x64 R24 NoTC) runs take from 90s - 600s (+); the only other configuration I see with failures is (x64 NoTC). Arm64 completes these in 30s or so.
So it has two threads using full cores, one doing tailcalls and one calling GC.Collect() in a loop. A third thread invokes Thread.Sleep(1000) 30 times before stopping, so the test should not take much longer than 30 seconds unless this thread is basically never allowed to run.
A loop like this can pretty much prevent all other threads in the process from running if there are other things running on the machine like it is the case in the test run setup. Something like:
GC is running on one core, all other test threads are stopped for GC, other cores are running other tests
GC is finished running, GC loop thread continues executing, other test threads are eligible to run but there is no free core to run them so the scheduler decides to wait for the next time slice tick to schedule them
GC starts running immediately again, all other threads are stopped for GC without making any progress since last one
It can be taking minutes just to get through the initial test setup phase. Maybe the GC.Collect loop should have Thread.Sleep(1) in it?
There I noticed that the test was not using helpers on x64, and I changed it to use helpers (the old unwind-based helpers). It looks like I ran into timeouts after this because I also reduced the intensity of the test a lot (but not touching the GC.Collect loop which stayed from previously).
one calling GC.Collect() in a loop.
A loop like this can pretty much prevent all other threads in the process from running if there are other things running on the machine like it is the case in the test run setup. Something like:
GC is running on one core, all other test threads are stopped for GC, other cores are running other tests
GC is finished running, GC loop thread continues executing, other test threads are eligible to run but there is no free core to run them so the scheduler decides to wait for the next time slice tick to schedule them
GC starts running immediately again, all other threads are stopped for GC without making any progress since last one
It can be taking minutes just to get through the initial test setup phase. Maybe the GC.Collect loop should have Thread.Sleep(1) in it?
Thanks for the explanation, it makes perfect sense -- if there are few available threads then the GC thread has to be preempted between two GCs, which is pretty unlikely. The fix sounds fine to me but I do wonder how it affects the effectivity of this regression test (in any case, the fix seems necessary).
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
Activity
jkotas commentedon Aug 19, 2020
Failed in #41033 (regular CI run):
AndyAyersMS commentedon Aug 25, 2020
Failure is a timeout after 10 minutes. Looking at recent history for this configuration (x64 R24 NoTC) runs take from 90s - 600s (+); the only other configuration I see with failures is (x64 NoTC). Arm64 completes these in 30s or so.
jakobbotsch commentedon Aug 25, 2020
C# of this test is:
So it has two threads using full cores, one doing tailcalls and one calling
GC.Collect()in a loop. A third thread invokesThread.Sleep(1000)30 times before stopping, so the test should not take much longer than 30 seconds unless this thread is basically never allowed to run.jkotas commentedon Aug 25, 2020
A loop like this can pretty much prevent all other threads in the process from running if there are other things running on the machine like it is the case in the test run setup. Something like:
It can be taking minutes just to get through the initial test setup phase. Maybe the GC.Collect loop should have Thread.Sleep(1) in it?
jakobbotsch commentedon Aug 25, 2020
It looks like the most recent relevant change was by myself: fdaf97e#diff-ad29682edcb1c578b9d43b941c66b861
There I noticed that the test was not using helpers on x64, and I changed it to use helpers (the old unwind-based helpers). It looks like I ran into timeouts after this because I also reduced the intensity of the test a lot (but not touching the
GC.Collectloop which stayed from previously).Thanks for the explanation, it makes perfect sense -- if there are few available threads then the GC thread has to be preempted between two GCs, which is pretty unlikely. The fix sounds fine to me but I do wonder how it affects the effectivity of this regression test (in any case, the fix seems necessary).
Add sleep in hijacking test (#41340)
Add sleep in hijacking test
Add sleep in hijacking test (#41362)