Skip to content

[browser][coreCLR] Wasm.Console.Node.Sample - undefined symbol: SystemInteropJS_GetManagedStackTrace #129229

@jakobbotsch

Description

@jakobbotsch

Seeing this on multiple PRs:

2026-06-09T19:58:42.0544708Z   Compiling generated managed-to-native sources with emcc -O2 ...
2026-06-09T19:58:42.5837769Z   [1/3] callhelpers-pinvoke.cpp -> callhelpers-pinvoke.o [took 0.52s]
2026-06-09T19:58:42.6555515Z   [2/3] callhelpers-interp-to-managed.cpp -> callhelpers-interp-to-managed.o [took 0.60s]
2026-06-09T19:58:42.7308959Z   [3/3] callhelpers-reverse.cpp -> callhelpers-reverse.o [took 0.67s]
2026-06-09T19:58:42.7432963Z   Linking CoreCLR WASM with initial memory 33554432 bytes.
2026-06-09T19:58:42.7435788Z   Linking with emcc -O2. This may take a while ...
2026-06-09T19:58:44.1657941Z wasm-ld : error : C:\Users\CLOUDT~1\AppData\Local\Temp\tmpqm0a9ffblibemscripten_js_symbols.so: undefined symbol: SystemInteropJS_GetManagedStackTrace. Required by BrowserHost_ExternalAssemblyProbe [D:\a\_work\1\s\src\mono\sample\wasm\console-node\Wasm.Console.Node.Sample.csproj]
2026-06-09T19:58:44.1659111Z wasm-ld : error : C:\Users\CLOUDT~1\AppData\Local\Temp\tmpqm0a9ffblibemscripten_js_symbols.so: undefined symbol: SystemInteropJS_CallDelegate. Required by BrowserHost_ExternalAssemblyProbe [D:\a\_work\1\s\src\mono\sample\wasm\console-node\Wasm.Console.Node.Sample.csproj]
2026-06-09T19:58:44.1660028Z wasm-ld : error : C:\Users\CLOUDT~1\AppData\Local\Temp\tmpqm0a9ffblibemscripten_js_symbols.so: undefined symbol: SystemInteropJS_CompleteTask. Required by BrowserHost_ExternalAssemblyProbe [D:\a\_work\1\s\src\mono\sample\wasm\console-node\Wasm.Console.Node.Sample.csproj]
2026-06-09T19:58:44.1660942Z wasm-ld : error : C:\Users\CLOUDT~1\AppData\Local\Temp\tmpqm0a9ffblibemscripten_js_symbols.so: undefined symbol: SystemInteropJS_ReleaseJSOwnedObjectByGCHandle. Required by BrowserHost_ExternalAssemblyProbe [D:\a\_work\1\s\src\mono\sample\wasm\console-node\Wasm.Console.Node.Sample.csproj]
2026-06-09T19:58:44.1661809Z wasm-ld : error : C:\Users\CLOUDT~1\AppData\Local\Temp\tmpqm0a9ffblibemscripten_js_symbols.so: undefined symbol: SystemInteropJS_BindAssemblyExports. Required by BrowserHost_ExternalAssemblyProbe [D:\a\_work\1\s\src\mono\sample\wasm\console-node\Wasm.Console.Node.Sample.csproj]
2026-06-09T19:58:44.1662677Z wasm-ld : error : C:\Users\CLOUDT~1\AppData\Local\Temp\tmpqm0a9ffblibemscripten_js_symbols.so: undefined symbol: SystemInteropJS_CallJSExport. Required by BrowserHost_ExternalAssemblyProbe [D:\a\_work\1\s\src\mono\sample\wasm\console-node\Wasm.Console.Node.Sample.csproj]
2026-06-09T19:58:44.2031904Z emcc : error : 'D:/a/_work/1/s/src/mono/browser/emsdk/bin\wasm-ld.exe -o D:\a\_work\1\s\artifacts\obj\mono\Wasm.Console.Node.Sample\browser.wasm.Release\wasm\for-publish\dotnet.native.wasm D:\a\_work\1\s\artifacts\obj\mono\Wasm.Console.Node.Sample\browser.wasm.Release\wasm\for-publish\callhelpers-pinvoke.o D:\a\_work\1\s\artifacts\obj\mono\Wasm.Console.Node.Sample\browser.wasm.Release\wasm\for-publish\callhelpers-reverse.o D:\a\_work\1\s\artifacts\obj\mono\Wasm.Console.Node.Sample\browser.wasm.Release\wasm\for-publish\callhelpers-interp-to-managed.o D:\a\_work\1\s\artifacts\bin\microsoft.netcore.app.runtime.browser-wasm\Release\runtimes\browser-wasm\native\libBrowserHost.a D:\a\_work\1\s\artifacts\bin\microsoft.netcore.app.runtime.browser-wasm\Release\runtimes\browser-wasm\native\libcoreclr_static.a D:\a\_work\1\s\artifacts\bin\microsoft.netcore.app.runtime.browser-wasm\Release\runtimes\browser-wasm\native\libnativeresourcestring.a D:\a\_work\1\s\artifacts\bin\microsoft.netcore.app.runtime.browser-wasm\Release\runtimes\browser-wasm\native\libgcinfo_unix_wasm.a D:\a\_work\1\s\artifacts\bin\microsoft.netcore.app.runtime.browser-wasm\Release\runtimes\browser-wasm\native\libcoreclrminipal.a D:\a\_work\1\s\artifacts\bin\microsoft.netcore.app.runtime.browser-wasm\Release\runtimes\browser-wasm\native\libcoreclrpal.a D:\a\_work\1\s\artifacts\bin\microsoft.netcore.app.runtime.browser-wasm\Release\runtimes\browser-wasm\native\libminipal.a D:\a\_work\1\s\artifacts\bin\microsoft.netcore.app.runtime.browser-wasm\Release\runtimes\browser-wasm\native\libSystem.Native.Browser.a D:\a\_work\1\s\artifacts\bin\microsoft.netcore.app.runtime.browser-wasm\Release\runtimes\browser-wasm\native\libSystem.Runtime.InteropServices.JavaScript.Native.a D:\a\_work\1\s\artifacts\bin\microsoft.netcore.app.runtime.browser-wasm\Release\runtimes\browser-wasm\native\libSystem.Native.a D:\a\_work\1\s\artifacts\bin\microsoft.netcore.app.runtime.browser-wasm\Release\runtimes\browser-wasm\native\libSystem.Globalization.Native.a D:\a\_work\1\s\artifacts\bin\microsoft.netcore.app.runtime.browser-wasm\Release\runtimes\browser-wasm\native\libicuuc.a D:\a\_work\1\s\artifacts\bin\microsoft.netcore.app.runtime.browser-wasm\Release\runtimes\browser-wasm\native\libicui18n.a D:\a\_work\1\s\artifacts\bin\microsoft.netcore.app.runtime.browser-wasm\Release\runtimes\browser-wasm\native\libicudata.a D:\a\_work\1\s\artifacts\bin\microsoft.netcore.app.runtime.browser-wasm\Release\runtimes\browser-wasm\native\libSystem.IO.Compression.Native.a D:\a\_work\1\s\artifacts\bin\microsoft.netcore.app.runtime.browser-wasm\Release\runtimes\browser-wasm\native\libz.a D:\a\_work\1\s\artifacts\bin\microsoft.netcore.app.runtime.browser-wasm\Release\runtimes\browser-wasm\native\libSystem.Native.TimeZoneData.a --export=__stack_pointer --error-limit=0 -LD:\a\_work\1\s\src\mono\browser\emsdk\emscripten\cache\sysroot\lib\wasm32-emscripten -lGL-getprocaddr -lal -lhtml5 -lbulkmemory -lstubs -lc -ldlmalloc -lcompiler_rt-wasm-sjlj -lc++-except -lc++abi-except -lunwind-except -lsockets -mllvm -combiner-global-alias-analysis=false -mllvm -wasm-enable-sjlj -mllvm -disable-lsr -mllvm -wasm-enable-eh -mllvm -exception-model=wasm C:\Users\CLOUDT~1\AppData\Local\Temp\tmpqm0a9ffblibemscripten_js_symbols.so --export=free --export=htons --export=malloc --export=sbrk --export=memalign --export=posix_memalign --export=memset --export=ntohs --export=stackAlloc --export=stackRestore --export=stackSave --export=__stack_pointer --export=stackAlloc --export=__funcs_on_exit --export=__trap --export=__wasm_call_ctors --export=BrowserHost_CreateHostContract --export=BrowserHost_InitializeDotnet --export=BrowserHost_ExecuteAssembly --export=BrowserHost_ShutdownDotnet --export=SystemInteropJS_GetManagedStackTrace --export=SystemInteropJS_CallDelegate --export=SystemInteropJS_CompleteTask --export=SystemInteropJS_ReleaseJSOwnedObjectByGCHandle --export=SystemInteropJS_BindAssemblyExports --export=SystemInteropJS_CallJSExport --export=SystemJS_ExecuteTimerCallback --export=SystemJS_ExecuteBackgroundJobCallback --export=SystemJS_ExecuteFinalizationCallback --export=SystemJS_ExecuteDiagnosticServerCallback --export=GetDotNetRuntimeContractDescriptor --export=_exit --export=stackSave --export=stackRestore --export-if-defined=__start_em_asm --export-if-defined=__stop_em_asm --export-if-defined=__start_em_lib_deps --export-if-defined=__stop_em_lib_deps --export-if-defined=__start_em_js --export-if-defined=__stop_em_js --export-if-defined=fflush --export-table --growable-table -z stack-size=2097152 --max-memory=2147483648 --initial-memory=33554432 --no-entry --table-base=1 --global-base=1024' failed (returned 1) [D:\a\_work\1\s\src\mono\sample\wasm\console-node\Wasm.Console.Node.Sample.csproj]
2026-06-09T19:58:44.2280521Z D:\a\_work\1\s\src\mono\browser\build\BrowserWasmApp.CoreCLR.targets(643,5): error MSB3073: The command ""D:\a\_work\1\s\src\mono\browser\emsdk\emscripten\emcc" -fwasm-exceptions -msimd128 "@D:\a\_work\1\s\artifacts\obj\mono\Wasm.Console.Node.Sample\browser.wasm.Release\wasm\for-publish\emcc-link.rsp"" exited with code 1. [D:\a\_work\1\s\src\mono\sample\wasm\console-node\Wasm.Console.Node.Sample.csproj]
2026-06-09T19:58:44.3561395Z 
2026-06-09T19:58:44.3629303Z Build FAILED.

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1456473&view=results
Build error leg or test failing: browser-wasm windows checked CoreCLR_ReleaseLibraries

Error Message

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

{
  "ErrorMessage": "undefined symbol: SystemInteropJS_GetManagedStackTrace",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1456473
Error message validated: [undefined symbol: SystemInteropJS_GetManagedStackTrace]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 6/10/2026 11:30:22 AM UTC

Report

Build Repository Step Name Console log Pull Request
1458751 dotnet/runtime Build product Log #129197
1459493 dotnet/runtime Build product Log #128384
1459790 dotnet/runtime Build product Log #129272
1459736 dotnet/runtime Build product Log #129292
1458800 dotnet/runtime Build product Log #129268
1459711 dotnet/runtime Build product Log #129269
1459377 dotnet/runtime Build product Log #129249
1459280 dotnet/runtime Build product Log #123138
1459652 dotnet/runtime Build product Log #129261
1459554 dotnet/runtime Build product Log #127520
1459013 dotnet/runtime Build product Log #128906
1456366 dotnet/runtime Build product Log #129183
1458627 dotnet/runtime Build product Log #126720
1459033 dotnet/runtime Build product Log #129278
1459317 dotnet/runtime Build product Log #127760
1458883 dotnet/runtime Build product Log #129141
1459205 dotnet/runtime Build product Log
1458757 dotnet/runtime Build product Log #129267
1458391 dotnet/runtime Build product Log #129248
1458966 dotnet/runtime Build product Log #128384
1458413 dotnet/runtime Build product Log #129080
1458932 dotnet/runtime Build product Log #129203
1458912 dotnet/runtime Build product Log #129272
1458859 dotnet/runtime Build product Log #129271
1458355 dotnet/runtime Build product Log #129189
1458809 dotnet/runtime Build product Log #129269
1458690 dotnet/runtime Build product Log #129201
1458667 dotnet/runtime Build product Log #129034
1458649 dotnet/runtime Build product Log #129206
1458073 dotnet/runtime Build product Log #129058
1458593 dotnet/runtime Build product Log #125436
1458561 dotnet/runtime Build product Log #129059
1458536 dotnet/runtime Build product Log #129261
1458456 dotnet/runtime Build product Log #129029
1458431 dotnet/runtime Build product Log
1458378 dotnet/runtime Build product Log #129256
1458364 dotnet/runtime Build product Log #129255
1458326 dotnet/runtime Build product Log #129202
1458308 dotnet/runtime Build product Log #129253
1458240 dotnet/runtime Build product Log #129249
1458217 dotnet/runtime Build product Log #129043
1458179 dotnet/runtime Build product Log #129205
1457163 dotnet/runtime Build product Log #129083
1458015 dotnet/runtime Build product Log #129240
1457995 dotnet/runtime Build product Log #128384
1457861 dotnet/runtime Build product Log #128365
1457851 dotnet/runtime Build product Log #128604
1457573 dotnet/runtime Build product Log #129157
1457823 dotnet/runtime Build product Log #129199
1457799 dotnet/runtime Build product Log #127520
1457784 dotnet/runtime Build product Log #129221
1457474 dotnet/runtime Build product Log #128950
1457299 dotnet/runtime Build product Log
1457539 dotnet/runtime Build product Log #129224
1457467 dotnet/runtime Build product Log #125436
1457433 dotnet/runtime Build product Log #129043
1457382 dotnet/runtime Build product Log #128700
1457379 dotnet/runtime Build product Log #99200
1457345 dotnet/runtime Build product Log #128479
1457321 dotnet/runtime Build product Log #129221
1456473 dotnet/runtime Build product Log #129157

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
36 61 61

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions