debcrafters-packages team mailing list archive
-
debcrafters-packages team
-
Mailing list archive
-
Message #03009
[Bug 2115636] [NEW] python-psutil 7.0.0-2 fails to build on ppc64el with util-linux 2.41-4ubuntu2
Public bug reported:
python-psutil 7.0.0-2 fails to build on ppc64el:
```
=================================== FAILURES ===================================
_________________ TestSystemCPUCountLogical.test_against_lscpu _________________
self = <psutil.tests.test_linux.TestSystemCPUCountLogical
testMethod=test_against_lscpu>
@pytest.mark.skipif(
not shutil.which("lscpu"), reason="lscpu utility not available"
)
def test_against_lscpu(self):
> out = sh("lscpu -p")
psutil/tests/test_linux.py:683:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
psutil/tests/__init__.py:330: in wrapper
return fun(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cmd = ['lscpu', '-p']
kwds = {'creationflags': 0, 'stderr': -1, 'stdout': -1, 'universal_newlines': True}
flags = 0, p = <Popen: returncode: -6 args: ['lscpu', '-p']>, stdout = ''
stderr = 'free(): double free detected in tcache 2\n'
@_reap_children_on_err
def sh(cmd, **kwds):
"""Run cmd in a subprocess and return its output.
raises RuntimeError on error.
"""
# Prevents subprocess to open error dialogs in case of error.
flags = 0x8000000 if WINDOWS else 0
kwds.setdefault("stdout", subprocess.PIPE)
kwds.setdefault("stderr", subprocess.PIPE)
kwds.setdefault("universal_newlines", True)
kwds.setdefault("creationflags", flags)
if isinstance(cmd, str):
cmd = shlex.split(cmd)
p = subprocess.Popen(cmd, **kwds)
_subprocesses_started.add(p)
stdout, stderr = p.communicate(timeout=GLOBAL_TIMEOUT)
if p.returncode != 0:
> raise RuntimeError(stdout + stderr)
E RuntimeError: free(): double free detected in tcache 2
psutil/tests/__init__.py:497: RuntimeError
```
So `lscpu -p` fails with:
```
free(): double free detected in tcache 2
```
python-psutil 7.0.0-2 builds with util-linux 2.40.2-14ubuntu1 but fails
with this error with 2.41-4ubuntu2.
** Affects: python-psutil (Ubuntu)
Importance: Undecided
Status: New
** Affects: util-linux (Ubuntu)
Importance: Undecided
Status: New
** Also affects: util-linux (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/2115636
Title:
python-psutil 7.0.0-2 fails to build on ppc64el with util-linux
2.41-4ubuntu2
Status in python-psutil package in Ubuntu:
New
Status in util-linux package in Ubuntu:
New
Bug description:
python-psutil 7.0.0-2 fails to build on ppc64el:
```
=================================== FAILURES ===================================
_________________ TestSystemCPUCountLogical.test_against_lscpu _________________
self = <psutil.tests.test_linux.TestSystemCPUCountLogical
testMethod=test_against_lscpu>
@pytest.mark.skipif(
not shutil.which("lscpu"), reason="lscpu utility not available"
)
def test_against_lscpu(self):
> out = sh("lscpu -p")
psutil/tests/test_linux.py:683:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
psutil/tests/__init__.py:330: in wrapper
return fun(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cmd = ['lscpu', '-p']
kwds = {'creationflags': 0, 'stderr': -1, 'stdout': -1, 'universal_newlines': True}
flags = 0, p = <Popen: returncode: -6 args: ['lscpu', '-p']>, stdout = ''
stderr = 'free(): double free detected in tcache 2\n'
@_reap_children_on_err
def sh(cmd, **kwds):
"""Run cmd in a subprocess and return its output.
raises RuntimeError on error.
"""
# Prevents subprocess to open error dialogs in case of error.
flags = 0x8000000 if WINDOWS else 0
kwds.setdefault("stdout", subprocess.PIPE)
kwds.setdefault("stderr", subprocess.PIPE)
kwds.setdefault("universal_newlines", True)
kwds.setdefault("creationflags", flags)
if isinstance(cmd, str):
cmd = shlex.split(cmd)
p = subprocess.Popen(cmd, **kwds)
_subprocesses_started.add(p)
stdout, stderr = p.communicate(timeout=GLOBAL_TIMEOUT)
if p.returncode != 0:
> raise RuntimeError(stdout + stderr)
E RuntimeError: free(): double free detected in tcache 2
psutil/tests/__init__.py:497: RuntimeError
```
So `lscpu -p` fails with:
```
free(): double free detected in tcache 2
```
python-psutil 7.0.0-2 builds with util-linux 2.40.2-14ubuntu1 but
fails with this error with 2.41-4ubuntu2.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-psutil/+bug/2115636/+subscriptions
Follow ups
-
[Bug 2115636] Re: python-psutil 7.0.0-2 fails to build on ppc64el with util-linux 2.41-4ubuntu2
From: Benjamin Drung, 2025-07-02
-
[Bug 2115636] Re: python-psutil 7.0.0-2 fails to build on ppc64el with util-linux 2.41-4ubuntu2
From: Benjamin Drung, 2025-07-02
-
[Bug 2115636] Re: python-psutil 7.0.0-2 fails to build on ppc64el with util-linux 2.41-4ubuntu2
From: Bug Watch Updater, 2025-07-01
-
[Bug 2115636] Re: python-psutil 7.0.0-2 fails to build on ppc64el with util-linux 2.41-4ubuntu2
From: Benjamin Drung, 2025-07-01
-
[Bug 2115636] Re: python-psutil 7.0.0-2 fails to build on ppc64el with util-linux 2.41-4ubuntu2
From: Benjamin Drung, 2025-07-01
-
[Bug 2115636] Re: python-psutil 7.0.0-2 fails to build on ppc64el with util-linux 2.41-4ubuntu2
From: Benjamin Drung, 2025-07-01
-
[Bug 2115636] Re: python-psutil 7.0.0-2 fails to build on ppc64el with util-linux 2.41-4ubuntu2
From: Nick Rosbrook, 2025-07-01
-
[Bug 2115636] Re: python-psutil 7.0.0-2 fails to build on ppc64el with util-linux 2.41-4ubuntu2
From: Benjamin Drung, 2025-07-01
-
[Bug 2115636] Re: python-psutil 7.0.0-2 fails to build on ppc64el with util-linux 2.41-4ubuntu2
From: Benjamin Drung, 2025-07-01
-
[Bug 2115636] Re: python-psutil 7.0.0-2 fails to build on ppc64el with util-linux 2.41-4ubuntu2
From: Benjamin Drung, 2025-06-30