<div dir="ltr"><div>Hi, Pavel,<br></div>Now I run criu to dump the child the process directly by<br><br>    $ criu dump --tree 28576 -vvvv -n<br><div><div><div><br></div><div>28576 is the pid of the child process. The error log is below. Thanks.<br><br></div><div>- Hui<br></div><div><br>(00.021719) ----------------------------------------<br>(00.021732) <br>(00.021737) Collecting fds (pid: 28576)<br>(00.021742) ----------------------------------------<br>(00.021782) Found 5 file descriptors<br>(00.021790) ----------------------------------------<br>(00.021816) Dump private signals of 28576<br>(00.021834) Dump shared signals of 28576<br>(00.021851) Parasite syscall_ip at 0x400000<br>(00.022309) Putting parasite blob into 0x7f215c21e000-&gt;0x7f6fd40ea000<br>(00.022368) Dumping GP/FPU registers for 28576<br>(00.022658) xsave runtime structure<br>(00.022697) -----------------------<br>(00.022852) cwd:37f swd:0 twd:0 fop:0 mxcsr:1f80 mxcsr_mask:ffff<br>(00.023054) magic1:0 extended_size:0 xstate_bv:0 xstate_size:0<br>(00.023112) xstate_bv: 0<br>(00.023156) -----------------------<br>(00.023318) Putting tsock into pid 28576<br>(00.023932) Wait for parasite being daemonized...<br>pie: Running daemon thread leader<br>pie: __sent ack msg: 2 2 0<br>pie: Daemon wais for command<br>(00.024070) Wait for ack 2 on daemon socket<br>(00.024548) Fetched ack: 2 2 0<br>(00.024606) Parasite 28576 has been switched to daemon mode<br>pie: __fetched msg: 15 0 0<br>(00.025063) Sent msg to daemon 15 0 0<br>pie: __sent ack msg: 15 15 0<br>pie: Daemon wais for command<br>(00.035569) Wait for ack 15 on daemon socket<br>(00.035603) Fetched ack: 15 15 0<br>(00.035657) Sent msg to daemon 17 0 0<br>(00.035691) Wait for ack 17 on daemon socket<br>pie: __fetched msg: 17 0 0<br>pie: __sent ack msg: 17 17 0<br>(00.035863) Fetched ack: 17 17 0<br>pie: Daemon wais for command<br>(00.036044) Sent msg to daemon 12 0 0<br>(00.036093) Wait for ack 12 on daemon socket<br>pie: __fetched msg: 12 0 0<br>pie: __sent ack msg: 12 12 0<br>pie: Daemon wais for command<br>(00.036284) Fetched ack: 12 12 0<br>(00.036339) sid=0 pgid=1 pid=1<br>(00.036382) Error (cr-dump.c:1577): A session leader of 28576(1) is outside of its pid namespace<br>(00.036601) Waiting for 28576 to trap<br>(00.036894) Daemon 28576 exited trapping<br>(00.036963) Sent msg to daemon 6 0 0<br>pie: __fetched msg: 6 0 0<br>pie: 1: new_sp=0x7f6fd4103008 ip 0x7f6fd397639e<br>(00.037527) 28576 was trapped<br>(00.037552) `- Expecting exit<br>(00.037889) 28576 was trapped<br>(00.038066) 28576 is going to execute the syscall f<br>(00.038638) 28576 was stopped<br>(00.039365) 28576 was trapped<br>(00.039463) 28576 is going to execute the syscall 1<br>(00.039822) 28576 was trapped<br>(00.039956) `- Expecting exit<br>(00.040502) 28576 was trapped<br>(00.040616) 28576 is going to execute the syscall b<br>(00.041097) 28576 was stopped<br>(00.041347) Unlock network<br>(00.041389) Running network-unlock scripts<br>(00.041638) Unfreezing tasks into 1<br>(00.041665)     Unseizing 28576 into 1<br>(00.041843) Error (cr-dump.c:1957): Dumping FAILED.<br><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 30, 2015 at 12:29 PM, Pavel Emelyanov <span dir="ltr">&lt;<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 07/30/2015 07:24 PM, Hui Kang wrote:<br>
&gt; Hi, Pavel,<br>
&gt; Thanks for you reply. The main purpose is to checkpoint the child process. I found this in the criu manual<br>
&gt;<br>
&gt;        -n, --namespaces &lt;ns&gt;[,&lt;ns&gt;...]<br>
&gt;            Checkpoint namespaces. Namespaces must be separated by comma. Currently supported<br>
&gt;            namespaces: uts, ipc, mnt, pid, net.<br>
<br>
</span>The -n option is deprecated. Thanks for pointing out this place in docs, I will<br>
remove one soon.<br>
<span class=""><br>
&gt; Can I use this to only dump the child process with its pid and net namespace?<br>
<br>
</span>If you want to dump only the child then specify the child&#39;s pid in the -t argument :)<br>
<span class="HOEnZb"><font color="#888888"><br>
-- Pavel<br>
<br>
</font></span></blockquote></div><br></div>