emscripten-core / emscripten-core/emscripten
cannot use 'emmalloc-memvalidate-verbose' flag
Open
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
Please include the following in your bug report:
**Version of emscripten/emsdk:**
3.1.27
APP crash at the wasm_call_ctor with build flag `-sMALLOC="emmalloc-memvalidate-verbose"`.
the call stack is: wasm_call_ctor-->initialize_emmalloc_heap---->claim_more_memory--->validate_memory_regions
I checked the source code. In the function validate_memory_regions, it tries to assert the mutex 'multithreadingLock'. On the call stack, there is no place to call the MALLOC_ACQUIRE.
Is it a bug?
Contributor guide
Assessment
This issue has not been assessed yet.