Repository navigation
arcadedb-jvm on Python 3.11: keep jpype1 below 1.8, which crashes the process on Ctrl-C - #537
Merged
Merged
Conversation
… 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
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #536
On Python 3.11,
jpype11.8.0 ends the process with a segmentation fault (see the issue). This keepsarcadedb-jvmbelow 1.8 there and leaves Python 3.12 and later on the latest release.pyproject.toml:jpype1>=1.5.0,<1.8forpython_version < '3.12',jpype1>=1.5.0otherwise, 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.#534 changes the same dependency lines, so it needs a rebase. The merged form there would be
<1.8below 3.12, no limit from 3.12 to 3.14, and>=1.8.0from 3.15.