OpenViking
OpenViking copied to clipboard
ragfs_python.cpython-310-darwin.so incompatible with Python 3.14: EXC_BAD_ACCESS crash
Bug Description
The ragfs_python.cpython-310-darwin.so precompiled extension crashes with EXC_BAD_ACCESS (SIGSEGV) when loaded on Python 3.14 environments.
Environment
- openviking version: 0.3.8
- Python version: 3.14.4 (Homebrew, macOS ARM64)
- ragfs module location:
openviking/lib/ragfs_python.cpython-310-darwin.so - OS: macOS 26.4 (Apple Silicon)
Crash Details
- Exception type: EXC_BAD_ACCESS (SIGSEGV)
- Crash address: 0x0000000000000007 (NULL/invalid pointer)
- Crash location:
PyUnicode_AsUTF8AndSize(Python string handling) - Culprit:
ragfs_python.cpython-310-darwin.so— module was compiled for Python 3.10 ABI (cpython-310) but is being loaded by Python 3.14
Root Cause
Python extension modules are compiled for specific Python version ABIs. The .cpython-310 suffix indicates the module was compiled against Python 3.10. When Python 3.14 attempts to load this module, the memory layout and function call conventions are incompatible, causing a segmentation fault.
Suggested Fix
Either:
- Provide a Python 3.14-compatible build of
ragfs_python.cpython-314-darwin.so - Or ship openviking with a Python 3.12 environment instead of Python 3.14
Additional Context
This crash propagates to the OpenClaw Gateway process (Node.js) which spawns the openviking venv Python, causing the entire gateway to crash on systems running Python 3.14.
I'll fix this