Skip to content

[wasm] Assertion in mono_metadata_generic_inst_hash for System.Text.Json tests #65243

@radical

Description

@radical

Crashed on my debug PR #65178. This is an EAT build, and AOT doesn't have a corresponding crash. though I think this is a random crash.

[Build](https://dev.azure.com/dnceng/public/_build/results?buildId=1608892&view=logs&j=7f41eb05-1c5f-5922-38da-d308f495fb31&t=142a4cb7-24ad-543f-6942-1fea62d34e98, Log

This is a symbolicated version of the trace:

[02:42:51] fail: ==== JS stack trace =========================================
[02:42:51] fail: 
[02:42:51] fail: Security context: 0x24ab0820dca9 <JSObject>#0#
[02:42:51] fail:     0: builtin exit frame: trace(this=0x24ab08203701 <console map = 0x24ab08240919>#1#,0x24ab0808cf69 <String[95]: c"* Assertion at /__w/1/s/src/mono/mono/metadata/metadata.c:1877, condition `<disabled>' not met\n">,0x24ab08203701 <console map = 0x24ab08240919>#1#)
[02:42:51] fail: 
[02:42:51] fail:     1: mono_wasm_trace_logger [0x24ab084180fd] [./dotnet.js:3] [bytecode=0x24ab086c77b9 offset=153](this=0x24ab0840731d <Object map = 0x24ab08246a21>#2#,0,20634,88496120,4,0)
[02:42:51] fail:     2: _mono_wasm_trace_logger [0x24ab08408619] [./dotnet.js:12] [bytecode=0x24ab086c76c1 offset=31](this=0x24ab08401f59 <JSGlobal Object>#3#)
[02:42:51] fail:     3: arguments adaptor frame: 5->0
[02:42:51] fail:     4: WasmToJsFrame [pc: 0x273f38cd15db]
[02:42:51] fail:     5: WASM [0096e7aa], wasm_trace_logger (function #111 ('')), pc=0x273f3921d3bf (+0x3f), pos=38740 (+11)
[02:42:51] fail:     6: WASM [0096e7aa], eglib_log_adapter (function #2506 ('')), pc=0x273f390d3c03 (+0xa3), pos=666958 (+39)
[02:42:51] fail:     7: WASM [0096e7aa], monoeg_g_logv_nofree (function #8420 ('')), pc=0x273f38de8a58 (+0xf8), pos=1800930 (+97)
[02:42:51] fail:     8: WASM [0096e7aa], monoeg_assertion_message (function #8423 ('')), pc=0x273f38de8747 (+0x47), pos=1801073 (+31)
[02:42:51] fail:     9: WASM [0096e7aa], mono_assertion_message (function #8425 ('')), pc=0x273f38de8605 (+0x45), pos=1801140 (+39)
[02:42:51] fail:    10: WASM [0096e7aa], mono_assertion_message_disabled (function #8424 ('')), pc=0x273f38de86a2 (+0x22), pos=1801095 (+9)
[02:42:51] fail:    11: WASM [0096e7aa], mono_metadata_generic_inst_hash (function #1698 ('')), pc=0x273f3913e13f (+0xff), pos=509101 (+126)
[02:42:51] fail:    12: WASM [0096e7aa], mono_metadata_generic_context_hash (function #1734 ('')), pc=0x273f39138b63 (+0x43), pos=516576 (+14)
[02:42:51] fail:    13: WASM [0096e7aa], inflated_method_hash (function #529 ('')), pc=0x273f391eb5ed (+0x2d), pos=225765 (+6)
[02:42:51] fail:    14: WASM [0096e7aa], rehash.2 (function #8374 ('')), pc=0x273f38ded0f3 (+0x173), pos=1795232 (+133)
[02:42:51] fail:    15: WASM [0096e7aa], monoeg_g_hash_table_insert_replace (function #8373 ('')), pc=0x273f38ded2bc (+0x5c), pos=1794909 (+44)
[02:42:51] fail:    16: WASM [0096e7aa], mono_class_inflate_generic_method_full_checked (function #526 ('')), pc=0x273f391ec18e (+0xa0e), pos=225600 (+1094)
[02:42:51] fail:    17: WASM [0096e7aa], mono_class_get_method_by_index (function #551 ('')), pc=0x273f391ea258 (+0xb8), pos=227200 (+71)
[02:42:51] fail:    18: WASM [0096e7aa], find_method_in_class (function #1541 ('')), pc=0x273f39152645 (+0x6a5), pos=482353 (+686)
[02:42:51] fail:    19: WASM [0096e7aa], find_method (function #1540 ('')), pc=0x273f391528b4 (+0x114), pos=481183 (+93)
[02:42:51] fail:    20: WASM [0096e7aa], method_from_memberref (function #1525 ('')), pc=0x273f391561e7 (+0x3a7), pos=476609 (+350)
[02:42:51] fail:    21: WASM [0096e7aa], mono_get_method_checked (function #1524 ('')), pc=0x273f39156de6 (+0xa66), pos=475419 (+691)
[02:42:51] fail:    22: WASM [0096e7aa], interp_get_method (function #359 ('')), pc=0x273f39204c66 (+0x46), pos=160013 (+23)
[02:42:51] fail:    23: WASM [0096e7aa], interp_transform_call (function #345 ('')), pc=0x273f38d995d5 (+0x495), pos=154480 (+528)
[02:42:51] fail:    24: WASM [0096e7aa], generate_code (function #327 ('')), pc=0x273f38cf6086 (+0x60e6), pos=128601 (+8472)
[02:42:51] fail:    25: WASM [0096e7aa], mono_interp_transform_method (function #379 ('')), pc=0x273f38d1467e (+0x11be), pos=166194 (+2125)
[02:42:51] fail:    26: WASM [0096e7aa], do_transform_method (function #223 ('')), pc=0x273f3921113c (+0x9c), pos=108630 (+51)
[02:42:51] fail:    27: WASM [0096e7aa], interp_exec_method (function #169 ('')), pc=0x273f38ce1f10 (+0xee90), pos=101278 (+52882)
[02:42:51] fail:    28: WASM [0096e7aa], interp_runtime_invoke (function #168 ('')), pc=0x273f39216953 (+0x1f3), pos=48334 (+231)
[02:42:51] fail:    29: WASM [0096e7aa], mono_jit_runtime_invoke (function #7732 ('')), pc=0x273f38e3d2c2 (+0x1162), pos=1666316 (+43)
[02:42:51] fail:    30: WASM [0096e7aa], do_runtime_invoke (function #1900 ('')), pc=0x273f39126c8b (+0x1eb), pos=540536 (+110)
[02:42:51] fail:    31: WASM [0096e7aa], mono_runtime_invoke_checked (function #1898 ('')), pc=0x273f39126f58 (+0x38), pos=540394 (+39)
[02:42:51] fail:    32: WASM [0096e7aa], ves_icall_InternalInvoke_raw (function #1261 ('')), pc=0x273f3917f26a (+0x11ea), pos=414249 (+1945)
[02:42:51] fail:    33: WASM [0096e7aa], do_icall (function #258 ('')), pc=0x273f3920e1bc (+0x53c), pos=112344 (+253)
[02:42:51] fail:    34: WASM [0096e7aa], do_icall_wrapper (function #229 ('')), pc=0x273f392104a6 (+0x106), pos=109850 (+272)
[02:42:51] fail:    35: WASM [0096e7aa], interp_exec_method (function #169 ('')), pc=0x273f38ce1d69 (+0xece9), pos=52762 (+4366)
[02:42:51] fail:    36: WASM [0096e7aa], interp_runtime_invoke (function #168 ('')), pc=0x273f38cc707b (+0x27b), pos=48334 (+231)
[02:42:51] fail:    37: WASM [0096e7aa], mono_jit_runtime_invoke (function #7732 ('')), pc=0x273f38840638 (+0xf8), pos=1666316 (+43)
[02:42:51] fail:    38: WASM [0096e7aa], do_runtime_invoke (function #1900 ('')), pc=0x273f38bab2b4 (+0x234), pos=540536 (+110)
[02:42:51] fail:    39: WASM [0096e7aa], mono_runtime_try_invoke (function #1904 ('')), pc=0x273f38ba9df5 (+0x95), pos=542175 (+37)
[02:42:51] fail:    40: WASM [0096e7aa], function #118 ('mono_wasm_invoke_method'), pc=0x273f38cce665 (+0x125), pos=39195 (+101)
[02:42:51] fail:    41: JsToWasmFrame [pc: 0x24ab00082511]
[02:42:51] fail:    42: /* anonymous */ [0x24ab082c5a01] [./dotnet.js:12] [bytecode=0x24ab0845baa5 offset=43](this=0x24ab08401f59 <JSGlobal Object>#3#)
[02:42:51] fail:    43: arguments adaptor frame: 4->0
[02:42:51] fail:    44: /* anonymous */ [0x24ab0823acf1] [./dotnet.js:3] [bytecode=0x24ab082dad31 offset=117](this=0x24ab08416af1 <Object map = 0x24ab08243349>#4#)
[02:42:51] fail:    45: arguments adaptor frame: 4->0
[02:42:51] fail:    46: _call_method_with_converted_args(aka _call_method_with_converted_args) [0x24ab08418ad9] [./dotnet.js:3] [bytecode=0x24ab0845b7f1 offset=51](this=0x24ab0804030d <undefined>,46011800,0,0x24ab0848f185 <Object map = 0x24ab082532e9>#5#,0x24ab08040171 <null>,44910248,0x24ab080403e5 <true>,0x24ab0804030d <undefined>)
[02:42:51] fail:    47: call_method(aka call_method) [0x24ab08418a59] [./dotnet.js:3] [bytecode=0x24ab084590c5 offset=214](this=0x24ab0804030d <undefined>,46011800,0,0x24ab08210125 <String[1]: #m>,0x24ab08485189 <JSArray[1]>#6#)
[02:42:51] fail:    48: /* anonymous */(aka /* anonymous */) [0x24ab08485199] [./dotnet.js:3] [bytecode=0x24ab08457749 offset=148](this=0x24ab0804030d <undefined>)
[02:42:51] fail:    49: arguments adaptor frame: 1->0
[02:42:51] fail:    50: mono_call_assembly_entry_point(aka mono_call_assembly_entry_point) [0x24ab08416739] [./dotnet.js:3] [bytecode=0x24ab08457335 offset=27](this=0x24ab0804030d <undefined>,0x24ab08421591 <String[18]: "WasmTestRunner.dll">,0x24ab084851b5 <JSArray[1]>#7#,0x24ab08210125 <String[1]: #m>)
[02:42:51] fail:    51: mono_run_main [0x24ab08416455] [./dotnet.js:3] [bytecode=0x24ab08456bd1 offset=55](this=0x24ab08415c19 <Object map = 0x24ab0824ac39>#8#,0x24ab08421591 <String[18]: "WasmTestRunner.dll">,0x24ab08486741 <JSArray[7]>#9#)
[02:42:51] fail:    52: init [0x24ab08417031] [test-main.js:214] [bytecode=0x24ab0845673d offset=712](this=0x24ab0840729d <Object map = 0x24ab08252c59>#10#,0x24ab0848521d <Object map = 0x24ab08252bb9>#11#)
[02:42:51] fail:    53: onDotnetReady [0x24ab08422d79] [test-main.js:153] [bytecode=0x24ab08456089 offset=199](this=0x24ab08401b11 <Object map = 0x24ab0824f469>#12#)
[02:42:51] fail:    54: finalize_startup(aka finalize_startup) [0x24ab08418ed9] [./dotnet.js:3] [bytecode=0x24ab0844bbc9 offset=512](this=0x24ab0804030d <undefined>,0x24ab08401ad5 <Object map = 0x24ab0824d849>#13#)
[02:42:51] fail:    55: mono_wasm_after_runtime_initialized(aka mono_wasm_after_runtime_initialized) [0x24ab08401af1] [./dotnet.js:3] [bytecode=0x24ab082d9e81 offset=67](this=0x24ab0804030d <undefined>)
[02:42:51] fail:    56: arguments adaptor frame: 1->0
[02:42:51] fail:    57: callRuntimeCallbacks [0x24ab08401b21] [./dotnet.js:12] [bytecode=0x24ab082d6b7d offset=32](this=0x24ab08401f59 <JSGlobal Object>#3#,0x24ab08401f49 <JSArray[0]>#14#)
[02:42:51] fail:    58: postRun [0x24ab08401f79] [./dotnet.js:12] [bytecode=0x24ab082d9d05 offset=110](this=0x24ab08401f59 <JSGlobal Object>#3#)
[02:42:51] fail:    59: doRun [0x24ab08422eb9] [./dotnet.js:12] [bytecode=0x24ab082d6d39 offset=91](this=0x24ab08401f59 <JSGlobal Object>#3#)
[02:42:51] fail:    60: run [0x24ab08401f99] [./dotnet.js:12] [bytecode=0x24ab082c7429 offset=117](this=0x24ab08401f59 <JSGlobal Object>#3#,0x24ab08401fb9 <Arguments map = 0x24ab08241d19>#15#)
[02:42:51] fail:    61: arguments adaptor frame: 0->1
[02:42:51] fail:    62: runCaller [0x24ab08401fcd] [./dotnet.js:12] [bytecode=0x24ab082d694d offset=11](this=0x24ab08401f59 <JSGlobal Object>#3#)
[02:42:51] fail:    63: removeRunDependency [0x24ab08401fed] [./dotnet.js:12] [bytecode=0x24ab082d126d offset=76](this=0x24ab08401f59 <JSGlobal Object>#3#,0x24ab082c4d15 <String[16]: #wasm-instantiate>)
[02:42:51] fail:    64: receiveInstance [0x24ab0840200d] [./dotnet.js:12] [bytecode=0x24ab082d6649 offset=118](this=0x24ab08401f59 <JSGlobal Object>#3#,0x24ab082d35a9 <Instance map = 0x24ab08244a69>#16#,0x24ab0804030d <undefined>)
[02:42:51] fail:    65: arguments adaptor frame: 1->2
[02:42:51] fail:    66: receiveInstantiationResult [0x24ab0840204d] [./dotnet.js:12] [bytecode=0x24ab082d65ad offset=10](this=0x24ab08401f59 <JSGlobal Object>#3#,0x24ab08422f09 <Object map = 0x24ab0824eb09>#17#)
[02:42:51] fail:    67: StubFrame [pc: 0x559c0f4f0ef8]
[02:42:51] fail:    68: StubFrame [pc: 0x559c0f45cf24]
[02:42:51] fail:    69: EntryFrame [pc: 0x559c0f43a8f8]
[02:42:51] fail: =====================
[02:42:51] fail: 
[02:42:51] fail: * Assertion at /__w/1/s/src/mono/mono/metadata/metadata.c:1877, condition `<disabled>' not met
[02:42:51] fail: 
[02:42:51] info: Process v8 exited with 1

cc @vargaz

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions