You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[wasm] Assertion in marshal.c:399 if GetFunctionPointerForDelegate is called more than once #38573
Because on platforms without MONO_ARCH_HAVE_INTERP_NATIVE_TO_MANAGED the same function is returned for all calls to interp_create_method_pointer, any two arbitrary calls to GetFunctionPointerForDelegate anywhere in the program will trigger this assertion
Activity
lambdageek commentedon Jun 29, 2020
One way to test this on non-wasm is to change
runtime/src/mono/mono/mini/mini-amd64.h
Line 468 in a306b03
to
#undef MONO_ARCH_HAVE_INTERP_NATIVE_TO_MANAGEDAnd then run the above repro with
mono --interp Program.exelambdageek commentedon Jun 29, 2020
Because on platforms without
MONO_ARCH_HAVE_INTERP_NATIVE_TO_MANAGEDthe same function is returned for all calls tointerp_create_method_pointer, any two arbitrary calls toGetFunctionPointerForDelegateanywhere in the program will trigger this assertionlambdageek commentedon Jun 29, 2020
/cc @lewing
lateralusX commentedon Jun 29, 2020
Disabled delegate callbacks in eventpipe library on WASM due to hitting this issue, triggering:
WASM-ERR: * Assertion at /__w/1/s/src/mono/mono/metadata/marshal.c:399, condition' not met`When this is fixed on WASM we should re-enable delegate callbacks in eventpipe library src/mono/mono/metadata/icall-eventpipe.c.
vargaz commentedon Jul 20, 2020
This is fixed now by 4647328f7699a11b39297883791fcf7056906e9e.