Skip to content

Fix exec_env_tls assertion in module instantiation#3844

Merged
wenyongh merged 1 commit intobytecodealliance:mainfrom
wenyongh:fix_exec_env_tls_assert
Oct 8, 2024
Merged

Fix exec_env_tls assertion in module instantiation#3844
wenyongh merged 1 commit intobytecodealliance:mainfrom
wenyongh:fix_exec_env_tls_assert

Conversation

@wenyongh
Copy link
Collaborator

@wenyongh wenyongh commented Oct 7, 2024

The execute_post_instantiate_functions may be triggered by wasm_cluster_spawn_exec_env,
in which the exec_env_tls can be NULL and cause the assertion invalid.

p.s. #3839.

Copy link
Contributor

@lum1n0us lum1n0us left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@lum1n0us lum1n0us left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@woodsmc
Copy link
Contributor

woodsmc commented Oct 7, 2024

This appears to resolve the issue!

@wenyongh wenyongh merged commit deacb7a into bytecodealliance:main Oct 8, 2024
@wenyongh wenyongh deleted the fix_exec_env_tls_assert branch October 10, 2024 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants