emscripten-core / emscripten-core/emscripten

Crashes in dlmalloc that occur in a worker can lock up the entire application

Open
#14,907 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.