dotnet / dotnet/runtime

[WASI][CoreCLR] wasm trap: uninitialized element

Open
#133,240 2 comments 0 reactions 1 assignee Claimed by @pavelsavara View on GitHub
arch-wasm area-CodeGen-coreclr Known Build Error os-wasi
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

## Build Information
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1582547
Build error leg or test failing: WASI CoreCLR

## Error Message

[Log](https://helixr1107v0xdcypoyl9e7f.blob.core.windows.net/dotnet-runtime-refs-pull-133000-merge-059a338c5daf4afe8f/JIT.Generics/1/console.6a754d55.log?helixlogtype=result)
```
wasmtime run -W exceptions=y -S http --dir /root/helix/work/workitem/e/JIT/Generics/JIT.Generics::/ --dir /root/helix/work/correlation::/core --env CORE_ROOT=/core --env DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true --env DOTNET_WASI_PRINT_EXIT_CODE=1 /root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true JIT.Generics.dll ''
Error: failed to run main module `/root/helix/work/correlation/corerun`

Caused by:
0: failed to invoke `run` function
1: error while executing at wasm backtrace:
0: 0x1c918e - corerun!InvokeUnmanagedCalli(unsigned long, void (*)(unsigned long, signed char*, signed char*), signed char*, signed char*)
1: 0x16fee9 - corerun!InvokeUnmanagedCalliWithTransition(unsigned long, void (*)(unsigned long, signed char*, signed char*), signed char*, InterpMethodContextFrame*, signed char*, signed char*)
2: 0x176119 - corerun!InterpExecMethod(InterpreterFrame*, InterpMethodContextFrame*, InterpThreadContext*, ExceptionClauseArgs*)
3: 0x1c6070 - corerun!ExecuteInterpretedMethod
4: 0x1c6b05 - corerun!ExecuteInterpretedMethodFromUnmanaged
5: 0x2fc212 - corerun!Call_System_Private_CoreLib_System_Environment_CallEntryPoint_I32_I32_I32_I32_I32_RetVoid(void*, void*, void*, int, void*)
6: 0x2e201f - corerun!void UnmanagedCallersOnlyCaller::InvokeThrowing(long, PtrArray**, int*, bool)
7: 0x2e1dec - corerun!RunMain(MethodDesc*, int*, PtrArray**, bool)
8: 0x2e2396 - corerun!Assembly::ExecuteMainMethod(PtrArray**, bool)
9: 0x1ab02f - corerun!CorHost2::ExecuteAssembly(unsigned int, char16_t const*, int, char16_t const**, unsigned int*)
10: 0x2fa964 - corerun!coreclr_execute_assembly
11: 0x5487d - corerun!main
12: 0xce6a - corerun!__main_void
13: 0xcd63 - corerun!_start
note: using the `WASMTIME_BACKTRACE_DETAILS=1` environment variable may show more debugging information
2: wasm trap: uninitialized element
```

```json
{
"ErrorMessage": "uninitialized element",
"BuildRetry": false,
"ExcludeConsoleLog": false
}
```

### Known issue validation
**Build: :mag_right:** https://dev.azure.com/dnceng-public/public/_build/results?buildId=1582547
**Error message validated:** `[uninitialized element`]
**Result validation:** :x: Known issue did not match with the provided build.
**Validation performed at:** 9/4/2026 3:14:17 PM UTC

### Report
#### Summary
|24-Hour Hit Count|7-Day Hit Count|1-Month Count|
|---|---|---|
|0|0|0|

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.