Description
Creating a TypeDB.driver instance on Python 3.14 (macOS arm64) with driver version 3.5.5 crashes the interpreter with a segmentation fault during DriverOptions construction. The crash happens before any query or session is opened.
Environment
- TypeDB distribution: Core
- TypeDB version: 3.5.5
- Environment: macOS Sonoma 14.x, Apple Silicon (arm64), Python 3.14.0, virtualenv managed by
uv
- Studio version: N/A (not used)
- Other details:
- typedb-driver Python package version 3.5.5
- No TLS (
DriverOptions(False, None))
- Credentials:
Credentials("admin", "password")
Reproducible Steps
-
Set up
python3.14 -m venv .venv
source .venv/bin/activate
pip install typedb-driver==3.5.5
-
Execute
from typedb.driver import TypeDB, Credentials, DriverOptions
# Crashes with segfault on Python 3.14/macOS arm64
driver = TypeDB.driver(
"localhost:1729",
Credentials("admin", "password"),
DriverOptions(False, None),
)
-
Unexpected result
- Interpreter exits with a fatal error: segmentation fault.
- Stack trace shows crash in
typedb/native_driver_wrapper.py inside driver_options_new called from typedb/api/connection/driver_options.py.
Expected result
Driver should be constructed without crashing, returning a usable Driver instance or raising a Python exception if configuration is invalid.
Additional information
Relevant logs from TypeDB or Driver:
- Crash trace excerpt:
Fatal Python error: Segmentation fault
File ".../typedb/native_driver_wrapper.py", line 590 in driver_options_new
File ".../typedb/api/connection/driver_options.py", line 39 in __init__
File ".../typedb.py", line 31 in connect
- No server-side logs observed (driver crashes before connecting).
- Same code path works on Python 3.13 with the same driver version.
Description
Creating a
TypeDB.driverinstance on Python 3.14 (macOS arm64) with driver version 3.5.5 crashes the interpreter with a segmentation fault duringDriverOptionsconstruction. The crash happens before any query or session is opened.Environment
uvDriverOptions(False, None))Credentials("admin", "password")Reproducible Steps
Set up
python3.14 -m venv .venv source .venv/bin/activate pip install typedb-driver==3.5.5Execute
Unexpected result
typedb/native_driver_wrapper.pyinsidedriver_options_newcalled fromtypedb/api/connection/driver_options.py.Expected result
Driver should be constructed without crashing, returning a usable
Driverinstance or raising a Python exception if configuration is invalid.Additional information
Relevant logs from TypeDB or Driver: