From 49278c808eb143f04b76c76d66d58882611099dd Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Fri, 15 Sep 2023 09:39:29 -0500 Subject: [PATCH] docs: Add v0.7.4 release notes (#2330) * Forward port PR #2322 from release/v0.7.x to main. * Add release notes for pyhf v0.7.4. --- docs/release-notes.rst | 1 + docs/release-notes/v0.7.4.rst | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 docs/release-notes/v0.7.4.rst diff --git a/docs/release-notes.rst b/docs/release-notes.rst index ec607b5b70..c11d6c2019 100644 --- a/docs/release-notes.rst +++ b/docs/release-notes.rst @@ -2,6 +2,7 @@ Release Notes ============= +.. include:: release-notes/v0.7.4.rst .. include:: release-notes/v0.7.3.rst .. include:: release-notes/v0.7.2.rst .. include:: release-notes/v0.7.1.rst diff --git a/docs/release-notes/v0.7.4.rst b/docs/release-notes/v0.7.4.rst new file mode 100644 index 0000000000..e357f5523b --- /dev/null +++ b/docs/release-notes/v0.7.4.rst @@ -0,0 +1,28 @@ +|release v0.7.4|_ +================= + +This is a patch release from ``v0.7.3`` → ``v0.7.4``. + +Fixes +----- + +* Skip callbacks with dead weakrefs while iterating over callbacks in ``pyhf`` + events, like :func:`pyhf.set_backend`, to avoid the possibility of accessing + dead weakrefs before they could be garbage collected. + (PR :pr:`2310`) + + The fixed bug was subtle and occurred nondeterministically when the + :class:`pyhf.tensorlib` was changed repeatedly causing dead weakrefs + to be accessed before Python's garbage collection could remove them. + Most users should be unaffected. + +Contributors +------------ + +``v0.7.4`` benefited from contributions from: + +* Daniel Werner +* Jonas Rembser + +.. |release v0.7.4| replace:: ``v0.7.4`` +.. _`release v0.7.4`: https://github.com/scikit-hep/pyhf/releases/tag/v0.7.4