[CRIU] CRIU segfaulting when restoring a process

Nikolay Borisov kernel at kyup.com
Wed Aug 24 00:52:09 PDT 2016



On 08/23/2016 05:58 PM, Cyrill Gorcunov wrote:
> On Tue, Aug 23, 2016 at 04:11:34PM +0300, Nikolay Borisov wrote:
> ...
>> 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.
> 
> Thanks a huge! Is there a chance you can try out 2.4 and check if it happens there?
> 



So I tried 2.4 as well with both compilers - no luck. This time though I
tried migrating a simple C applicatoin which does
while (1) { printf("blah\n"); sleep(2); } compiled against the external
glibc - just to eliminate it as a cause and I still get the error.

task_args->pid: 17789
task_args->nr_threads: 1
task_args->clone_restore_fn: 0x10ad0
task_args->thread_args: 0x1f4c0
(00.042742) Error (cr-restore.c:994): 17789 killed by signal 11:
Segmentation fault
(00.042771) Error (cr-restore.c:1857): Restoring FAILED.


So it seems this is not a regression. Any other info you might need to
be able to debug this? So just to recap - the problem is that compel
doesn't recognise a particular relocation, hence it's not patching it
and this causes the crash, correct?

Regards,
Nikolay


More information about the CRIU mailing list