wasm-micro-runtime/tests/standalone
teamchong 9f73f59870 test(exec_env): add reproducer for exec_env_tls dangling pointer bug
Add test case that reproduces the bug where exec_env_tls is not cleared
on early return paths in invoke_native_with_hw_bound_check.

The test triggers native stack overflow check failure, which causes
wasm_runtime_call_wasm to return early after setting exec_env_tls but
without clearing it. This leaves exec_env_tls pointing to a destroyed
exec_env, causing subsequent calls to fail with "invalid exec env".

Test confirms the fix in wasm_exec_env_destroy correctly clears
exec_env_tls when destroying the exec_env it points to.
2026-01-08 07:27:21 -05:00
..
bfs Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
binary-trees Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
blake3 Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
brotli Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
c-ray Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
c-wasm-simd128-example Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
cat-sync Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
coremark Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
dhrystone Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
dump-call-stack Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
dump-mem-profiling Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
dump-perf-profiling Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
fannkuch-redux Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
fasta Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
gcc-loops Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
hashset Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
iwasm-wamrc Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
mandelbrot Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
nbody Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
raymarcher Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
simple Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
smallpt Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
stream Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
string-view Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
test-aes Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
test-exec-env-tls test(exec_env): add reproducer for exec_env_tls dangling pointer bug 2026-01-08 07:27:21 -05:00
test-go Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
test-invoke-native Turn warnings into errors in CI (#4397) 2025-09-11 06:33:04 +08:00
test-malloc Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
test-module-malloc Turn warnings into errors in CI (#4397) 2025-09-11 06:33:04 +08:00
test-parson Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
test-printf Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
test-pthread set default value of WAMR_BUILD_REF_TYPES to 1 in standalone cases (#4227) 2025-04-30 14:10:56 +08:00
test-running-modes Turn warnings into errors in CI (#4397) 2025-09-11 06:33:04 +08:00
test-stddef Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
test-strchr Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
test-ts1 Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
test-wasi1 Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
test-wasi2 Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
tsf Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00
standalone.sh Add standalone cases (#3536) 2024-06-19 16:40:37 +08:00