Repository navigation
Closed
Labels
Known Build ErrorUse this to report build issues in the .NET Helix tabPriority:1Work that is critical for the release, but we could probably ship withoutarea-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'
Milestone
Description
Build Information
Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=693513
Build error leg or test failing: System.Text.RegularExpressions.Tests.RegexPcre2Tests.IsMatchTests
Pull request: #102903
Error Message
Fill the error message using step by step known issues guidance.
{
"ErrorMessage": [ "System.AccessViolationException", "Microsoft.CodeAnalysis.CSharp.CSharpCompilation.CompileMethods" ],
"BuildRetry": false,
"ExcludeConsoleLog": false
}Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=693513
Error message validated: [System.AccessViolationException Microsoft.CodeAnalysis.CSharp.CSharpCompilation.CompileMethods]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 5/31/2024 5:13:05 PM UTC
Report
| Build | Definition | Test | Pull Request |
|---|---|---|---|
| 713808 | dotnet/runtime | System.Text.RegularExpressions.Tests.WorkItemExecution | |
| 713038 | dotnet/runtime | System.Text.RegularExpressions.Tests.WorkItemExecution | #103706 |
| 709265 | dotnet/runtime | System.Text.RegularExpressions.Tests.WorkItemExecution | |
| 705911 | dotnet/runtime | System.Text.RegularExpressions.Tests.WorkItemExecution | #103381 |
| 693513 | dotnet/runtime | System.Text.RegularExpressions.Tests.RegexPcre2Tests.IsMatchTests | #102903 |
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 0 | 1 | 5 |
Metadata
Metadata
Assignees
Labels
Known Build ErrorUse this to report build issues in the .NET Helix tabPriority:1Work that is critical for the release, but we could probably ship withoutarea-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
dotnet-policy-service commentedon May 31, 2024
Tagging subscribers to this area: @dotnet/area-system-text-regularexpressions
See info in area-owners.md if you want to be subscribed.
dotnet-policy-service commentedon May 31, 2024
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.
[-]RegexPcre2Tests.IsMatchTests failing with AV[/-][+]Source generator tests failing with AV in Roslyn[/+]jkotas commentedon May 31, 2024
Stacktrace of the failure:
jkotas commentedon May 31, 2024
The CI failure is missing crash dump. It is not actionable. cc @JulieLeeMSFT
JulieLeeMSFT commentedon Jun 3, 2024
@jkotas, Juan looked into it. AccessViolationException shows that xunit is suppressing the exception making the process not crash. So, we won't get a crash dump in this case.
17 remaining items
VSadov commentedon Jun 23, 2024
The suspicious part is that we can have
CORINFO_HELP_BULK_WRITEBARRIERin the middle of argument set up. Where before it would be a sequence of arg copies, we now have a method call to a managed helper.Perhaps this is another variant of #102577 - we have replaced uninterrupted sequence with one that has a call in it and something is not ready for that.
Two questions:
jkotas commentedon Jun 23, 2024
cc @EgorBo
VSadov commentedon Jun 23, 2024
Without
TryLowerBlockStoreAsGcBulkCopyCallthe codegen equivalent looks roughly as compact as above.The issue of suspension starvation is mitigated for stack pushes by the fact that stacks sizes are in order of megabytes and that is very limiting to how long it could take to make these copies.
If we ever want to support much larger stacks, methods that push a lot could be made fully interruptible and use the helper. I think that would work, since fully interruptible code tracks argument pushes.
EgorBo commentedon Jun 24, 2024
Thanks! I'll take a look, presumably it's not this helper specific as there are other managed helpers
jakobbotsch commentedon Jun 24, 2024
The fundamental problem here is most likely #103300 (#103300 (comment) is basically this issue I'd expect). Can you check if #103301 fixes the issue?
VSadov commentedon Jun 24, 2024
@jakobbotsch I think #103301 should help. I will check.
VSadov commentedon Jun 24, 2024
#103301 puts
CORINFO_HELP_BULK_WRITEBARRIERbefore all putargs and fixes the issue.I have run the repro in a loop, to be sure. It has run through more than enough iterations to typically see failures, but so far it keeps running.
jakobbotsch commentedon Jun 24, 2024
Thanks for confirming. I can grab this one.
VSadov commentedon Jun 24, 2024
@EgorBo I still think that if we can know statically that the dest is on stack, we might not want to involve
CORINFO_HELP_BULK_WRITEBARRIER.We use the
number of object fields > 4as a threshold to use the helper. I assume that is the number of write barriers that we do not need to emit. But when the target is on stack, the object fields do not need to do barriers, so technically the stack-targeted copy would not meet the optimization threshold.JIT: Check for call interference when placing PUTARG nodes (dotnet#10…