emscripten-core / emscripten-core/emscripten

Pthreads do not work without EXIT_RUNTIME=1 as of 3.1.8

Open
#16,654 4 comments 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

Repro here: https://gist.github.com/connorjclark/4c3e33849f2a086f27f320f6a37270a4

output without EXIT_RUNTIME=1:
```
main start
```

output with EXIT_RUNTIME=1:
```
main start
thread_a start
```

I bisected to https://chromium.googlesource.com/external/github.com/emscripten-core/emscripten.git/+log/1a0b77c572ad..c48f73a5c763 / #16339

cc @sbc100

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.