Debian Patches
Status for dune-localfunctions/2.11.0-2
| Patch | Description | Author | Forwarded | Bugs | Origin | Last update |
|---|---|---|---|---|---|---|
| increase-test-orthonormal-tolerance.patch | no | |||||
| python-static-class-objects-after-finalization.patch | Python bindings: do not release class objects after Python's finalization registerLocalBasis(), registerLocalKey() and registerLocalFiniteElement() keep the pybind11 class object in a function-local static. Its destructor runs during static destruction at program exit, after the Python interpreter has been finalized, and drops the reference without the GIL. In builds without NDEBUG pybind11 checks this (PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF), and with Python 3.15 the check fails, so every Python 3.15 program that imported dune.localfunctions (or a JIT module using these functions) aborts at exit: pybind11::handle::dec_ref() PyGILState_Check() failure. Python 3.14 does not detect it, but the late Py_DECREF is wrong there too. Store the class objects with pybind11's gil_safe_call_once_and_store, which pybind11 recommends instead of such statics and which never destroys the stored object. . Upstream master changed registerLocalKey() in 3abd3d33 to register LocalKey in the DUNE type registry instead; registerLocalBasis() and registerLocalFiniteElement() still use statics there. Suitable for upstream as a fix for all three functions. |
invalid | 2026-10-25 |
