mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 22:35:33 +00:00
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 <avagin@virtuozzo.com>
This commit is contained in:
@@ -732,6 +732,7 @@ static int collect_threads(struct pstree_item *item)
|
|||||||
item->threads[id]->real = pid;
|
item->threads[id]->real = pid;
|
||||||
item->threads[id]->item = NULL;
|
item->threads[id]->item = NULL;
|
||||||
item->threads[id]->level = level;
|
item->threads[id]->level = level;
|
||||||
|
item->threads[id]->state = TASK_THREAD;
|
||||||
for (j = 0; j < level; j++)
|
for (j = 0; j < level; j++)
|
||||||
item->threads[id]->ns[j].virt = -1;
|
item->threads[id]->ns[j].virt = -1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user