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
JIT/Performance/CodeQuality/Serialization/Deserialize/Deserialize.dll fails under gcstress on linux-arm64 #88618
changed the title [-]jit-cfg pipline gc stress failure on linux x64[/-][+]JIT/Performance/CodeQuality/Serialization/Deserialize/Deserialize.dll fails under gcstress on linux-arm64[/+]on Jul 18, 2023
The pattern ("ErrorPattern": "Running test: JIT/Performance/CodeQuality/Serialization/Deserialize/Deserialize.dll.{1,2}\\[createdump\\]") isn't working. Attempting to guess intent, I think the .{1,2} is trying to match \n or \r\n so that it matches on Windows or Linux? ErrorPattern appears to be single-line, and ErrorMessage isn't regex, so I'm not sure how to do this. However, in this case, it appears to be Linux-only, so perhaps \n will suffice (not . since single-line regex). I'll see if I can get a \n past the escaping.
The pattern ("ErrorPattern": "Running test: JIT/Performance/CodeQuality/Serialization/Deserialize/Deserialize.dll.{1,2}\\[createdump\\]") isn't working. Attempting to guess intent, I think the .{1,2} is trying to match \n or \r\n so that it matches on Windows or Linux? ErrorPattern appears to be single-line, and ErrorMessage isn't regex, so I'm not sure how to do this. However, in this case, it appears to be Linux-only, so perhaps \n will suffice (not . since single-line regex). I'll see if I can get a \n past the escaping.
It looks like JIT/Performance/CodeQuality/Serialization/Serialize is failing in the same way now that we get past the Deserialize version, so this is still blocking.
We read TPIDR_EL0 into x0, but x0 is marked as containing a GC pointer here and there is no update in GC reporting to unmark that.
@jakobbotsch - tpidr_el0 is a system register containing current thread local statics pointer and should not be marked as GC pointer, so that is the problem. Perhaps, when I added mrs instruction, I didn't set the right flags to make sure that destination is not a GCref. But I don't see anything like ; gcrRegs +[x0] after mrs instruction. So wondering how you know that the code is thinking that x0 is holding a GC ref?
If you see the JITDump, it is marked as long:
Generating: N015 ( 1, 2) [000018] Hc--------- t18 = CNS_INT(h) long 0 tls REG NA
/--* t18 long
Generating: N017 ( 5, 5) [000019] DA--------- * STORE_LCL_VAR long V04 rat1 x14 REG x14
IN0006: mrs x14, tpidr_el0
V04 in reg x14 is becoming live [000019]
Live regs: 80000 {x19} => 84000 {x14 x19}
Live vars after [000019]: {V02} => {V02 V04}
Generating: N019 ( 3, 2) [000022] ----------- t22 = LCL_VAR long V04 rat1 x14 REG x14
/--* t22 long
Generating: N021 ( 5, 5) [000023] -c--------- t23 = * LEA(b+248) long REG NA
/--* t23 long
Generating: N023 ( 6, 4) [000024] #---------- t24 = * IND int REG x15
IN0007: ldr w15, [x14, #0xF8]
Also remind me, in the dump >>> means the GC was triggered at that instruction (ldr) or the previous instruction (mrs)?
(if the call didn't return a GC ref we would expect x0 to be unmarked here).
Also remind me, in the dump >>> means the GC was triggered at that instruction (ldr) or the previous instruction (mrs)?
The GC was triggered at the ldr instruction. The >>> is displayed because I did clru with that address -- I extracted the address from the current GC related function that is on top of the stack with the crash happens.
ghost added
in-prThere is an active PR which will close this issue when it is merged
Activity
JulieLeeMSFT commentedon Jul 14, 2023
@jakobbotsch, PTAL.
[-]jit-cfg pipline gc stress failure on linux x64[/-][+]JIT/Performance/CodeQuality/Serialization/Deserialize/Deserialize.dll fails under gcstress on linux-arm64[/+]markples commentedon Jul 18, 2023
The pattern (
"ErrorPattern": "Running test: JIT/Performance/CodeQuality/Serialization/Deserialize/Deserialize.dll.{1,2}\\[createdump\\]") isn't working. Attempting to guess intent, I think the.{1,2}is trying to match\nor\r\nso that it matches on Windows or Linux? ErrorPattern appears to be single-line, and ErrorMessage isn't regex, so I'm not sure how to do this. However, in this case, it appears to be Linux-only, so perhaps\nwill suffice (not.since single-line regex). I'll see if I can get a\npast the escaping.jakobbotsch commentedon Jul 18, 2023
Right. I first tried with
\s+, but that also didn't work. I'm not sure why, since I tested the regex according to the instructions at https://github.com/dotnet/runtime/blob/main/docs/workflow/ci/failure-analysis.md#what-to-do-if-you-determine-the-failure-is-unrelated and it worked..{1, 2}was my second attempt.6 remaining items
jakobbotsch commentedon Jul 18, 2023
JitDisasm:
@kunalspathak Can you please take a look?
jakobbotsch commentedon Jul 18, 2023
Test disabled in #89072
jakobbotsch commentedon Jul 21, 2023
It looks like JIT/Performance/CodeQuality/Serialization/Serialize is failing in the same way now that we get past the Deserialize version, so this is still blocking.
kunalspathak commentedon Jul 28, 2023
@jakobbotsch - tpidr_el0 is a system register containing current thread local statics pointer and should not be marked as GC pointer, so that is the problem. Perhaps, when I added
mrsinstruction, I didn't set the right flags to make sure that destination is not a GCref. But I don't see anything like; gcrRegs +[x0]aftermrsinstruction. So wondering how you know that the code is thinking thatx0is holding a GC ref?If you see the JITDump, it is marked as
long:Also remind me, in the dump
>>>means the GC was triggered at that instruction (ldr) or the previous instruction (mrs)?markples commentedon Jul 28, 2023
Does the
+[x0]carry over from the previous definition ofx0? (up until the -next- definition which has a-[x0])jakobbotsch commentedon Jul 28, 2023
Right, it's what Mark said -- you can see it was previously marked as holding a GC ref here:
GC reporting is not changed as a result of the call since the call returns a GC ref in
x0:(if the call didn't return a GC ref we would expect
x0to be unmarked here).The GC was triggered at the
ldrinstruction. The>>>is displayed because I didclruwith that address -- I extracted the address from the current GC related function that is on top of the stack with the crash happens.