dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.91k stars 4.63k forks source link

Test failure: JIT/opt/Devirtualization/Comparer_get_Default/Comparer_get_Default.dll #104927

Open JulieLeeMSFT opened 1 month ago

JulieLeeMSFT commented 1 month ago

Pipeline: runtime-coreclr outerloop/20240715.4

Failed test: R2R-CG2 windows arm64 Checked no_tiered_compilation @ Windows.11.Arm64.Open R2R-CG2 windows arm64 Checked @ Windows.11.Arm64.Open

JIT.opt Work Item

Log

20:21:42.080 Running test: JIT/opt/Devirtualization/Comparer_get_Default/Comparer_get_Default.dll

Assert failure(PID 3480 [0x00000d98], Thread: 5012 [0x1394]): Verify_TypeLayout 'DoubleEnum' failed to verify type layout

CORECLR! LoadDynamicInfoEntry + 0xF2C (0x00007ff8`df46c8cc)
CORECLR! Module::FixupNativeEntry + 0x64 (0x00007ff8`df3ec224)
CORECLR! Module::FixupDelayListAux<Module *,int (__cdecl Module::*)(READYTORUN_IMPORT_SECTION *,unsigned __int64,unsigned __int64 *,int)> + 0x224 (0x00007ff8`df52b33c)
CORECLR! ReadyToRunInfo::GetEntryPoint + 0x308 (0x00007ff8`df52d548)
CORECLR! MethodDesc::GetPrecompiledR2RCode + 0x44 (0x00007ff8`df4ce8cc)
CORECLR! MethodDesc::GetPrecompiledCode + 0x2C (0x00007ff8`df4ce5a4)
CORECLR! MethodDesc::PrepareILBasedCode + 0x370 (0x00007ff8`df4d0840)
CORECLR! MethodDesc::PrepareCode + 0x54 (0x00007ff8`df4d04c4)
CORECLR! CodeVersionManager::PublishVersionableCodeIfNecessary + 0x3EC (0x00007ff8`df40ff84)
CORECLR! MethodDesc::DoPrestub + 0x384 (0x00007ff8`df4cbc24)
    File: D:\a\_work\1\s\src\coreclr\vm\jitinterface.cpp:13749
    Image: C:\h\w\AC8309DB\p\corerun.exe

Type DoubleEnum: type is HFA but READYTORUN_LAYOUT_HFA flag is not set
App Exit Code: -1073740286
Expected: 100
Actual: -1073740286
END EXECUTION - FAILED

Known Issue Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "Verify_TypeLayout 'DoubleEnum' failed to verify type layout",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0
dotnet-policy-service[bot] commented 1 month ago

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

am11 commented 1 month ago

@JulieLeeMSFT, please update the Known Issue Error Message section with "ErrorMessage": "type is HFA but READYTORUN_LAYOUT_HFA flag is not set" so it can find the matches.

EgorBo commented 1 month ago

Looks like it's only failing on win-arm64 in R2R pipelines. Unfortunately, it fails only in run-time so I need to find a win-arm64 machine to repro.. but looks like it was introduced it https://github.com/dotnet/runtime/pull/104411

I guess it's not a critical bug since normally it's not possible to define enums with float/double backing types, it's only possible in raw IL.

am11 commented 1 month ago

Maybe we can disable the test on win-arm64 against this issue?

EgorBo commented 1 month ago

Yeah, let me disable it for now until I have a moment to fix it

EgorBo commented 1 month ago

https://github.com/dotnet/runtime/pull/105089