Skip to content

[wasm] Tests on CI: Full version of libmono-component-diagnostics_tracing-static.a is linked instead of stub #61294

Open
@pavelsavara

Description

@pavelsavara

Description

I'm improving wasm app startup in PR.
I'm in-tree linking with <WasmBuildNative>true</WasmBuildNative>

libmono-component-diagnostics_tracing-static.a
is included in link files via

<_WasmNativeFileForLinking Include="$(MicrosoftNetCoreAppRuntimePackRidNativeDir)*.a" Exclude="@(_MonoRuntimeComponentDontLink->'$(MicrosoftNetCoreAppRuntimePackRidNativeDir)%(Identity)')" />

because _MonoRuntimeComponentDontLink is empty and libmono-component-diagnostics_tracing-static.a on the path.

 ==== JS stack trace =========================================

  Security context: 0x015408210491 <JSObject>#0#
      0: builtin exit frame: trace(this=0x015408205ac9 <console map = 0000015408242911>#1#,0x015408205ac9 <console map = 0000015408242911>#1#,0x0154084d2ec9 <String[25]: c"ep_rt_mono_component_init">)

      1: mono_wasm_trace_logger [00000154083CEE79] [C:/Dev/runtime/src/mono/sample/wasm/console-v8/bin/Debug/AppBundle/dotnet.js:722] [bytecode=00000154083A9AF5 offset=135](this=0x0154083c6259 <Object map = 0000015408249121>#2#,0,34436,9256920,4,0)
      2: _mono_wasm_trace_logger(aka _mono_wasm_trace_logger) [00000154083C31B9] [C:/Dev/runtime/src/mono/sample/wasm/console-v8/bin/Debug/AppBundle/dotnet.js:10669] [bytecode=0000015408388C25 offset=27](this=0x0154080423b5 <undefined>)
      3: WasmToJsFrame [pc: 0000018BB10064F4]
      4: WASM [wasm://wasm/02b2b5ba], function #17611 ('wasm_trace_logger'), pc=0000018BB1086DBA (+0x3a), pos=3095058 (+11)
      5: WASM [wasm://wasm/02b2b5ba], function #5726 ('eglib_log_adapter'), pc=0000018BB0C22ED7 (+0x157), pos=1432682 (+100)
      6: WASM [wasm://wasm/02b2b5ba], function #16824 ('monoeg_g_logstr'), pc=0000018BB072A90C (+0x12c), pos=2972753 (+83)
      7: WASM [wasm://wasm/02b2b5ba], function #16822 ('monoeg_g_logv_nofree'), pc=0000018BB072ABAF (+0x14f), pos=2972580 (+127)
      8: WASM [wasm://wasm/02b2b5ba], function #16826 ('monoeg_assertion_message'), pc=0000018BB072A630 (+0x70), pos=2972882 (+44)
      9: WASM [wasm://wasm/02b2b5ba], function #1770 ('mono_component_event_pipe_init'), pc=0000018BB0E7E50E (+0x2e), pos=696511 (+7)
     10: WASM [wasm://wasm/02b2b5ba], function #2859 ('mono_components_init'), pc=0000018BB0D8783D (+0xdd), pos=835888 (+52)
     11: WASM [wasm://wasm/02b2b5ba], function #15658 ('mini_init'), pc=0000018BB0A3C469 (+0xa9), pos=2687714 (+66)
     12: WASM [wasm://wasm/02b2b5ba], function #15864 ('mono_jit_init_version'), pc=0000018BB0958E4C (+0x6c), pos=2728793 (+40)
     13: WASM [wasm://wasm/02b2b5ba], function #17605 ('mono_wasm_load_runtime'), pc=0000018BB108E2C3 (+0x2a3), pos=3094573 (+354)
     14: JsToWasmFrame [pc: 00000154000ED917]
     15: /* anonymous */(aka /* anonymous */) [0000015408385981] [C:/Dev/runtime/src/mono/sample/wasm/console-v8/bin/Debug/AppBundle/dotnet.js:11364] [bytecode=00000154083A83F1 offset=36](this=0x015408042235 <null>)
     16: ccall(aka ccall) [00000154083D2D69] [C:/Dev/runtime/src/mono/sample/wasm/console-v8/bin/Debug/AppBundle/dotnet.js:4903] [bytecode=000001540839FB19 offset=134](this=0x0154080423b5 <undefined>,0x0154082135d5 <String[22]: #mono_wasm_load_runtime>,0x015408042235 <null>,0x0154083d4911 <JSArray[2]>#3#,0x0154084d1ea5 <Arguments map = 0000015408244699>#4#,0x0154080423b5 <undefined>)
     17: /* anonymous */(aka /* anonymous */) [00000154084D1E75] [C:/Dev/runtime/src/mono/sample/wasm/console-v8/bin/Debug/AppBundle/dotnet.js:4923] [bytecode=000001540839F8D5 offset=22](this=0x0154080423b5 <undefined>)
     18: /* anonymous */ [000001540823A33D] [C:/Dev/runtime/src/mono/sample/wasm/console-v8/bin/Debug/AppBundle/dotnet.js:124] [bytecode=000001540839F595 offset=100](this=0x0154083ceab1 <Object map = 0000015408245481>#5#)
     19: finalize_startup(aka finalize_startup) [00000154083D015D] [C:/Dev/runtime/src/mono/sample/wasm/console-v8/bin/Debug/AppBundle/dotnet.js:3025] [bytecode=00000154083A78C5 offset=92](this=0x0154080423b5 <undefined>,0x0154083cea79 <Object map = 0000015408252E01>#6#)
     20: mono_wasm_on_runtime_initialized(aka mono_wasm_on_runtime_initialized) [00000154083D00C1] [C:/Dev/runtime/src/mono/sample/wasm/console-v8/bin/Debug/AppBundle/dotnet.js:2926] [bytecode=0000015408390AC1 offset=118](this=0x0154080423b5 <undefined>)
     21: /* anonymous */ [00000154087072C5](this=0x015408203201 <JSGlobal Object>#7#,0x0154080423b5 <undefined>)
     22: StubFrame [pc: 000001540013F578]
     23: StubFrame [pc: 00000154000AA3FE]
     24: EntryFrame [pc: 00000154000878B7]
  =====================

Reproduction Steps

In the PR I'm building sample project with
<WasmBuildNative>true</WasmBuildNative> in-tree.

Expected behavior

No assert

Actual behavior

Assert and failure

Regression?

Don't know

Known Workarounds

No response

Configuration

Debug

Other information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions