[Python] mutex lock failed: Invalid argument when importing after tink (M1, macOS 14.2.1)
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 88
Description
### Describe the bug, including details regarding any error messages, version, and platform.
- macOS 14.2.1, M1
- clang 15.0.0 (clang-1500.1.0.2.5, arm64-apple-darwin23.2.0)
- Python 3.8.18
- Pyarrow 15.0.0
- Tink 1.9.0 (install used prebuilt wheel tink-1.9.0-cp38-cp38-macosx_11_0_universal2.whl)
- OpenSSL 3.2.0 23 Nov 2023
```python
import tink
import pyarrow
```
Results in:
```
libc++abi: terminating due to uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument
```
Reversing import order results in the process hanging with:
```
[mutex.cc : 453] RAW: Lock blocking 0x156747c38 @
```
Same error message as #15189. Just in case similar root cause, OpenSSL version Python is built with is `OpenSSL 3.2.0 23 Nov 2023`.
### Component(s)
Python
Contributor guide
Assessment
This issue has not been assessed yet.