[From nobody Wed May  6 20:37:04 2026
Received: (at submit) by bugs.debian.org; 5 May 2026 10:30:40 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-18.9 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,FOURLA,HAS_PACKAGE,NO_RELAYS,XMAILER_REPORTBUG
 autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 27; hammy, 149; neutral, 42; spammy,
 1. spammytokens:0.942-+--H*r:bugs.debian.org
 hammytokens:0.000-+--XDebbugsCc, 0.000-+--X-Debbugs-Cc,
 0.000-+--trixie, 0.000-+--python3, 0.000-+--bookworm
Return-path: &lt;david.wagner@makina-corpus.com&gt;
Received: via submission by buxtehude.debian.org with esmtp (Exim 4.96)
 (envelope-from &lt;david.wagner@makina-corpus.com&gt;) id 1wKD2z-009xxN-39
 for submit@bugs.debian.org; Tue, 05 May 2026 10:30:40 +0000
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: David Wagner &lt;david.wagner@makina-corpus.com&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: python3-lxc: attach_wait fails with &quot;PyMutex_Unlock: unlocking mutex
 that is not locked&quot;
Message-ID: &lt;177797703159.418757.1639609594205532999.reportbug@geotrek09.makina-corpus.net&gt;
X-Mailer: reportbug 13.2.0
Date: Tue, 05 May 2026 12:30:31 +0200
Delivered-To: submit@bugs.debian.org

Package: python3-lxc
Version: 1:5.0.0-2+b3
Severity: important
Tags: patch
X-Debbugs-Cc: david.wagner@makina-corpus.com

Dear Maintainer,

I tried to use this module to run a command within an LXC container (using the
`attach_wait` method) but it fails under trixie with:

&gt; PyMutex_Unlock: unlocking mutex that is not locked

The same process works under bookworm (where the version of the package is the
same).

Upstream is aware of this issue and has already fixed it:
https://github.com/lxc/python3-lxc/issues/35 but haven't made a new release
since then.


-- System Information:
Debian Release: 13.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.74+deb13+1-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-lxc depends on:
ii  libc6       2.41-12+deb13u2
ii  liblxc1t64  1:6.0.4-4+deb13u2+b1
ii  python3     3.13.5-1

python3-lxc recommends no packages.

python3-lxc suggests no packages.

-- no debconf information
]