Your message dated Mon, 26 Oct 2026 14:28:14 +0000
with message-id <[email protected]>
and subject line Bug#1147228: fixed in python-pyinstrument 5.1.3+ds-2
has caused the Debian Bug report #1147228,
regarding python-pyinstrument: FTBFS against python 3.15rc2
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1147228: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1147228
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:python-pyinstrument
Version: 5.1.2+ds-1
User: [email protected]
Usertags: python3.15
Tags: patch, ftbfs, forky, sid
Severity: important
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/
--
"Can you imagine what I would do if I could do all I can?" -- Sun Tzu
Saludos /\/\ /\ >< `/
From: Maximiliano Curia <[email protected]>
Date: Tue, 8 Sep 2026 11:52:35 +0200
Subject: timing_thread: Only release lock if a subscriber was removed
Avoid releasing update_lock when unsubscribe is called on an already
removed ID or when subscriber_count is already zero, which causes a crash
on Python 3.15 due to unlocking an unlocked mutex.
---
pyinstrument/low_level/pyi_timing_thread.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyinstrument/low_level/pyi_timing_thread.c b/pyinstrument/low_level/pyi_timing_thread.c
index ebb9394..9c0ca82 100644
--- a/pyinstrument/low_level/pyi_timing_thread.c
+++ b/pyinstrument/low_level/pyi_timing_thread.c
@@ -124,7 +124,7 @@ int pyi_timing_thread_unsubscribe(int id) {
}
// if the last subscriber was removed, stop the thread
- if (subscriber_count == 0) {
+ if (removals > 0 && subscriber_count == 0) {
thread_should_exit = 1;
PyThread_release_lock(update_lock);
thread_alive = 0;
--- End Message ---
--- Begin Message ---
Source: python-pyinstrument
Source-Version: 5.1.3+ds-2
Done: Maximiliano Curia <[email protected]>
We believe that the bug you reported is fixed in the latest version of
python-pyinstrument, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Maximiliano Curia <[email protected]> (supplier of updated python-pyinstrument
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Mon, 26 Oct 2026 14:50:59 +0100
Source: python-pyinstrument
Architecture: source
Version: 5.1.3+ds-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Maximiliano Curia <[email protected]>
Closes: 1147228
Changes:
python-pyinstrument (5.1.3+ds-2) unstable; urgency=medium
.
* Team upload.
* [74e0d6c] Add patch to guard use of PyThread_release_lock with removals
(Closes: #1147228)
* [3222903] d/rules: Build docs using the default python3 build dir
Checksums-Sha1:
e8800208ab8e769f8d6996dccbe667155bbc2ffb 2714
python-pyinstrument_5.1.3+ds-2.dsc
8b022fdf443c2d7cf35ac168570260450b17cd7b 7748
python-pyinstrument_5.1.3+ds-2.debian.tar.xz
add6abc4d71779a0da12a3fc854fe7b3ef60074a 9757
python-pyinstrument_5.1.3+ds-2_source.buildinfo
Checksums-Sha256:
f72e2743fddf635f2f482b606bd16bfaf1c8e9bc17e7be49749314efc46534b3 2714
python-pyinstrument_5.1.3+ds-2.dsc
d6ad572642d15a4c53a19aae6fb94fce502fe44a2d29b51e366f88bbc08c33ec 7748
python-pyinstrument_5.1.3+ds-2.debian.tar.xz
1a02541f458f5af8c31e678c373424e615fa797934973239af748ebed87f04a1 9757
python-pyinstrument_5.1.3+ds-2_source.buildinfo
Files:
9d112c7d056602e160454d53676ac9ea 2714 python optional
python-pyinstrument_5.1.3+ds-2.dsc
cd19fa726bf64c2bc93d90309aee2887 7748 python optional
python-pyinstrument_5.1.3+ds-2.debian.tar.xz
35f9fb6b934c3d98f915c0390377b27d 9757 python optional
python-pyinstrument_5.1.3+ds-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEE+JIdOnQEyG4RNSIVxxl2mbKbIyoFAmrfWu4ACgkQxxl2mbKb
Iypxeg//aLea+ZiCWsHzBgXPJ+hwKqneRlSQg9eWCfVoOim9ct6ERMBr4KT1MtWe
9TbrLdO69Rr/H148SES5d0qWvrFDKjqR0Fi+fiiNP7MIx7VLQczlQdG48iRt0wAI
BA1xrLKiOWjSYlYeEhWs1zmeA96jW4TPjvCneDgcSPnpNYClpMvtd99F9o39MCyP
S2K+Sw24dnqTUXeG62Er9rQQ4F4X4e5Zn3ZNumPU11Ju2UeHIdcak2GQYjTtb1cP
pW6oiKXrSQjbWarQj8rfi8e5rmFkD6UoGxx5jizXEAX83KhZFNdRYKTclS9Ek91p
QQx5QrfB5C30nwcEJAxQZ/7rq3gmKfQvJ+SkGwcy03el3zZRyG0+RgbEgiuaFHXB
WrgBhR4wrVtf/IJr9NYUcelfESM7v6zNgNq4MMnDjbLe7NOLzo0rpKVM9yDlk+Bc
EH/Xeqwvxl/wCV4vh+lje6vzKAvRk04QLS/aFdSPOzqqXeoDLdc7RXEUHyATnjjZ
d50FjQCIoayxXxXidyTQVQtOO99otS0qF5/KR/C8Qj09hkGkZ4cuYv5A9rLseuiW
AiY3ARt3DyUF4zOBZ4/4R90NvgHTiADVZZMEVDpwR1zm09vg1gzGsc1HRmL1m0gY
YvAnl18NOZntnHiY04r9y7IRv7aQFl1MZH2HfRXkZxYG3luFc6M=
=zQtI
-----END PGP SIGNATURE-----
pgpHBExQSh_Wc.pgp
Description: PGP signature
--- End Message ---