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
I'm trying to list the exports of a module whose image I load from disk using wasm_runtime_load. Is this the intended use case, or should I only be using this with modules returned by wasm_module_new?
I'm asking because I get an msan error in the first case:
#0 0x7f9c280341fa in wasm_module_exports third_party/wasm_micro_runtime/core/iwasm/common/wasm_c_api.c:2699:9
The line in question is
if (((constwasm_module_ex_t*)(module))->ref_count==0)
In the wasm_runtime_load case, ref_count is left uninitialized. Am I doing this wrong?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there,
I'm trying to list the exports of a module whose image I load from disk using
wasm_runtime_load
. Is this the intended use case, or should I only be using this with modules returned bywasm_module_new
?I'm asking because I get an msan error in the first case:
The line in question is
In the
wasm_runtime_load
case,ref_count
is left uninitialized. Am I doing this wrong?Beta Was this translation helpful? Give feedback.
All reactions