Repository navigation
Closed
Description
Run: runtime-coreclr outerloop 20210618.10
Failed test:
CoreCLR windows x86 Checked no_tiered_compilation @ Windows.10.Amd64.Open
- tracing\\eventpipe\\pauseonstart\\pauseonstart\\pauseonstart.cmd
Error message:
Return code: 1
Raw output file: C:\h\w\B1050997\w\A68508EA\uploads\Reports\tracing.eventpipe\pauseonstart\pauseonstart\pauseonstart.output.txt
Raw output:
BEGIN EXECUTION
"C:\h\w\B1050997\p\corerun.exe" pauseonstart.dll
0.0s: ::== Running test: TEST_RuntimeResumesExecutionWithCommand
0.1s: Server name is 'DOTNET_TRACE_TESTS_40e5ocet.e4a'
0.9s: running sub-process: C:\h\w\B1050997\p\corerun.exe C:\h\w\B1050997\w\A68508EA\e\tracing\eventpipe\pauseonstart\pauseonstart\pauseonstart.dll 0
2.7s: subprocess started: True
2.7s: subprocess PID: 7708
4.6s: { Magic=System.Byte[]; ClrInstanceId=b355e344-977d-4ad4-9912-0ddff2c8f280; ProcessId=7708; Unused=0; }
4.6s: Sent: { Header={ Magic=System.Byte[]; Size=20; CommandSet=4; CommandId=1; Reserved=0 }; }
4.7s: received: { Header={ Magic=System.Byte[]; Size=24; CommandSet=255; CommandId=0; Reserved=0 }; Payload=[ 0x00 0x00 0x00 0x00 ]}
4.7s: Sending 'exit' to subprocess stdin
5.8s: ================= Subprocess Exited =================
5.8s: SubProcess exited - Exit code: 0
5.8s: ----------------------------------------
5.8s: Subprocess stdout:
4.8s: Subprocess started! Waiting for input...
4.8s: Received 'exit'. Exiting...
5.8s: Subprocess stderr:
5.8s: ----------------------------------------
5.9s: Test passed: True
5.9s:
5.9s: ::== Running test: TEST_TracesHaveRelevantEvents
6.0s: Server name is 'DOTNET_TRACE_TESTS_g4xdact4.0zp'
6.0s: running sub-process: C:\h\w\B1050997\p\corerun.exe C:\h\w\B1050997\w\A68508EA\e\tracing\eventpipe\pauseonstart\pauseonstart\pauseonstart.dll 0
6.0s: subprocess started: True
6.0s: subprocess PID: 7436
6.0s: Standard Diagnostics Server connection not created yet -> try again in 100 ms
6.2s: { Magic=System.Byte[]; ClrInstanceId=2eaf57d3-57a4-4111-b9dd-b6fc312daf82; ProcessId=7436; Unused=0; }
6.2s: Starting EventPipeSession over standard connection
6.4s: Started EventPipeSession over standard connection with session id: 0x3412608
6.5s: Send ResumeRuntime Diagnostics IPC Command
6.5s: Sent: { Header={ Magic=System.Byte[]; Size=20; CommandSet=4; CommandId=1; Reserved=0 }; }
6.5s: received: { Header={ Magic=System.Byte[]; Size=24; CommandSet=255; CommandId=0; Reserved=0 }; Payload=[ 0x00 0x00 0x00 0x00 ]}
8.5s: Stopping EventPipeSession over standard connection
9.4s: Stopped EventPipeSession over standard connection
9.4s: Sending 'exit' to subprocess stdin
9.5s: ================= Subprocess Exited =================
9.5s: SubProcess exited - Exit code: 0
9.5s: ----------------------------------------
9.5s: Subprocess stdout:
1.5s: Subprocess started! Waiting for input...
3.5s: Received 'exit'. Exiting...
9.5s: Subprocess stderr:
9.5s: ----------------------------------------
10.5s: isStartupEventPresent: True
10.6s: Test passed: True
10.6s:
10.6s: ::== Running test: TEST_MultipleSessionsCanBeStartedWhilepaused
10.6s: Server name is 'DOTNET_TRACE_TESTS_xwv5m345.qzm'
10.6s: running sub-process: C:\h\w\B1050997\p\corerun.exe C:\h\w\B1050997\w\A68508EA\e\tracing\eventpipe\pauseonstart\pauseonstart\pauseonstart.dll 0
10.6s: subprocess started: True
10.6s: subprocess PID: 3760
10.6s: Standard Diagnostics Server connection not created yet -> try again in 100 ms
10.8s: Standard Diagnostics Server connection not created yet -> try again in 100 ms
11.1s: { Magic=System.Byte[]; ClrInstanceId=16260ea4-6d84-403f-b37d-01f47bf81d6c; ProcessId=3760; Unused=0; }
11.1s: Starting EventPipeSession over standard connection
11.1s: Started EventPipeSession over standard connection with session id: 0x2c923f8
11.1s: Starting EventPipeSession over standard connection
11.1s: Started EventPipeSession over standard connection with session id: 0x2c922f0
11.1s: Starting EventPipeSession over standard connection
11.1s: Started EventPipeSession over standard connection with session id: 0x2d62aa0
11.1s: Send
Stack trace
at tracing_eventpipe._pauseonstart_pauseonstart_pauseonstart_._pauseonstart_pauseonstart_pauseonstart_cmd() in tracing.eventpipe.XUnitWrapper.dll:token 0x6000016+0x284
Activity
tommcdon commentedon Jun 21, 2021
@josalem
josalem commentedon Jun 21, 2021
Here is the actual error message:
This looks to be some kind of AV in the class loader?
tommcdon commentedon Jun 21, 2021
Adding @janvorli
janvorli commentedon Jun 21, 2021
This looks like some kind of memory corruption. The crash happens in the following loop:
runtime/src/coreclr/utilcode/loaderheap.cpp
Lines 2168 to 2174 in 213600c
The
pBlockat the time of crash isNULL, but it is never supposed to beNULL, the last element in the list should havem_pNextpointing to them_FirstBlock. Them_pNextis always assigned them_pFirstBlockwhen a new block is added and them_pFirstBlockis set to point to the newly added block. So there is no legit way of setting that toNULL.Unfortunately it is not possible to see what the linked list looked like before the crash, as the loop we are crashing in destroys the blocks one by one, so the previous blocks leading to the one with the
NULLm_pNextare already gone.josalem commentedon Jun 21, 2021
Interesting. Thanks, Jan.
Looks like the Helix run has dumps for this failure, so I'll try to look when I can get access to a Windows machine.
As far as I can tell, this has only happened in this run (according to the AzDO history).
VincentBu commentedon Jun 29, 2021
Failed again in runtime-coreclr outerloop 20210628.5
Failed test:
Error message:
noahfalk commentedon Jul 30, 2021
I have this looping on my machine and maybe we'll get a repro. If not my plan is to add some extra instrumentation so we can catch the failure before it has deleted the linked list and then wait for CI to hit it again.
hoyosjs commentedon Jul 30, 2021
@noahfalk I looked over the past 30 days and found no such failing test
3 remaining items
VincentBu commentedon Aug 2, 2021
Failed again in runtime-coreclr jitstress-isas-x86 20210731.1
Failed test:
Error message:
noahfalk commentedon Aug 2, 2021
Link to dump
Link to binaries
The new failure looks similar to the previous one, pBlock = NULL unexpectedly. We got a full callstack from windbg though:
We are trying to do ExternalMethodFixup on System.Number.UInt32ToDecStr(UInt32), MethodDef=0x6001513
Loading System.Number, TypeDef 0x2000175
The instrumentation is still in PR so unfortunately other than another data point for what type is being loaded we don't have any more info on the corrupted memory.
Instrument MemTracker (#56648)
noahfalk commentedon Aug 2, 2021
I went ahead and merged #56648 so that we'll get more clues the next time this fails. Given that we got a repro recently maybe we'll get another so leaving the issue open a few days. If we don't see it soon then I'll close and wait for another hit because there is little we can do until then.
janvorli commentedon Aug 2, 2021
I've looked at the core dump. It looks like a memory corruption of the memory that the m_pFirstBlock points to. It points to something that seems to be a valid heap allocated block, but its contents doesn't make sense for the AllocMemTrackerBlock. Looking at the memory around that structure, there is an interesting pattern - it is filled with 32 bit numbers incremented by one:
The m_pFirstBlock points to 0x32694e8
I wonder if those values might ring a bell..
josalem commentedon Aug 2, 2021
Based on the beginning of that call stack:
The disable for this test shouldn't have any filter_data, but is it possible this some heap corruption being caused by the issue I fixed in #56104? It seems unlikely.
Odd to find an array of sequential numbers like that in memory. They don't look familiar. There does appear to a memory address at 0x 03269504+0xc.
hoyosjs commentedon Aug 2, 2021
Sigh. My query was wrong (odd parsing of the names of coreclr wrappers).
Query
hoyosjs commentedon Aug 2, 2021
Looks line no tiered compilation Winx86 and linux x64 are most likely to repro.
noahfalk commentedon Aug 6, 2021
I'll be out on vacation so reassigning to @josalem
josalem commentedon Aug 6, 2021
Looking at @hoyosjs's query, we haven't seen a failure of this test since 8/3 in a win-x64 R2R test leg. That seems to indicate that this isn't related to #56104, though, which went in ~10 days ago.
hoyosjs commentedon Aug 10, 2021
The existing failures are R2R infra and android installation issues. Closing until new occurrences of this resurface.