mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 05:48:05 +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:
parent
7c4fda0f80
commit
e84443bb2b
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user