With some more debug information added, the following valgrind warning
is triggered in read_caches somewhere in this part:
```
if (id == -1)
id = mk_cache_id(cxt, cpu, buf, level);
ca = get_cache(cxt, buf, level, id);
if (!ca)
ca = add_cache(cxt, buf, level, id);
```
Probably in the add_cache() call.
```
==11853== Invalid read of size 8
==11853== at 0x190078: ??? (in /usr/bin/lscpu)
==11853== by 0x186D1B: ??? (in /usr/bin/lscpu)
==11853== by 0x4986C43: (below main) (libc_start_call_main.h:58)
==11853== Address 0x4c7a7c0 is 0 bytes inside a block of size 256 free'd
==11853== at 0x48A9A20: free (in
/usr/libexec/valgrind/vgpreload_memcheck-ppc64le-linux.so)
==11853== by 0x4AA5307: __sched_cpufree (sched_cpufree.c:25)
==11853== by 0x18E387: ??? (in /usr/bin/lscpu)
==11853== by 0x18FE0F: ??? (in /usr/bin/lscpu)
==11853== by 0x186D1B: ??? (in /usr/bin/lscpu)
==11853== by 0x4986C43: (below main) (libc_start_call_main.h:58)
==11853== Block was alloc'd at
==11853== at 0x48A5698: malloc (in
/usr/libexec/valgrind/vgpreload_memcheck-ppc64le-linux.so)
==11853== by 0x4AA50A3: __sched_cpualloc (sched_cpualloc.c:25)
==11853== by 0x18E153: ??? (in /usr/bin/lscpu)
==11853== by 0x18FE0F: ??? (in /usr/bin/lscpu)
==11853== by 0x186D1B: ??? (in /usr/bin/lscpu)
==11853== by 0x4986C43: (below main) (libc_start_call_main.h:58)
```
The double free is tracked down to `free(c->sharedmap);` in
`lscpu_free_caches`:
```
==11853== Invalid free() / delete / delete[] / realloc()
==11853== at 0x48A9A20: free (in
/usr/libexec/valgrind/vgpreload_memcheck-ppc64le-linux.so)
==11853== by 0x191263: ??? (in /usr/bin/lscpu)
==11853== by 0x1877E3: ??? (in /usr/bin/lscpu)
==11853== by 0x4986C43: (below main) (libc_start_call_main.h:58)
==11853== Address 0x4c7a7c0 is 0 bytes inside a block of size 256 free'd
==11853== at 0x48A9A20: free (in
/usr/libexec/valgrind/vgpreload_memcheck-ppc64le-linux.so)
==11853== by 0x4AA5307: __sched_cpufree (sched_cpufree.c:25)
==11853== by 0x18E387: ??? (in /usr/bin/lscpu)
==11853== by 0x18FE0F: ??? (in /usr/bin/lscpu)
==11853== by 0x186D1B: ??? (in /usr/bin/lscpu)
==11853== by 0x4986C43: (below main) (libc_start_call_main.h:58)
==11853== Block was alloc'd at
==11853== at 0x48A5698: malloc (in
/usr/libexec/valgrind/vgpreload_memcheck-ppc64le-linux.so)
==11853== by 0x4AA50A3: __sched_cpualloc (sched_cpualloc.c:25)
==11853== by 0x18E153: ??? (in /usr/bin/lscpu)
==11853== by 0x18FE0F: ??? (in /usr/bin/lscpu)
==11853== by 0x186D1B: ??? (in /usr/bin/lscpu)
==11853== by 0x4986C43: (below main) (libc_start_call_main.h:58)
```
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to 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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-psutil/+bug/2115636/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs