Repository navigation
[wasm][debugger] KeepNativeSymbols=true breaks SteppingTests.SkipWasmFunctionsAccordinglyJustMyCode #86387
Copy link
Copy link
Closed
Labels
Milestone
Description
Activity
- addedarch-wasmWebAssembly architectureWebAssembly architecture
on May 17, 2023 - ghost addeduntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
on May 17, 2023 This is probably related to given how we look for stack frames in
MonoProxy.SendCallStack:runtime/src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs
Lines 1119 to 1133 in 7692f98
foreach (JObject frame in orig_callframes) { string function_name = frame["functionName"]?.Value<string>(); string url = frame["url"]?.Value<string>(); var isWasmExpressionStack = frame["scopeChain"]?[0]?["type"]?.Value<string>()?.Equals("wasm-expression-stack") == true; if (!(function_name.StartsWith("wasm-function", StringComparison.Ordinal) || url.StartsWith("wasm://", StringComparison.Ordinal) || url.EndsWith(".wasm", StringComparison.Ordinal) || JustMyCode && isWasmExpressionStack || function_name.StartsWith("_mono_wasm_fire_debugger_agent_message", StringComparison.Ordinal) || function_name.StartsWith("mono_wasm_fire_debugger_agent_message", StringComparison.Ordinal))) { callFrames.Add(frame); } } With
KeepNativeSymbolsit's possible that some of thosewasm-functionsymbols will have real names instead- ghost removeduntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
on May 24, 2023 Why keeping the symbols fail and not keeping them works ?Oh wasm/native symbols will not have
wasm-functionprefix on it.cc @thaystg
This test is expected to not work in debug runtime builds, only in release.
- ghost addedin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is merged
on Aug 14, 2023 - ghost removedin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is merged
on Aug 14, 2023 - ghost locked as resolved and limited conversation to collaborators
on Sep 14, 2023
If you build a runtime with
-p:KeepNativeSymbols=trueand then run the debugger testsuite,SteppingTests.SkipWasmFunctionsAccordinglyJustMyCodewill fail.Note that we don't ship
KeepNativeSymbols, so this is purely something that is a papercut when working on dotnet/runtime itself.Repro steps:
then