Skip to content

Commit

Permalink
cgroups: allow to execute fini_cgroups a few times
Browse files Browse the repository at this point in the history
It is called from prepare_cgroup_sfd() and cr_restore_tasks().

+ criu restore --file-locks --tcp-established --evasive-devices --link-remap --root /var/lib/vz/root/101 --restore-detached --action-script /usr/local/libexec/vzctl/scripts/vps-rst-env -D /vz/dump/Dump.101 -o restore.log -vvvv --pidfile /var/lib/vzctl/vepid/101
*** Error in `criu': double free or corruption (fasttop): 0x00000000006bcd40 ***

Program terminated with signal 6, Aborted.
Missing separate debuginfos, use: debuginfo-install glibc-2.17-20.fc19.x86_64 libgcc-4.8.3-1.fc19.x86_64 protobuf-c-0.15-7.fc19.x86_64
(gdb) bt
 #0  0x00007ffff72179e9 in raise () from /lib64/libc.so.6
 #1  0x00007ffff72190f8 in abort () from /lib64/libc.so.6
 #2  0x00007ffff7257d17 in __libc_message () from /lib64/libc.so.6
 #3  0x00007ffff725f0b8 in _int_free () from /lib64/libc.so.6
 #4  0x0000000000426971 in cr_restore_tasks () at cr-restore.c:1833
 #5  0x0000000000418426 in main (argc=<optimized out>, argv=0x7fffffffeb38, envp=<optimized out>) at crtools.c:479

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
  • Loading branch information
avagin authored and xemul committed Sep 4, 2014
1 parent 68138cf commit 5c26570
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,7 @@ void fini_cgroup(void)
umount2(cg_yard, MNT_DETACH);
rmdir(cg_yard);
xfree(cg_yard);
cg_yard = NULL;
}

static int restore_cgroup_prop(const CgroupPropEntry * cg_prop_entry_p,
Expand Down

0 comments on commit 5c26570

Please sign in to comment.