Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
The following assert fails under a debug build with WASI:
Line 269 ina155f9f
| assert(tstate->thread_id>0); |
It's probably due to the pthread stubs always returning0 as the thread ID:
cpython/Python/thread_pthread_stubs.h
Lines 97 to 100 ina155f9f
| PyAPI_FUNC(pthread_t)pthread_self(void) | |
| { | |
| return0; | |
| } |
It can probably be solved by making the assertion conditional on `HAVE_PTHREAD_STUBS not being defined:
| #if !defined(HAVE_PTHREAD_STUBS) |
CPython versions tested on:
CPython main branch
Operating systems tested on:
Other