Skip to content

arcadedb-jvm on Python 3.11: keep jpype1 below 1.8, which crashes the process on Ctrl-C - #537

Merged
tae898 merged 1 commit into
mainfrom
fix/jpype1-180-py311-segfault
Nov 29, 2026
Merged

tae898 merged 1 commit into
mainfrom
fix/jpype1-180-py311-segfault

Conversation

@tae898

@tae898 tae898 commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

Closes #536

On Python 3.11, jpype1 1.8.0 ends the process with a segmentation fault (see the issue). This keeps arcadedb-jvm below 1.8 there and leaves Python 3.12 and later on the latest release.

  • pyproject.toml: jpype1>=1.5.0,<1.8 for python_version < '3.12', jpype1>=1.5.0 otherwise, with a comment that says what breaks and when the cap can go.
  • tests/test_jpype_bare_exceptions.py: three child-process cases without timing. On Python 3.11 all three fail with JPype 1.8.0 and pass with 1.7.1; they pass with 1.8.0 on 3.12 and 3.14.
  • Installation page and README: the limit, and what to do with releases that are already published.

#534 changes the same dependency lines, so it needs a rebase. The merged form there would be <1.8 below 3.12, no limit from 3.12 to 3.14, and >=1.8.0 from 3.15.

… process on Ctrl-C

jpype1 1.8.0 (2026-11-29) segfaults on CPython 3.11 when an exception that CPython holds without
an instance (KeyboardInterrupt from Ctrl-C, StopIteration from next()) goes through JPype:
JPPyErr::restore reads the type of a null pointer. CPython 3.12 and later always hold an instance,
so they stay on the latest release. tests/test_jpype_bare_exceptions.py runs the case in a child
process without timing and fails on 3.11 with 1.8.0.
@tae898 tae898 added bug Something isn't working python Pull requests that update python code jvm The arcadedb-jvm package (JPype build) ci:full Run the full platform matrix on this pull request (the legs of a push to main) labels Nov 29, 2026
@tae898 tae898 self-assigned this Nov 29, 2026
@tae898
tae898 merged commit c9d2e0a into main Nov 29, 2026
73 checks passed
@tae898
tae898 deleted the fix/jpype1-180-py311-segfault branch November 29, 2026 16:17
@github-actions github-actions Bot added this to the 26.12.1 milestone Nov 29, 2026
tae898 added a commit that referenced this pull request Nov 29, 2026
…xml 6.2.1 in the examples (#539)

* CI: cap jpype1 below 1.8 on Python 3.11 in the native parity suite

The parity step installed jpype1 with no cap, outside the package
dependency, and a release runs that suite on 3.11, where 1.8.0 can end
the process with a segmentation fault (#536, #537). Closes #538.

* CI: do not take lxml 6.2.1 in the examples environment

It shipped no wheel for CPython 3.14 on Windows (nor musllinux), so the
examples jobs build it from source there and fail. Closes #541.
@tae898 tae898 mentioned this pull request Nov 30, 2026
1 of 10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ci:full Run the full platform matrix on this pull request (the legs of a push to main) jvm The arcadedb-jvm package (JPype build) python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

arcadedb-jvm on Python 3.11: JPype 1.8.0 crashes the process when Ctrl-C arrives during a query

1 participant