Repository navigation
Closed
Labels
GCStressarea-Tracing-coreclrblocking-outerloopBlocking the 'runtime-coreclr outerloop' and 'runtime-libraries-coreclr outerloop' runsos-windows
Milestone
Description
Run: runtime-coreclr gcstress0x3-gcstress0xc 20210418.1
Failed test:
CoreCLR windows arm64 Checked gcstress0x3 @ Windows.10.Arm64v8.Open
-tracing\\eventpipe\\processenvironment\\processenvironment\\processenvironment.cmd
Error message:
Assert failure(PID 9676 [0x000025cc], Thread: 3416 [0x0d58]): !CREATE_CHECK_STRING(pMT && pMT->Validate())
CORECLR! Object::ValidateInner + 0x19C (0x00007ff897c508ec)
CORECLR! Object::Validate + 0xC0 (0x00007ff897c50728)
CORECLR! WKS::GCHeap::Promote + 0x9C (0x00007ff897e6e13c)
CORECLR! TransitionFrame::PromoteCallerStackHelper + 0x11C (0x00007ff897bfc454)
CORECLR! TransitionFrame::PromoteCallerStack + 0x1A0 (0x00007ff897bfc320)
CORECLR! GcStackCrawlCallBack + 0x34C (0x00007ff897d0830c)
CORECLR! Thread::MakeStackwalkerCallback + 0x70 (0x00007ff897c74fc0)
CORECLR! Thread::StackWalkFramesEx + 0x174 (0x00007ff897c762ac)
CORECLR! Thread::StackWalkFrames + 0x130 (0x00007ff897c760a0)
CORECLR! ScanStackRoots + 0x1D4 (0x00007ff897d070a4)
File: D:\workspace\_work\1\s\src\coreclr\vm\object.cpp Line: 514
Image: D:\h\w\9A030924\p\corerun.exe
Return code: 1
Raw output file: D:\h\w\9A030924\w\A64108D9\e\tracing\eventpipe\Reports\tracing.eventpipe\processenvironment\processenvironment\processenvironment.output.txt
Raw output:
BEGIN EXECUTION
"D:\h\w\9A030924\p\corerun.exe" processenvironment.dll
0.0s: running sub-process: D:\h\w\9A030924\p\corerun.exe D:\h\w\9A030924\w\A64108D9\e\tracing\eventpipe\processenvironment\processenvironment\processenvironment.dll 0
4.4s: subprocess started: True
4.4s: subprocess PID: 10476
15.5s: Test PID: 10476
16.7s: Wrote: { Header={ Magic=System.Byte[]; Size=20; CommandSet=4; CommandId=2; Reserved=0 }; }
17.5s: Received: { Header={ Magic=System.Byte[]; Size=26; CommandSet=255; CommandId=0; Reserved=0 }; Payload=[ 0x90 0x22 0x00 0x00 0x00 0x00 ]}
17.6s: continuation size: 8848 bytes
17.6s: future value: 0
17.6s: Starting to copy continuation
17.9s: Finished copying continuation
17.9s: Total bytes in continuation: 8848
17.9s: envCount: 90
18.4s: finished parsing env
18.5s: Saw test values in env
18.5s: Sending 'exit' to subprocess stdin
Expected: 100
Actual: -1073740286
END EXECUTION - FAILED
FAILED
Test Harness Exitcode is : 1
To run the test:
> set CORE_ROOT=D:\h\w\9A030924\p
> D:\h\w\9A030924\w\A64108D9\e\tracing\eventpipe\processenvironment\processenvironment\processenvironment.cmd
Expected: True
Actual: False
Stack trace
at tracing_eventpipe._processenvironment_processenvironment_processenvironment_._processenvironment_processenvironment_processenvironment_cmd()
Historical failures of this test:
More failures
Metadata
Metadata
Assignees
Labels
GCStressarea-Tracing-coreclrblocking-outerloopBlocking the 'runtime-coreclr outerloop' and 'runtime-libraries-coreclr outerloop' runsos-windows
Activity
tommcdon commentedon Apr 19, 2021
@josalem
josalem commentedon Apr 19, 2021
I'm not sure that the crossgen2 pipeline failures are actually this test failing.
It looks like corssgen2 fails on an assert, but then it still attempts to run the test which seemingly crashes partway through execution. I haven't looked at the dumps yet though. @mangod9 does this type of failure looks familiar to you?
As for the gcstress failure, I don't have any hunches. There's no dump to inspect so I'll have to see if this repros. It's attempting to validate the method table pointer for whatever object the GC is inspecting. Either that pointer was null or it failed the validation.
runtime/src/coreclr/vm/object.cpp
Lines 510 to 514 in 9f10999
The test itself seems to be in the shutdown phase, so this could be during the child process's shutdown.
mangod9 commentedon Apr 19, 2021
hmm.. interesting. Is this an intermittent failure? I would expect field layout asserts would be deterministic.
cc @dotnet/crossgen-contrib @trylek @davidwrighton
trylek commentedon Apr 19, 2021
For John's comment, the field layout validation error is a runtime crash, not a compile-time crash. One way or another this is super weird as I believe this is the exact bug I was fixing about 1-2 weeks back in
#50364
As you can see, I used the exact ExtendedSocketException layout to construct the regression test that seems to be passing now. The primary problem quoted by Vincent in the issue description is basically a heap corruption which naturally may occur upon inconsistent field layout calculation but I find it hard to understand how such a crash could occur without previously hitting the field offset verification check.
VincentBu commentedon May 6, 2021
Failed again in runtime-coreclr r2r-extra 20210502.1
Failed test:
Error message:
Historical failures of this test has updated in this comment.
VincentBu commentedon May 24, 2021
Failed again in runtime-coreclr gcstress0x3-gcstress0xc 20210523.1
Failed test:
Error message:
Historical failures of this test has updated in this comment.
BruceForstall commentedon Jun 22, 2021
This continues to fail for Windows x64, Windows x86, Windows arm64 in either GCStress=3 or GCStress=C:
https://dev.azure.com/dnceng/public/_build/results?buildId=1198527&view=ms.vss-test-web.build-test-results-tab&runId=35925072&paneView=debug
Disable failing tests under GCStress
Disable failing tests under GCStress (#54532)
davidwrighton commentedon Jun 25, 2021
@josalem, I took a chance too look at this due to the comment about crossgen behavior above. Fortunately it appears to be an entirely different issue. I'm putting together a PR now.