[Pkg-libvirt-maintainers] Bug#913023: Bug#913023: libvirt0: Parsing of memory.stat is incorrect
Guido Günther
agx at sigxcpu.org
Tue Nov 6 07:56:14 GMT 2018
Hi,
On Tue, Nov 06, 2018 at 04:33:33AM +0000, Peter.Chubb at data61.csiro.au wrote:
> Package: libvirt0
> Version: 4.7.0-1+b1
> Severity: normal
>
> Dear Maintainer,
> The parsing of memory.stat is incorrect in src/util/vircgroup.c
> It spams the logs with
> error : virCgroupGetMemoryStat:2490 : internal error: Cannot parse 'memory.stat' cgroup file.
> whenever anyone does `ps' inside a container.
>
> Here is a patch to fix it. There may be a better way.
> The problem is that the `line' variable is never updated, so each
> time through the loop, the same start-of-line is compared for the token;
> and as all spaces are eventually replaced with nul the
> error exit is taken instead of ending the loop properly.
Can you bring that up upstream's libvirt list?
-- Guido
More information about the Pkg-libvirt-maintainers
mailing list