Repository navigation
Description
On Python 3.11, arcadedb-jvm with JPype 1.8.0 (on PyPI since 2026-11-29) ends the process with a segmentation fault when Ctrl-C arrives during a query. Every published release accepts that JPype version, so a new install on 3.11 gets it, and CI on main will too. 26.12.1 should not install it there.
Runs that ended in a segmentation fault when Ctrl-C arrived while a query called a Python function (one process per run, Linux x86-64):
| Python | JPype 1.7.1 | JPype 1.8.0 |
|---|---|---|
| 3.11 | 0 of 10 | 10 of 10 |
| 3.12 | 0 of 10 | 0 of 10 |
| 3.13 | 0 of 10 | 0 of 10 |
| 3.14 | 0 of 10 | 0 of 10 |
| 3.15 | no wheel | 0 of 10 |
On 3.11, Ctrl-C during a query that calls no Python function also crashed with 1.8.0 (3 of 3 runs, 0 of 3 with 1.7.1). Ctrl-C while no query runs did not (0 of 3 runs).
The smallest reproduction I found needs no ArcadeDB, no signal and no timing (uv run --no-project --python 3.11 --with jpype1==1.8.0 python -X faulthandler repro.py, with a Java installed):
import jpype
jpype.startJVM()
def get():
next(iter([]))
supplier = jpype.JProxy("java.util.function.Supplier", dict={"get": get})
jpype.JClass("java.util.Optional").empty().orElseGet(supplier)Expected (JPype 1.7.1): StopIteration. Actual (1.8.0): Fatal Python error: Segmentation fault, exit status 139.
Until a release with the fix, on Python 3.11 add the limit to your project: uv add "jpype1<1.8". This applies to arcadedb-jvm 26.11.1 to 26.11.1.post4 and the 26.12.1 pre-releases, and to the older arcadedb-embedded releases up to 26.10.2.post1 (also on Python 3.10). Python 3.12 and later are not affected.
Cause and CI
The faulting frame is _jpype.so JPPyErr::restore(JPPyObject&), with the fault address 0x8. From reading the 1.8.0 source: before CPython 3.12 an exception can be pending as a type with a null value (Ctrl-C and next() raise that way), JPPyErrFrame::normalize() skips a null value, and JPPyErr::restore then reads the type of a null pointer. I have not built a patched JPype.
In run 46271033721 (pull request #534) test_sigint_during_a_query_that_calls_python_is_a_keyboard_interrupt ended in this crash on Python 3.11 on linux/amd64, linux/arm64, and darwin/arm64. The Python 3.15 failures of that run are a different problem: tests there call faulthandler._read_null, which 3.15 does not have.
Activity
tae898 commentedon Nov 29, 2026
I reported the crash to JPype: jpype-project/jpype#1612. The cap goes when a JPype release has the fix.
CI: keep jpype1 below 1.8 on Python 3.11 in native parity, and skip l…
arcadedb-jvm on Python 3.11: take jpype1 1.8.1, leave out only 1.8.0 (#…