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

Adithya K linux.challenge1 at gmail.com
Fri Oct 14 12:11:12 UTC 2016


HI,

 I am trying to run LXC on Ubuntu 14.04 and LXC version 1.0.8. When I run
attached program with Valgrind, then call to c->start doesn't return. And I
get following warning continuously,

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 tried following Valgrind command

valgrind --tool=memcheck --leak-check=yes --show-reachable=yes
--num-callers=20 --track-fds=yes -v   ./container.

Any solution to this?

Adithya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20161014/ee7dead8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: container.c
Type: text/x-csrc
Size: 1834 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20161014/ee7dead8/attachment.c>


More information about the lxc-users mailing list