Skip to content

[Python] mutex lock failed: Invalid argument when importing after tink (M1, macOS 14.2.1) #40088

@reeseann

Description

@reeseann

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
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions