Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion failed 'markedLastLoop && markedCurrLoop' #107518

Open
BruceForstall opened this issue Sep 9, 2024 · 8 comments
Open

Assertion failed 'markedLastLoop && markedCurrLoop' #107518

BruceForstall opened this issue Sep 9, 2024 · 8 comments
Assignees
Labels
arch-x86 area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI blocking-clean-ci-optional Blocking optional rolling runs JitStress CLR JIT issues involving JIT internal stress modes os-windows
Milestone

Comments

@BruceForstall
Copy link
Member

pipeline: runtime-coreclr jitstress-random
job: coreclr windows x86 Checked jitstress_random_1
test: managed/Compilation/Compilation/Compilation.cmd

set DOTNET_TieredCompilation=0
set DOTNET_JitStress=2be
C:\h\w\B8160A1E\p\watchdog.exe" 119 "C:\h\w\B8160A1E\p\corerun.exe" -p "System.Reflection.Metadata.MetadataUpdater.IsSupported=false" -p "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true"  Managed.dll 
19:49:13.347 Running test: managed/Compilation/Compilation/Compilation.cmd

Assert failure(PID 5788 [0x0000169c], Thread: 5524 [0x1594]): Assertion failed 'markedLastLoop && markedCurrLoop' in 'Microsoft.CodeAnalysis.CSharp.Symbols.SourceMemberContainerTypeSymbol:ForceComplete(Microsoft.CodeAnalysis.SourceLocation,System.Threading.CancellationToken):this' during 'Generate code' (IL size 877; hash 0xba50a687; FullOpts)

    File: D:\a\_work\1\s\src\coreclr\jit\emit.cpp:6067
    Image: C:\h\w\B8160A1E\p\corerun.exe

https://dev.azure.com/dnceng-public/public/_build/results?buildId=801287&view=ms.vss-test-web.build-test-results-tab

@dotnet/jit-contrib

@BruceForstall BruceForstall added JitStress CLR JIT issues involving JIT internal stress modes area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI labels Sep 9, 2024
@BruceForstall BruceForstall added this to the 9.0.0 milestone Sep 9, 2024
Copy link
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

@JulieLeeMSFT
Copy link
Member

@BruceForstall PTAL.

@amanasifkhalid
Copy link
Member

@BruceForstall #107371 or #107403 might have exposed this

@BruceForstall
Copy link
Member Author

@BruceForstall #107371 or #107403 might have exposed this

I can repro the failure both before and after these PRs. (I tried 42f3dce, just before the first of those)

@BruceForstall
Copy link
Member Author

I verified this repros on .NET 9.

@amanasifkhalid
Copy link
Member

@BruceForstall I'm not able to repro this using a mainline build or the build from the failing CI run. I'm not sure if this is CPU-sensitive or not, but out of curiosity, what hardware did you repro this on?

@BruceForstall
Copy link
Member Author

@amanasifkhalid Here's my repro:

set DOTNET_TieredCompilation=0
set DOTNET_JitStress=2be
set CORE_ROOT=c:\gh\runtime\artifacts\tests\coreclr\windows.x86.Checked\Tests\Core_Root
c:\gh\runtime\artifacts\tests\coreclr\windows.x86.Checked\Tests\Core_Root\corerun.exe C:\gh\runtime\artifacts\tests\coreclr\windows.x64.Checked\managed\Compilation\Compilation\Compilation.dll

(I only build the tests for x64 Checked, but that shouldn't matter.)

It does NOT fail if you use windows.x86.Debug. I'm testing on an Intel DevBox (AVX-512 capable).

@BruceForstall
Copy link
Member Author

This failure only exists with JitOptRepeat (which is enabled by the stress mode on this test). Setting set DOTNET_JitEnableOptRepeat=0 resolves the failure.

Since OptRepeat is not enabled in .NET 9, this is a .NET 10 issue.

@BruceForstall BruceForstall modified the milestones: 9.0.0, 10.0.0 Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-x86 area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI blocking-clean-ci-optional Blocking optional rolling runs JitStress CLR JIT issues involving JIT internal stress modes os-windows
Projects
None yet
Development

No branches or pull requests

3 participants