Skip to content

Update supported Python versions (from 3.10 to 3.13) #490

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

paugier
Copy link
Contributor

@paugier paugier commented May 16, 2025

Mostly to check how much it is broken with Python 3.13.

@paugier
Copy link
Contributor Author

paugier commented May 16, 2025

=========================== short test summary info ============================
FAILED test/debug/test_handles_leak.py::test_leak_from_method
FAILED test/test_hpytype.py::TestType::test_HPyDef_METH[debug]
FAILED test/test_hpytype.py::TestPureHPyType::test_builtin_shape[universal]
FAILED test/test_hpytype_legacy.py::TestLegacyType::test_specparam_base[hybrid]
FAILED test/test_hpyfield.py::TestHPyField::test_gc_track[universal]
FAILED test/test_helpers.py::TestHPyModuleAddType::test_with_spec_only[universal]
FAILED test/test_slots_legacy.py::TestLegacySlots::test_nb_ops_inplace[hybrid]
FAILED test/test_hpytype.py::TestType::test_simple_type[universal]
FAILED test/test_slots.py::TestSlots::test_tp_init[universal]
FAILED test/test_hpytype.py::TestType::test_call[universal]
FAILED test/test_hpyfield.py::TestHPyField::test_store_load[universal]
FAILED test/test_helpers.py::TestHPyModuleAddType::test_with_spec_only[debug]
FAILED test/test_slots_legacy.py::TestLegacySlots::test_nb_ops_inplace[hybrid+debug]
FAILED test/test_hpytype.py::TestType::test_HPyDef_METH_IMPL[debug]
FAILED test/test_slots.py::TestSqSlots::test_sq_repeat_and_sq_inplace_repeat[universal]
FAILED test/test_slots.py::TestSlots::test_tp_finalize_gc[universal]
FAILED test/debug/test_handles_leak.py::test_closed_handles[with stacktrace]
FAILED test/test_slots_legacy.py::TestLegacySqSlots::test_sq_concat_and_sq_inplace_concat[hybrid]
FAILED test/test_hpytype_legacy.py::TestLegacyType::test_simple_type[hybrid]
FAILED test/test_hpytype.py::TestType::test_HPyDef_METH[cpython]
====== 20 failed, 699 passed, 1 skipped, 754 warnings in 77.86s (0:01:17) ======

That's not so bad 🙂

How could one debug such Fatal Python error: Segmentation fault?

@hodgestar
Copy link
Contributor

I would say let's start by cleaning up the simple issues and then have a look at the scarier one when the dust settles.

One simple route for debugging segfault's is the faulthandler module -- https://docs.python.org/3/library/faulthandler.html. After that it's GDB, I guess?

@rlamy
Copy link
Member

rlamy commented Jul 11, 2025

I think that all the segfaults are caused by CPython now using bit 2 of tp_flags, which clashes with HPy_TPFLAGS_INTERNAL_IS_HPY_TYPE. Unfortunately, there are no free bits left, so we can't just redo #304...

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.

3 participants