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
Was encountering an assertion failure in fopen() and managed to trace it down to get_shared_map() where assert(global_map) would always fail. It seems like __wasilibc_init_preopen never initializes the global_map here causing get_shared_map (and by extension fopen) to always fail. As a quick fix, simply calling the init procedure when the global_map is NULL will work.
The text was updated successfully, but these errors were encountered:
Interesting, looks like _start was indeed not being called based on how I linked the file unless I explicitly added --entry=main to the wasm-ld flags. Thanks!
Was encountering an assertion failure in
fopen()
and managed to trace it down toget_shared_map()
whereassert(global_map)
would always fail. It seems like__wasilibc_init_preopen
never initializes theglobal_map
here causingget_shared_map
(and by extensionfopen
) to always fail. As a quick fix, simply calling the init procedure when theglobal_map
isNULL
will work.The text was updated successfully, but these errors were encountered: