wasm-micro-runtime/core/iwasm
Andy 5aa22d41e9
Fixing use after free when dumping call stack (#2084)
In multi-threading, this line will eventually call `wasm_cluster_wait_for_all_except_self`:
`DEINIT_VEC(store->instances, wasm_instance_vec_delete)`

As the threads are joining they can call `wasm_interp_dump_call_stack` which tries to
use the module frames but they were already freed by this line:
`DEINIT_VEC(store->modules, wasm_module_vec_delete)`

This PR swaps the order that these are deleted so module is deleted after the instances.

Co-authored-by: Andrew Chambers <ncham@amazon.com>
2023-03-30 09:01:16 +08:00
..
aot Fix issues reported by Coverity (#2083) 2023-03-29 19:40:52 +08:00
common Fixing use after free when dumping call stack (#2084) 2023-03-30 09:01:16 +08:00
compilation Fix multi-threading issues (#2013) 2023-03-08 10:57:22 +08:00
doc Add architecture diagram for wasm globals and classic-interp stack frame (#2058) 2023-03-25 09:39:20 +08:00
fast-jit Fix fast-jit build error (#2023) 2023-03-12 20:17:49 +08:00
include Rename parameter names in wasm_runtime_instantiate (#2045) 2023-03-22 17:39:08 +08:00
interpreter Fix issues reported by Coverity (#2083) 2023-03-29 19:40:52 +08:00
libraries Bump tensorflow in /core/iwasm/libraries/wasi-nn/test (#2061) 2023-03-28 16:36:59 +08:00
README.md Add architecture diagram for wasm globals and classic-interp stack frame (#2058) 2023-03-25 09:39:20 +08:00