Python array
module is not free-thread safe.
#128942
Labels
extension-modules
C modules in the Modules dir
topic-free-threading
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
The python
array
module is not currently free-thread safe. The error generator below can generate segfaults of aborts for most of thearray
object methods. I found #116738 which lists this module as in need of an audit, an apparenly closed start on this in #120103 and no owner for this module in the Experts Index, so decided to give it a go (see attached PR).Reproducer, any single
check(...)
call below will generate some kind of segfault or abort fairly quickly.CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: