From e84443bb2b624c4ffb776f38dad41e93fc3a32b1 Mon Sep 17 00:00:00 2001 From: Andrei Vagin Date: Tue, 18 Jul 2017 00:57:09 +0300 Subject: [PATCH] dump: set pid->state for threads It is cheched in dead_pid_conflict, otherwise criu may segfault: Program terminated with signal 11, Segmentation fault. 1073 if (item->pid->real == item->threads[i].real || (gdb) p item $1 = (struct pstree_item *) 0x0 (gdb) bt Signed-off-by: Andrei Vagin --- criu/seize.c | 1 + 1 file changed, 1 insertion(+) diff --git a/criu/seize.c b/criu/seize.c index 73fc5a333..0a36b721e 100644 --- a/criu/seize.c +++ b/criu/seize.c @@ -732,6 +732,7 @@ static int collect_threads(struct pstree_item *item) item->threads[id]->real = pid; item->threads[id]->item = NULL; item->threads[id]->level = level; + item->threads[id]->state = TASK_THREAD; for (j = 0; j < level; j++) item->threads[id]->ns[j].virt = -1;