[CRIU] CRIU segfaulting when restoring a process

Nikolay Borisov kernel at kyup.com
Tue Aug 23 06:11:34 PDT 2016



On 08/22/2016 08:00 PM, Cyrill Gorcunov wrote:
> On Mon, Aug 22, 2016 at 07:54:28PM +0300, Nikolay Borisov wrote:
>>>
>>> Hmm. I've been looking into source code, but didn't find any suspicious.
>>> It's @criu-dev branch? Mind to cleanup the sources with git clean -fx
>>> (warning: it will clean out all unused files) and try again?
>>
>> It's not criu-dev branch. It's the 2.5 tag with some patches to fix
>> header mess so that it compiles with the external glibc. I can give
>> trunk a spin tomorrow.
> 
> Ah! That's important to know, that it's 2.5 master, thanks!
So tried recreating the dump with the criu-dev and then restoring but I
got the same error:

task_args->pid: 23492
task_args->nr_threads: 1
task_args->clone_restore_fn: 0x12b70
task_args->thread_args: 0x204c0
(00.039278)  23535: xsave runtime structure
(00.039291)  23535: -----------------------
(00.039295)  23535: cwd:37f swd:0 twd:0 fop:5d8 mxcsr:1f80 mxcsr_mask:ffff
(00.039300)  23535: magic1:0 extended_size:0 xstate_bv:0 xstate_size:0
(00.039311)  23535: xstate_bv: 0
(00.039316)  23535: -----------------------
(00.039319)  23535: Thread    0 stack  0x17080 rt_sigframe  0x1f080
(00.039337)  23535: Going to chroot into /proc/self/fd/6
(00.039345)  23535: Restoring umask to 22
(00.039356)  23535: task_args: 0x20000
task_args->pid: 23535
task_args->nr_threads: 1
task_args->clone_restore_fn: 0x12b70
task_args->thread_args: 0x204c0
(00.126527) Error (criu/cr-restore.c:1132): 23492 killed by signal 11:
Segmentation fault
(00.126577) Error (criu/cr-restore.c:1998): Restoring FAILED.

Same thing with either 4.4 or 4.9 based compilers.

Regards,
Nikolay


More information about the CRIU mailing list