emscripten-core / emscripten-core/emscripten
Crashes in dlmalloc that occur in a worker can lock up the entire application
Open
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
We have had reports of an issue where a crash in dlmalloc (possible due to memory corruption) that happen on a worker can cause the entire application to freeze and the error doesn't get correctly reported. We think this is because the thread crashes while holding some global malloc lock which means the main thread is likely to end of blocked on malloc/free.
Ideally a crash like this would bring own all threads asynchronously but we can't do that with workers.
Contributor guide
Assessment
This issue has not been assessed yet.