Skip to content

ci: Test against Python 3.14 freethreaded build - #297

Open
auscompgeek wants to merge 1 commit into
mainfrom
ci-3.14-nogil
Open

auscompgeek wants to merge 1 commit into
mainfrom
ci-3.14-nogil

Conversation

@auscompgeek

Copy link
Copy Markdown
Member

No description provided.

@auscompgeek

Copy link
Copy Markdown
Member Author

Well, good to know it currently segfaults.

@auscompgeek
auscompgeek marked this pull request as draft September 16, 2025 07:21
@virtuald

Copy link
Copy Markdown
Member

Likely because it needs #295

@auscompgeek

Copy link
Copy Markdown
Member Author

Good to know it's still segfaulting in the tests.

test_ft_lifetime.py .                                                    [ 20%]
Fatal Python error: Segmentation fault

Current thread 0x00007f887207cb80 [python] (most recent call first):
  File "/home/runner/work/semiwrap/semiwrap/tests/test_ft_misc.py", line 74 in test_buffers
  ...

Current thread's C stack trace (most recent call first):
  Binary file "/opt/hostedtoolcache/Python/3.14.8/x64-freethreaded/lib/libpython3.14t.so.1.0", at _Py_DumpStack+0x47 [0x7f8871b5da4a]
  Binary file "/opt/hostedtoolcache/Python/3.14.8/x64-freethreaded/lib/libpython3.14t.so.1.0", at +0x167357 [0x7f8871b67357]
  Binary file "/lib/x86_64-linux-gnu/libc.so.6", at +0x45330 [0x7f8871645330]
  Binary file "/opt/hostedtoolcache/Python/3.14.8/x64-freethreaded/lib/libpython3.14t.so.1.0", at +0x1b4fa4 [0x7f8871bb4fa4]
  Binary file "/opt/hostedtoolcache/Python/3.14.8/x64-freethreaded/lib/python3.14t/site-packages/swtest/ft/_ft.cpython-314t-x86_64-linux-gnu.so", at +0x9272d [0x7f887029272d]
  Binary file "/opt/hostedtoolcache/Python/3.14.8/x64-freethreaded/lib/python3.14t/site-packages/swtest/ft/_ft.cpython-314t-x86_64-linux-gnu.so", at +0x8fd34 [0x7f887028fd34]
  Binary file "/opt/hostedtoolcache/Python/3.14.8/x64-freethreaded/lib/python3.14t/site-packages/swtest/ft/_ft.cpython-314t-x86_64-linux-gnu.so", at +0x77f20 [0x7f8870277f20]
  Binary file "/opt/hostedtoolcache/Python/3.14.8/x64-freethreaded/lib/libpython3.14t.so.1.0", at PyObject_Vectorcall+0x56 [0x7f8871bbb756]

@virtuald

Copy link
Copy Markdown
Member

Probably needs a pybind11 upgrade?

@auscompgeek

Copy link
Copy Markdown
Member Author

The pybind11 3.0.0 release notes explicitly state 3.14t is supported though, and there doesn't seem to be anything relevant to this in pybind 3.1.0. Could give upgrading pybind11 a shot in this PR but it sounds like we've found a legitimate bug somewhere.

@auscompgeek
auscompgeek marked this pull request as ready for review October 23, 2026 08:17
@auscompgeek

Copy link
Copy Markdown
Member Author

🤔 if we test against a freethreaded CPython, do we need the tests/test_buffer_gil.py added in #340?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants