[lxc-users] LXC start command fails when ran with valgrind

Serge E. Hallyn serge at hallyn.com
Fri Nov 25 18:25:05 UTC 2016


On Wed, Oct 19, 2016 at 10:32:40AM +0530, Adithya K wrote:
> HI,
> 
>  I am trying to run LXC on Ubuntu 14.04 and LXC version 1.0.8. When I
> run valgrind
> --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=20
> --track-fds=yes lxc-start -d -n test, I get following error.

Run it in the foreground - "lxc-start -F -n -test"

If you run it in the background, lxc will always close any inherited
fds, which is a problem for valgrind.

> Warning: invalid file descriptor 1024 in syscall close()
> ==7897==    at 0x5195F60: __close_nocancel (syscall-template.S:81)
> ==7897==    by 0x4E526BC: lxc_check_inherited (in /usr/lib/x86_64-linux-gnu/
> liblxc.so.1.0.8)
> ==7897==    by 0x4E55840: lxc_monitord_spawn (in /usr/lib/x86_64-linux-gnu/
> liblxc.so.1.0.8)
> ==7897==    by 0x4E82659: ??? (in /usr/lib/x86_64-linux-gnu/liblxc.so.1.0.8)
> 
> I create LXC container with busybox template.
> 
> Any solution to this?
> 
> Thanks,
> Adithya

> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users



More information about the lxc-users mailing list