Skip to content

Assert failure: !"OBJECTREF being accessed while thread is in preemptive GC mode." #131925

Description

@VincentBu

Failed in: runtime-coreclr outerloop 20260805.6

Failed tests:

coreclr browser wasm Checked @ (Ubuntu.2604.Amd64.Open)AzureLinux.3.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-26.04-helix-webassembly-amd64@sha256:0be8725e08b6d0f58ec0290f3f3b70c449123e78b2b33853e9049df84b912fa8
- Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd
coreclr browser wasm Checked no_tiered_compilation @ (Ubuntu.2604.Amd64.Open)AzureLinux.3.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-26.04-helix-webassembly-amd64@sha256:0be8725e08b6d0f58ec0290f3f3b70c449123e78b2b33853e9049df84b912fa8
- Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd

Error message:

Out-of-process wrapper failed with exit code 1.
BEGIN EXECUTION
Running with node
CORE_ROOT: /root/helix/work/correlation
ExePath: /root/helix/work/workitem/e/Loader/ContextualReflection/ContextualReflection/ContextualReflection.dll
CLRTestExecutionArguments:
node version: v23.11.1
Timeout in ms: 900000
Running: node --experimental-wasm-exnref --stack-size=8192 /root/helix/work/correlation/corerun.js -c /root/helix/work/correlation -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true /root/helix/work/workitem/e/Loader/ContextualReflection/ContextualReflection/ContextualReflection.dll
ASSERT FAILED
	Expression: !"OBJECTREF being accessed while thread is in preemptive GC mode."
	Location:   /__w/1/s/src/coreclr/vm/object.cpp:514
	Function:   Validate
	Process:    42
Frame (InterpreterFrame): 0x4ff358
   0) Xunit.Assert::GetEqualityComparer, IR_0007
   1) Xunit.Assert::Equal, IR_0010
   2) ContextualReflectionTest.TestResolve::Assert, IR_002e
   3) ContextualReflectionTest.TestResolve::Assert, IR_001c
   4) ContextualReflectionTest.Program::TestResolveMissingAssembly, IR_002f
   5) ContextualReflectionTest.Program::TestAssemblyLoad, IR_0031
   6) ContextualReflectionTest.Program::TestAssemblyLoad, IR_00b8
   7) ContextualReflectionTest.Program::RunTests, IR_0011
   8) ContextualReflectionTest.Program::RunTests, IR_004e
   9) ContextualReflectionTest.Program::TestEntryPoint, IR_0013
  10) __GeneratedMainWrapper::Main, IR_0020
node:internal/process/promises:392
      new UnhandledPromiseRejection(reason);
      ^

UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "Debugger not attached".
    at throwUnhandledRejectionsMode (node:internal/process/promises:392:7)
    at processPromiseRejections (node:internal/process/promises:475:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:106:32) {
  code: 'ERR_UNHANDLED_REJECTION'
}

Node.js v23.11.1
Kill watchdog with PID 674
Expected: 100
Actual: 1
END EXECUTION - FAILED

Stack trace:

   at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 135
   at Xunit.Assert.True(Boolean condition, String userMessage) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 117
   at TestLibrary.OutOfProcessTest.ImportPrecomputedResult(String assemblyPath, String testPathPrefix) in /__w/1/s/src/tests/Common/CoreCLRTestLibrary/OutOfProcessTest.cs:line 285
   at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String assemblyPath, String testPathPrefix) in /__w/1/s/src/tests/Common/CoreCLRTestLibrary/OutOfProcessTest.cs:line 84
   at Program.<<Main>$>g__TestExecutor389|0_390(StreamWriter tempLogSw, StreamWriter statsCsvSw, StreamWriter outOfProcessPlanWriter, <>c__DisplayClass0_0&)

Known Issue Error Message

DO NOT USE JSON BELOW IF THIS IS A BUILD BREAK otherwise build analysis will allow pull requests to merge that break the build worse. For a build break, do not use this issue form. Make a regular new issue.

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

{
  "ErrorMessage": [
    "Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd",
    "OBJECTREF being accessed while thread is in preemptive GC mode."
  ],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1541935
Error message validated: [Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd OBJECTREF being accessed while thread is in preemptive GC mode.]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 8/7/2026 1:59:14 PM UTC

Report

Build Repository Test Pull Request
1557864 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #130505
1554021 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132328
1561738 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd
1560768 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd
1559856 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132537
1559732 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132438
1559729 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd
1559718 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132532
1559573 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd
1558495 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132425
1559505 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132438
1559318 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd
1558839 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132469
1558704 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd
1558613 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132380
1558524 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132438
1558517 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd
1558471 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132040
1558444 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #131552
1558408 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #131174
1558318 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132487
1558162 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #131654
1558161 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #131655
1555909 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #130870
1558105 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132448
1558031 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132438
1558064 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #131778
1558027 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd
1558019 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd
1557949 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132482
1557907 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132425
1557792 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132424
1557817 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132339
1557714 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #131654
1557716 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #131655
1557691 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #130277
1557643 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132450
1557638 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #125938
1557627 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132474
1557513 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #131877
1557399 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132470
1557441 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132469
1557386 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132418
1557310 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132339
1557300 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132445
1557217 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #131866
1557111 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132418
1557064 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132260
1557009 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132416
1556928 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #131745
1556918 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #131746
1556909 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #130023
1556820 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132445
1556780 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd
1556653 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132437
1556617 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132450
1556601 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132448
1556596 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132362
1556562 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132380
1556590 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132167
1556533 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132435
1556523 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132445
1556516 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132421
1556497 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132425
1556475 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132167
1556460 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132245
1556453 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132423
1556449 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132430
1556434 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132437
1556424 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132439
1556409 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd
1556388 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132435
1556385 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132436
1556379 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #131552
1556347 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132433
1556319 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132143
1556317 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132424
1556321 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #131778
1556342 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132322
1556316 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132428
1556249 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132425
1555918 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132421
1556214 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #131655
1556212 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #131654
1556197 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #131552
1556037 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132424
1556026 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #131686
1556178 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd
1555935 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132388
1556141 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132322
1556131 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132408
1556113 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #131778
1556108 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #130505
1555900 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132416
1555960 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132409
1555842 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #131552
1555892 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132418
1555838 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132315
1555811 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132414
1555798 dotnet/runtime Loader/ContextualReflection/ContextualReflection/ContextualReflection.cmd #132413
Displaying 100 of 276 results

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 276

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Known Build ErrorUse this to report build issues in the .NET Helix tabarch-wasmWebAssembly architecturearea-VM-coreclrblocking-outerloopBlocking the 'runtime-coreclr outerloop' and 'runtime-libraries-coreclr outerloop' runs

Type

No type

Projects

  • Status
    No status

Relationships

None yet

Development

No branches or pull requests

Issue actions