From 9885fb3c75ee6d18e554ec1ddddf6ec2c89ea848 Mon Sep 17 00:00:00 2001 From: Radostin Stoyanov Date: Sun, 11 Jan 2026 14:56:49 +0000 Subject: [PATCH] crit: fix incorrect task state decoding CRIU defines the following constants for task state in compel/include/uapi/task-state.h COMPEL_TASK_ALIVE = 0x01 COMPEL_TASK_STOPPED = 0x03 COMPEL_TASK_ZOMBIE = 0x06 Thus, we need to swap the values for "zombie" and "stopped" used in CRIT. Signed-off-by: Radostin Stoyanov --- lib/pycriu/images/pb2dict.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pycriu/images/pb2dict.py b/lib/pycriu/images/pb2dict.py index a35dd3c3f..b80e3475f 100644 --- a/lib/pycriu/images/pb2dict.py +++ b/lib/pycriu/images/pb2dict.py @@ -154,8 +154,8 @@ flags_maps = { gen_maps = { 'task_state': { 1: 'Alive', - 3: 'Zombie', - 6: 'Stopped' + 3: 'Stopped', + 6: 'Zombie', }, }