#1147228 python-pyinstrument: FTBFS against python 3.15rc2

#1147228#5
Date:
2026-09-09 20:21:30 UTC
From:
To:
Hi!

While rebuilding the python related packages against the Python 3.15rc2
version we found that python-pyinstrument fails to build from source
[1].

The error is:
test/low_level/test_timing_thread.py Fatal Python error: Aborted

An immediate abort is triggered due to a double release_lock, in Python
3.15 this is checked while in previous versions it wasn't. To fix it,
I've added a patch that guards the call to PyThread_release_lock,
checking the removals value.

I've applied this fix in the sandbox [2] to verify that it builds
successfully, please consider applying the patch to support the upcoming
3.15 version. This patch should also be forwarded upstream.

Setting the severity to important for now. Once Python 3.15 is released,
it will be added to python3-defaults and this bug will become release
critical.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4598672/
[2]: https://debusine.debian.net/debian/r-python-python3.15/

#1147228#10
Date:
2026-09-16 07:58:36 UTC
From:
To:
user debian-python@lists.debian.org
usertags 1147228 python3.15
tags 1147228 patch
found 1147228 5.1.3+ds-1
thanks

Hi!

I've noticed that there was an upload one day after my previous report.
But unfortunately, it still doesn't include the patch I suggested and
python-pyinstrument/5.1.3+ds-1 still fails to build against Python
3.15rc2 [1]

Please consider applying the patch, the migration will happen soon and
this bug will become release critical then.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4672516/