[CRIU] crtools error: "can't splice to pipe"

Andrew Vagin avagin at parallels.com
Mon May 12 00:42:59 PDT 2014


On Mon, May 12, 2014 at 11:37:26AM +0400, Andrew Vagin wrote:
> On Fri, May 09, 2014 at 05:28:43PM -0400, J F wrote:
> > 
> >         I have prepared for you a script to collect ftrace data. Could you
> >         apply
> >         the attached patch and execute ./test.sh PID. PID is a pid of a
> >         process,
> >         which should be dumped. This script sets up ftrace parameters, then
> >         executes "criu dump ..." and saves ftrace data in /mnt/mydata/dump/
> >         trace.log.
> >         We need this file. Thank you for the help.
> > 
> >         >
> >         > Thanks,
> >         > Pavel
> > 
> > 
> > 
> > 
> > Hello,
> > 
> > When I run sudo ./test.sh pid, it "hangs" indefinitely and I don't get a
> > trace.log file created. Here is the console output when I run (this is from my
> > second run):
> > 
> > + pid=1318
> > + mkdir /tmp/debug
> > mkdir: cannot create directory â/tmp/debugâ: File exists
> > + mount -t debugfs debug /tmp/debug/
> > mount: debug already mounted or /tmp/debug/ busy
> > mount: according to mtab, debug is already mounted on /tmp/debug
> > + echo 1318
> > + echo function
> > + echo 0
> > + sudo cat /tmp/debug/tracing/trace_pipe
> >
> 
> I see. I have fixed the problem. Could you apply the attached patch
> instead of the previous one.

Attached


More information about the CRIU mailing list