mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2026-01-15 05:48:11 +00:00
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. |
||
|---|---|---|
| .. | ||
| deps | ||
| iwasm | ||
| shared | ||
| config.h | ||
| version.h | ||
| version.h.in | ||