wasm-micro-runtime/core/iwasm
teamchong 628d4110a4 fix: clear exec_env_tls when destroying exec_env
When an exec_env is destroyed, check if it matches the current thread's
exec_env_tls and clear it to avoid dangling pointer issues.

Without this fix, in daemon-style execution where the same thread runs
multiple WASM modules sequentially (like Cloudflare Workers), the
exec_env_tls can point to freed memory after an exec_env is destroyed,
causing crashes on subsequent executions when the signal handler tries
to access it.

This is critical for AOT mode with hardware bounds checking enabled,
where signal handlers rely on exec_env_tls to handle SIGSEGV properly.
2025-12-29 13:13:12 -05:00
..
aot Add missing functions from thumb arch (#4718) 2025-11-28 17:08:24 +08:00
common fix: clear exec_env_tls when destroying exec_env 2025-12-29 13:13:12 -05:00
compilation Prevent BuildPhi from encountering a null llvm_entry_block (#4663) 2025-10-16 10:19:44 +08:00
doc Fix some more spelling issues (#3393) 2024-05-08 09:30:29 +08:00
fast-jit add micro AMR_BUILD_LIME1 to enable minimal lime1 feature set (#4571) 2025-09-14 14:08:27 +08:00
include Add a runtime API for reset shared heap(chain) (#4740) 2025-12-15 09:56:55 +08:00
interpreter add a set of apis to configure wasi via InstantiationArgs2 (#4707) 2025-11-24 19:20:21 +08:00
libraries Ensure --addr-pool mask accepts numbers only (#4619) 2025-12-22 07:55:42 +08:00
README.md Add architecture diagram for wasm globals and classic-interp stack frame (#2058) 2023-03-25 09:39:20 +08:00