[CRIU] CRIU segfaulting when restoring a process

Cyrill Gorcunov gorcunov at gmail.com
Wed Aug 24 00:55:31 PDT 2016


On Wed, Aug 24, 2016 at 10:52:09AM +0300, Nikolay Borisov wrote:
 
> 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?

Well, indeed it might be compel's issue, for undefined external symbols
we're just ignore them, which is wrong of course. Letme see, if I can
make a patch for debug purpose.


More information about the CRIU mailing list