-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Help us help you
We'd like to know more about
your Tink deployment.
Describe the bug:
When importing Tink (with GCPSM Extension) for use in a FastAPI service using Uvicorn, we consistently see the error libc++abi: terminating due to uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument
, and the entire python process will crash. Pinning Tink to 1.8 solves this for us.
We also have a Dramatiq service that throws the same error on Tink import. This happens on both Mac (M1/M2) and Linux (Ubuntu) machines in the Cloud.
What was the expected behavior?
We should be able to import Tink for use in Dramatiq and FastAPI services.
How can we reproduce the bug?
This can be triggered by importing certain other packages, including but not limited to, snowflake-connector-python
.
Do you have any debugging information?
I have attached a crash log.
crash-report.txt
What version of Tink are you using?
Tink 1.9.0. Tink 1.8.0 is not affected by this issue.
Can you tell us more about your development environment?
Python 3.11, Virtual Environment managed by Poetry. Mac OS 13 (M2), Mac OS 14 (M1), Ubuntu.
Is there anything else you'd like to add?
Provide any additional context about the problem.