From 0a396a77c4c5d4cb10fb052dde20d4cccb22e40d Mon Sep 17 00:00:00 2001 From: Steve Pfister Date: Fri, 6 Feb 2026 15:07:30 -0500 Subject: [PATCH 1/3] Skip PROCAbortInitialize on WASM Mini dumps are not supported on WASM - the createdump binary doesn't exist and the browser environment doesn't support crash dumps. Setting DOTNET_DbgEnableMiniDump=1 was causing runtime init to fail because PROCAbortInitialize depends on g_szCoreCLRPath which is never set on WASM (LOADInitializeCoreCLRModule is already skipped). Fixes #124088 --- src/coreclr/pal/src/init/pal.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/coreclr/pal/src/init/pal.cpp b/src/coreclr/pal/src/init/pal.cpp index b14b31c96007f1..6912a3f1d751d3 100644 --- a/src/coreclr/pal/src/init/pal.cpp +++ b/src/coreclr/pal/src/init/pal.cpp @@ -695,11 +695,13 @@ PAL_InitializeCoreCLR(const char *szExePath, BOOL runningInExe) } #endif // !TARGET_WASM +#ifndef TARGET_WASM if (!PROCAbortInitialize()) { printf("PROCAbortInitialize FAILED %d (%s)\n", errno, strerror(errno)); return ERROR_PALINIT_PROCABORT_INITIALIZE; } +#endif // !TARGET_WASM return ERROR_SUCCESS; } From 5ae0962c77d60645c72837835ab36b881c5cf99a Mon Sep 17 00:00:00 2001 From: Steve Pfister Date: Fri, 6 Feb 2026 15:33:54 -0500 Subject: [PATCH 2/3] Update src/coreclr/pal/src/init/pal.cpp Co-authored-by: Radek Doulik --- src/coreclr/pal/src/init/pal.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/coreclr/pal/src/init/pal.cpp b/src/coreclr/pal/src/init/pal.cpp index 6912a3f1d751d3..8e77398b6a0517 100644 --- a/src/coreclr/pal/src/init/pal.cpp +++ b/src/coreclr/pal/src/init/pal.cpp @@ -693,9 +693,6 @@ PAL_InitializeCoreCLR(const char *szExePath, BOOL runningInExe) { return ERROR_DLL_INIT_FAILED; } -#endif // !TARGET_WASM - -#ifndef TARGET_WASM if (!PROCAbortInitialize()) { printf("PROCAbortInitialize FAILED %d (%s)\n", errno, strerror(errno)); From e339c36094f54ddcc4d97d4da72b6e4be0e66776 Mon Sep 17 00:00:00 2001 From: Steve Pfister Date: Fri, 6 Feb 2026 15:33:59 -0500 Subject: [PATCH 3/3] Update src/coreclr/pal/src/init/pal.cpp Co-authored-by: Radek Doulik --- src/coreclr/pal/src/init/pal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/pal/src/init/pal.cpp b/src/coreclr/pal/src/init/pal.cpp index 8e77398b6a0517..bc7e61d104e15e 100644 --- a/src/coreclr/pal/src/init/pal.cpp +++ b/src/coreclr/pal/src/init/pal.cpp @@ -685,7 +685,7 @@ PAL_InitializeCoreCLR(const char *szExePath, BOOL runningInExe) return ERROR_SUCCESS; } -#ifndef TARGET_WASM // we don't use shared libraries on wasm +#ifndef TARGET_WASM // we don't use shared libraries on wasm and don't support dbg mini dump // Now that the PAL is initialized it's safe to call the initialization methods for the code that used to // be dynamically loaded libraries but is now statically linked into CoreCLR just like the PAL, i.e. the // PAL RT and mscorwks.